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_1994
Moren_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¶
- class pyforestry.sweden.geo.geo.RetrieveGeoCode[source]¶
Bases:
object
- static getClimateCode(lon, lat, epsg=4326) SwedenClimateZone | None [source]¶
Retrieve the climate zone enum member for a given coordinate.
- Parameters:
lon (float) – Longitude (in the input CRS).
lat (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 getCountyCode(lon, lat, epsg=4326) SwedenCounty | None [source]¶
Retrieve the county enum member for a given coordinate.
- Parameters:
lon (float) – Longitude (in the input CRS).
lat (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 getDistanceToCoast(lon, lat, epsg=4326)[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:
lon (float) – Longitude (in the input CRS).
lat (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