climate_toolbox.utils package¶
Submodules¶
climate_toolbox.utils.utils module¶
Handy functions for standardizing the format of climate data
-
climate_toolbox.utils.utils.
convert_kelvin_to_celsius
(df, temp_name)[source]¶ Convert Kelvin to Celsius
-
climate_toolbox.utils.utils.
convert_lons_mono
(ds, lon_name='longitude')[source]¶ Convert longitude from -180-180 to 0-360
-
climate_toolbox.utils.utils.
convert_lons_split
(ds, lon_name='longitude')[source]¶ Convert longitude from 0-360 to -180-180
-
climate_toolbox.utils.utils.
get_daily_growing_season_mask
(lat, lon, time, growing_days_path)[source]¶ Constructs a mask for days in the within calendar growing season
- Parameters
lat (xr.DataArray coords object) –
lon (xr.DataArray coords object) –
time (xr.DataArray coords object) –
growing_days_path (str) –
- Returns
xr.DataArray of masked lat x lon x time
- Return type
DataArray
-
climate_toolbox.utils.utils.
rename_coords_to_lon_and_lat
(ds)[source]¶ Rename Dataset spatial coord names to: lat, lon