wolfhece.PyWMS

Author: HECE - University of Liege, Pierre Archambeau Date: 2024

Copyright (c) 2024 University of Liege. All rights reserved.

This script and its content are protected by copyright law. Unauthorized copying or distribution of this file, via any medium, is strictly prohibited.

Module Contents

class wolfhece.PyWMS.WebService(*args, **kwds)[source]

Bases: enum.Enum

Inheritance diagram of wolfhece.PyWMS.WebService

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

IGN_France = 1[source]
Walonmap = 2[source]
Vlaanderen = 3[source]
LifeWatch = 4[source]
IGN_Belgium = 5[source]
IGN_Cartoweb = 6[source]
OrthoPostFlood2021 = 7[source]
Alaro = 8[source]
class wolfhece.PyWMS.WalonmapCategory(*args, **kwds)[source]

Bases: enum.Enum

Inheritance diagram of wolfhece.PyWMS.WalonmapCategory

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

ORTHO_LAST = ('IMAGERIE', 'ORTHO_LAST', 0.25)[source]
ORTHO_1971 = ('IMAGERIE', 'ORTHO_1971', 0.25)[source]
ORTHO_1994_2000 = ('IMAGERIE', 'ORTHO_1994_2000', 0.25)[source]
ORTHO_2006_2007 = ('IMAGERIE', 'ORTHO_2006_2007', 0.25)[source]
ORTHO_2009_2010 = ('IMAGERIE', 'ORTHO_2009_2010', 0.25)[source]
ORTHO_2012_2013 = ('IMAGERIE', 'ORTHO_2012_2013', 0.25)[source]
ORTHO_2015 = ('IMAGERIE', 'ORTHO_2015', 0.25)[source]
ORTHO_2016 = ('IMAGERIE', 'ORTHO_2016', 0.25)[source]
ORTHO_2017 = ('IMAGERIE', 'ORTHO_2017', 0.25)[source]
ORTHO_2018 = ('IMAGERIE', 'ORTHO_2018', 0.25)[source]
ORTHO_2019 = ('IMAGERIE', 'ORTHO_2019', 0.25)[source]
ORTHO_2020 = ('IMAGERIE', 'ORTHO_2020', 0.25)[source]
ORTHO_2021 = ('IMAGERIE', 'ORTHO_2021', 0.25)[source]
ORTHO_2022_PRINTEMPS = ('IMAGERIE', 'ORTHO_2022_PRINTEMPS', 0.25)[source]
ORTHO_2022_ETE = ('IMAGERIE', 'ORTHO_2022_ETE', 0.25)[source]
IDW_2021 = ('EAU', 'ZONES_INONDEES_IDW', 1.0)[source]
EMPRISE_2021 = ('EAU', 'ZONES_INONDEES', 1.0)[source]
EMPRISE_wo_ALEA_2021 = ('EAU', 'ZONES_INONDEES_wo_alea', 1.0)[source]
class wolfhece.PyWMS.LifewatchCategory(*args, **kwds)[source]

Bases: enum.Enum

Inheritance diagram of wolfhece.PyWMS.LifewatchCategory

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

ECOTOPES_2006 = ('LW_ecotopes_lc_hr_raster', '2006', 2.0)[source]
ECOTOPES_2010 = ('LW_ecotopes_lc_hr_raster', '2010', 2.0)[source]
ECOTOPES_2015 = ('LW_ecotopes_lc_hr_raster', '2015', 2.0)[source]
ECOTOPES_2018 = ('LW_ecotopes_lc_hr_raster', '2018', 2.0)[source]
ECOTOPES_2019 = ('LW_ecotopes_lc_hr_raster', '2019', 2.0)[source]
ECOTOPES_2020 = ('LW_ecotopes_lc_hr_raster', '2020', 2.0)[source]
ECOTOPES_2021 = ('LW_ecotopes_lc_hr_raster', '2021', 2.0)[source]
ECOTOPES_2022 = ('LW_ecotopes_lc_hr_raster', '2022', 2.0)[source]
class wolfhece.PyWMS.IGNBelgiumCategory(*args, **kwds)[source]

Bases: enum.Enum

Inheritance diagram of wolfhece.PyWMS.IGNBelgiumCategory

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

ORTHO_2016 = ('Orthophotos', 'orthoimage_coverage_2016', 0.25)[source]
ORTHO_2017 = ('Orthophotos', 'orthoimage_coverage_2017', 0.25)[source]
ORTHO_2018 = ('Orthophotos', 'orthoimage_coverage_2018', 0.25)[source]
ORTHO_2019 = ('Orthophotos', 'orthoimage_coverage_2019', 0.25)[source]
ORTHO_2020 = ('Orthophotos', 'orthoimage_coverage_2020', 0.25)[source]
ORTHO_2021 = ('Orthophotos', 'orthoimage_coverage_2021', 0.25)[source]
ORTHO_2022 = ('Orthophotos', 'orthoimage_coverage_2022', 0.25)[source]
ORTHO_LAST = ('Orthophotos', 'orthoimage_coverage', 0.25)[source]
CROSSBORDER = ('CartoWeb', 'crossborder', 0.5)[source]
CROSSBORDER_GREY = ('CartoWeb', 'crossborder_grey', 0.5)[source]
OVERLAY = ('CartoWeb', 'overlay', 0.5)[source]
TOPO = ('CartoWeb', 'topo', 0.5)[source]
TOPO_GREY = ('CartoWeb', 'topo_grey', 0.5)[source]
FLOOD_2021 = ('OrthoPostFlood2021', 'orthoimage_flood', 1.0)[source]
class wolfhece.PyWMS.IGNFranceCategory(*args, **kwds)[source]

Bases: enum.Enum

Inheritance diagram of wolfhece.PyWMS.IGNFranceCategory

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

ORTHOS = ('OI.OrthoimageCoverage.HR', '', 0.25)[source]
class wolfhece.PyWMS.AlaroCategory(*args, **kwds)[source]

Bases: enum.Enum

Inheritance diagram of wolfhece.PyWMS.AlaroCategory

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

TEMPERATURE_2M = ('ALARO', '2m_temperature', 500.0)[source]
CONVECTIVE_RAIN = ('ALARO', 'Convective_rain', 500.0)[source]
CONVECTIVE_SNOW = ('ALARO', 'Convective_snow', 500.0)[source]
LARGE_SCALE_RAIN = ('ALARO', 'Large_scale_rain', 500.0)[source]
LARGE_SCALE_SNOW = ('ALARO', 'Large_scale_snow', 500.0)[source]
SURFACE_TEMPERATURE = ('ALARO', 'Surface_Temperature', 500.0)[source]
TOTAL_PRECIPITATION = ('ALARO', 'Total_precipitation', 500.0)[source]
wolfhece.PyWMS.to_image(mybytes: io.BytesIO) PIL.Image[source]
wolfhece.PyWMS.getWalonmap(cat: str, xl: float, yl: float, xr: float, yr: float, w: int = None, h: int = None, tofile=True) io.BytesIO[source]
wolfhece.PyWMS.getVlaanderen(cat: Literal['Adpf'], xl: float, yl: float, xr: float, yr: float, w: int = None, h: int = None, tofile=True) io.BytesIO[source]
wolfhece.PyWMS.getIGNFrance(cat: str, epsg: str, xl, yl, xr, yr, w, h, tofile=True) io.BytesIO[source]
wolfhece.PyWMS.getLifeWatch(cat: Literal['None'], xl: float, yl: float, xr: float, yr: float, w: int = None, h: int = None, tofile=True, format: Literal['image/png', 'image/png; mode=8bit'] = 'image/png') io.BytesIO[source]
wolfhece.PyWMS.getNGI(cat: Literal['orthoimage_coverage', 'orthoimage_coverage_2016', 'orthoimage_coverage_2017', 'orthoimage_coverage_2018', 'orthoimage_coverage_2019', 'orthoimage_coverage_2020', 'orthoimage_coverage_2021', 'orthoimage_coverage_2022'], xl: float, yl: float, xr: float, yr: float, w: int = None, h: int = None, tofile=True, format: Literal['image/png', 'image/GeoTIFF'] = 'image/png') io.BytesIO[source]
wolfhece.PyWMS.getCartoweb(cat: Literal['crossborder', 'crossborder_grey', 'overlay', 'topo', 'topo_grey'], xl: float, yl: float, xr: float, yr: float, w: int = None, h: int = None, tofile=True, format: Literal['image/png', 'image/GeoTIFF'] = 'image/png') io.BytesIO[source]
wolfhece.PyWMS.getOrthoPostFlood2021(cat: Literal['orthoimage_flood'], xl: float, yl: float, xr: float, yr: float, w: int = None, h: int = None, tofile=True, format: Literal['image/png', 'image/GeoTIFF'] = 'image/png') io.BytesIO[source]
wolfhece.PyWMS.get_Alaro_times()[source]
wolfhece.PyWMS.get_Alaro_legend(layer: str)[source]

Get the legend of the layer

Parameters:

layer – name of the layer

Returns:

legend of the layer

wolfhece.PyWMS.getAlaro(cat: Literal['10_m_u__wind_component', '10_m_v__wind_component', '2_m_Max_temp_since_ppp', '2_m_Min_temp_since_ppp', '2_m_dewpoint_temperature', '2_m_temperature', '2m_Relative_humidity', 'Convective_rain', 'Convective_snow', 'Geopotential', 'Inst_flx_Conv_Cld_Cover', 'Inst_flx_High_Cld_Cover', 'Inst_flx_Low_Cld_Cover', 'Inst_flx_Medium_Cld_Cover', 'Inst_flx_Tot_Cld_cover', 'Large_scale_rain', 'Large_scale_snow', 'Mean_sea_level_pressure', 'Relative_humidity', 'Relative_humidity_isobaric', 'SBL_Meridian_gust', 'SBL_Zonal_gust', 'Specific_humidity', 'Surf_Solar_radiation', 'Surf_Thermal_radiation', 'Surface_CAPE', 'Surface_Temperature', 'Surface_orography', 'Temperature', 'Total_precipitation', 'U-velocity', 'V-velocity', 'Vertical_velocity', 'Wet_Bulb_Poten_Temper', 'freezing_level_zeroDegC_isotherm'], xl: float, yl: float, xr: float, yr: float, w: int = None, h: int = None, tofile=True, format: Literal['image/png', 'image/GeoTIFF'] = 'image/png', time=None) io.BytesIO[source]
class wolfhece.PyWMS.Alaro_Navigator(parent, id, title)[source]

Bases: wx.Frame

Inheritance diagram of wolfhece.PyWMS.Alaro_Navigator

Frame to navigate through Alaro data

Propose a caolendar to select the time of the data

_start_date[source]
_end_date[source]
_interval[source]
_btn_previous[source]
_btn_next[source]
_time[source]
_alpha[source]
_btn_legend[source]
OnPrevious(event)[source]

Hour minus interval

OnNext(event)[source]

Hour plus interval

OnCloseWindow(event)[source]
OnLegend(event)[source]

Called when the user press the legend button

OnEnterTime(event)[source]

Called when the user press enter in the time text box

property start[source]

Return the start date selected by the user

property end[source]

Return the end date selected by the user

property time[source]

Return the time selected by the user

property time_str[source]

Return the time selected by the user as string

property alpha[source]

Return the alpha value selected by the user

wolfhece.PyWMS.img = None[source]