Skip to content

Commit

Permalink
replace S with s as S is deprecated in pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahAlidoost committed Feb 2, 2024
1 parent d3ffc6b commit 5b9585c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion PyStemmusScope/forcing_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def read_forcing_data_global( # noqa:PLR0913 (too many arguments)
lon: float,
start_time: np.datetime64,
end_time: np.datetime64,
timestep: str = "1800S",
timestep: str = "1800s",
) -> dict:
"""Read forcing data for a certain location, based on global datasets.
Expand Down
4 changes: 2 additions & 2 deletions PyStemmusScope/global_data/cams_co2.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def retrieve_co2_data(
latlon: Latitude and longitude of the site.
time_range: Start and end time of the model run.
timestep: Desired timestep of the model, this is derived from the forcing data.
In a pandas-timedelta compatible format. For example: "1800S"
In a pandas-timedelta compatible format. For example: "1800s"
Returns:
DataArray containing the CO2 at the specified site for the given time range.
Expand Down Expand Up @@ -55,7 +55,7 @@ def extract_cams_data(
latlon: Latitude and longitude of the site.
time_range: Start and end time of the model run.
timestep: Desired timestep of the model, this is derived from the forcing data.
In a pandas-timedelta compatible format. For example: "1800S"
In a pandas-timedelta compatible format. For example: "1800s"
Returns:
DataArray containing the CO2 concentration.
Expand Down
4 changes: 2 additions & 2 deletions PyStemmusScope/global_data/cci_landcover.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def retrieve_landcover_data(
latlon: Latitude and longitude of the site.
time_range: Start and end time of the model run.
timestep: Desired timestep of the model, this is derived from the forcing data.
In a pandas-timedelta compatible format. For example: "1800S"
In a pandas-timedelta compatible format. For example: "1800s"
Returns:
Dictionary containing IGBP and LCCS land cover classes.
Expand Down Expand Up @@ -57,7 +57,7 @@ def extract_landcover_data(
latlon: Latitude and longitude of the site.
time_range: Start and end time of the model run.
timestep: Desired timestep of the model, this is derived from the forcing data.
In a pandas-timedelta compatible format. For example: "1800S"
In a pandas-timedelta compatible format. For example: "1800s"
Returns:
Dictionary containing IGBP and LCCS land cover classes.
Expand Down
4 changes: 2 additions & 2 deletions PyStemmusScope/global_data/copernicus_lai.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def retrieve_lai_data(
latlon: Latitude and longitude of the site.
time_range: Start and end time of the model run.
timestep: Desired timestep of the model, this is derived from the forcing data.
In a pandas-timedelta compatible format. For example: "1800S"
In a pandas-timedelta compatible format. For example: "1800s"
Returns:
DataArray containing the LAI of the specified site for the given time range.
Expand Down Expand Up @@ -55,7 +55,7 @@ def extract_lai_data(
latlon: Latitude and longitude of the site.
time_range: Start and end time of the model run.
timestep: Desired timestep of the model, this is derived from the forcing data.
In a pandas-timedelta compatible format. For example: "1800S"
In a pandas-timedelta compatible format. For example: "1800s"
Returns:
DataArray containing the LAI of the specified site for the given time range.
Expand Down
6 changes: 3 additions & 3 deletions PyStemmusScope/global_data/era5.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def retrieve_era5_data(
latlon: Latitude and longitude of the site.
time_range: Start and end time of the model run.
timestep: Desired timestep of the model, this is derived from the forcing data.
In a pandas-timedelta compatible format. For example: "1800S"
In a pandas-timedelta compatible format. For example: "1800s"
Returns:
Dictionary containing the variables extracted from ERA5.
Expand Down Expand Up @@ -68,7 +68,7 @@ def load_era5_data(
latlon: Latitude and longitude of the site.
time_range: Start and end time of the model run.
timestep: Desired timestep of the model, this is derived from the forcing data.
In a pandas-timedelta compatible format. For example: "1800S"
In a pandas-timedelta compatible format. For example: "1800s"
Returns:
Dictionary containing the variables extracted from ERA5.
Expand Down Expand Up @@ -117,7 +117,7 @@ def get_era5_dataset(
name: Either "ERA5" or "ERA5-land".
time_range: Start and end time of the model run.
timestep: Desired timestep of the model, this is derived from the forcing data.
In a pandas-timedelta compatible format. For example: "1800S"
In a pandas-timedelta compatible format. For example: "1800s"
Returns:
The ERA5 or ERA5-land dataset.
Expand Down
2 changes: 1 addition & 1 deletion PyStemmusScope/global_data/global_data_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def collect_datasets(
latlon: Latitude and longitude of the site.
time_range: Start and end time of the model run.
timestep: Desired timestep of the model, this is derived from the forcing data.
In a pandas-timedelta compatible format. For example: "1800S"
In a pandas-timedelta compatible format. For example: "1800s"
Returns:
Dictionary containing the variables extracted from the global datasets.
Expand Down

0 comments on commit 5b9585c

Please sign in to comment.