Skip to content

Commit 5b9585c

Browse files
committed
replace S with s as S is deprecated in pandas
1 parent d3ffc6b commit 5b9585c

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

PyStemmusScope/forcing_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def read_forcing_data_global( # noqa:PLR0913 (too many arguments)
114114
lon: float,
115115
start_time: np.datetime64,
116116
end_time: np.datetime64,
117-
timestep: str = "1800S",
117+
timestep: str = "1800s",
118118
) -> dict:
119119
"""Read forcing data for a certain location, based on global datasets.
120120

PyStemmusScope/global_data/cams_co2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def retrieve_co2_data(
2222
latlon: Latitude and longitude of the site.
2323
time_range: Start and end time of the model run.
2424
timestep: Desired timestep of the model, this is derived from the forcing data.
25-
In a pandas-timedelta compatible format. For example: "1800S"
25+
In a pandas-timedelta compatible format. For example: "1800s"
2626
2727
Returns:
2828
DataArray containing the CO2 at the specified site for the given time range.
@@ -55,7 +55,7 @@ def extract_cams_data(
5555
latlon: Latitude and longitude of the site.
5656
time_range: Start and end time of the model run.
5757
timestep: Desired timestep of the model, this is derived from the forcing data.
58-
In a pandas-timedelta compatible format. For example: "1800S"
58+
In a pandas-timedelta compatible format. For example: "1800s"
5959
6060
Returns:
6161
DataArray containing the CO2 concentration.

PyStemmusScope/global_data/cci_landcover.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def retrieve_landcover_data(
2424
latlon: Latitude and longitude of the site.
2525
time_range: Start and end time of the model run.
2626
timestep: Desired timestep of the model, this is derived from the forcing data.
27-
In a pandas-timedelta compatible format. For example: "1800S"
27+
In a pandas-timedelta compatible format. For example: "1800s"
2828
2929
Returns:
3030
Dictionary containing IGBP and LCCS land cover classes.
@@ -57,7 +57,7 @@ def extract_landcover_data(
5757
latlon: Latitude and longitude of the site.
5858
time_range: Start and end time of the model run.
5959
timestep: Desired timestep of the model, this is derived from the forcing data.
60-
In a pandas-timedelta compatible format. For example: "1800S"
60+
In a pandas-timedelta compatible format. For example: "1800s"
6161
6262
Returns:
6363
Dictionary containing IGBP and LCCS land cover classes.

PyStemmusScope/global_data/copernicus_lai.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def retrieve_lai_data(
2222
latlon: Latitude and longitude of the site.
2323
time_range: Start and end time of the model run.
2424
timestep: Desired timestep of the model, this is derived from the forcing data.
25-
In a pandas-timedelta compatible format. For example: "1800S"
25+
In a pandas-timedelta compatible format. For example: "1800s"
2626
2727
Returns:
2828
DataArray containing the LAI of the specified site for the given time range.
@@ -55,7 +55,7 @@ def extract_lai_data(
5555
latlon: Latitude and longitude of the site.
5656
time_range: Start and end time of the model run.
5757
timestep: Desired timestep of the model, this is derived from the forcing data.
58-
In a pandas-timedelta compatible format. For example: "1800S"
58+
In a pandas-timedelta compatible format. For example: "1800s"
5959
6060
Returns:
6161
DataArray containing the LAI of the specified site for the given time range.

PyStemmusScope/global_data/era5.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def retrieve_era5_data(
2727
latlon: Latitude and longitude of the site.
2828
time_range: Start and end time of the model run.
2929
timestep: Desired timestep of the model, this is derived from the forcing data.
30-
In a pandas-timedelta compatible format. For example: "1800S"
30+
In a pandas-timedelta compatible format. For example: "1800s"
3131
3232
Returns:
3333
Dictionary containing the variables extracted from ERA5.
@@ -68,7 +68,7 @@ def load_era5_data(
6868
latlon: Latitude and longitude of the site.
6969
time_range: Start and end time of the model run.
7070
timestep: Desired timestep of the model, this is derived from the forcing data.
71-
In a pandas-timedelta compatible format. For example: "1800S"
71+
In a pandas-timedelta compatible format. For example: "1800s"
7272
7373
Returns:
7474
Dictionary containing the variables extracted from ERA5.
@@ -117,7 +117,7 @@ def get_era5_dataset(
117117
name: Either "ERA5" or "ERA5-land".
118118
time_range: Start and end time of the model run.
119119
timestep: Desired timestep of the model, this is derived from the forcing data.
120-
In a pandas-timedelta compatible format. For example: "1800S"
120+
In a pandas-timedelta compatible format. For example: "1800s"
121121
122122
Returns:
123123
The ERA5 or ERA5-land dataset.

PyStemmusScope/global_data/global_data_selection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def collect_datasets(
2222
latlon: Latitude and longitude of the site.
2323
time_range: Start and end time of the model run.
2424
timestep: Desired timestep of the model, this is derived from the forcing data.
25-
In a pandas-timedelta compatible format. For example: "1800S"
25+
In a pandas-timedelta compatible format. For example: "1800s"
2626
2727
Returns:
2828
Dictionary containing the variables extracted from the global datasets.

0 commit comments

Comments
 (0)