pyforestry.sweden.geo package#
Subpackages#
- pyforestry.sweden.geo.climate package
- pyforestry.sweden.geo.coastline package
- pyforestry.sweden.geo.counties package
- pyforestry.sweden.geo.humidity package
- pyforestry.sweden.geo.temperature package
- Submodules
- pyforestry.sweden.geo.temperature.odin_1983 module
Moren_Perttu_radiation_1994Moren_Perttu_radiation_1994.calculate_global_radiation_sum_growing_season()Moren_Perttu_radiation_1994.calculate_growing_season_duration_1000m()Moren_Perttu_radiation_1994.calculate_growing_season_duration_1500m()Moren_Perttu_radiation_1994.calculate_temperature_sum_1000m()Moren_Perttu_radiation_1994.calculate_temperature_sum_1500m()Moren_Perttu_radiation_1994.get_corrected_temperature_sum()Moren_Perttu_radiation_1994.get_gorczynski_continentality_index()Moren_Perttu_radiation_1994.get_growing_season_start_day()Moren_Perttu_radiation_1994.get_ratio_global_to_extraterrestrial_radiation_average_sky()Moren_Perttu_radiation_1994.get_ratio_global_to_extraterrestrial_radiation_clear_sky()
Odin_temperature_sum()
- Module contents
Submodules#
pyforestry.sweden.geo.geo module#
Simple geographic utilities using Swedish shapefiles.
- class pyforestry.sweden.geo.geo.RetrieveGeoCode[source]#
Bases:
objectHelper methods for querying Swedish geographic data.
- static getClimateCode(lon, lat, epsg=4326) SwedenClimateZone | None[source]#
Backward-compatible alias for
get_climate_code().
- static getCountyCode(lon, lat, epsg=4326) SwedenCounty | None[source]#
Backward-compatible alias for
get_county_code().
- static getDistanceToCoast(lon, lat, epsg=4326)[source]#
Backward-compatible alias for
get_distance_to_coast_km().
- static get_climate_code(longitude: float, latitude: float, epsg: int = 4326) SwedenClimateZone | None[source]#
Retrieve the climate zone enum member for a given coordinate.
- Parameters:
longitude (float) – Longitude (in the input CRS).
latitude (float) – Latitude (in the input CRS).
epsg (int) – EPSG code for the input coordinates (default: 4326).
- Returns:
The climate zone enum member or None if not found.
- Return type:
Sweden.ClimateZone | None
- static get_county_code(longitude: float, latitude: float, epsg: int = 4326) SwedenCounty | None[source]#
Retrieve the county enum member for a given coordinate.
- Parameters:
longitude (float) – Longitude (in the input CRS).
latitude (float) – Latitude (in the input CRS).
epsg (int) – EPSG code for the input coordinates (default: 4326).
- Returns:
The corresponding SwedenCounty enum member or None if not found.
- Return type:
SwedenCounty | None
- static get_distance_to_coast_km(longitude: float, latitude: float, epsg: int = 4326) float[source]#
Calculate the distance from a given point (lon/lat in the input CRS) to the nearest coastline point. Internally, the calculation is done in the metric projection EPSG:3857.
- Parameters:
longitude (float) – Longitude (in the input CRS).
latitude (float) – Latitude (in the input CRS).
epsg (int) – EPSG code for the input coordinates (default: 4326).
- Returns:
Distance in kilometers to the nearest coastline.
- Return type:
float
Module contents#
Convenience re-exports for geospatial utilities.