Skip to content

Commit

Permalink
era5 updates for new CDS-Beta (#133)
Browse files Browse the repository at this point in the history
Updated to new cds api for ERA5.
The new cds api needs a token to be generated and placed in your Unix/Linux environment, see https://cds-beta.climate.copernicus.eu/how-to-api#install-the-cds-api-token
  • Loading branch information
felicio93 authored Aug 20, 2024
1 parent c65e11b commit 1576f61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyschism/forcing/nws/nws2/era5.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def write(
nx_grid, ny_grid = self.inventory.xy_grid()

ds=Dataset(self.inventory.files[0])
time1=ds['time']
time1=ds['valid_time']
times=nc4.num2date(time1,units=time1.units,only_use_cftime_datetimes=False)

for iday, date in enumerate(dates):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def run(self):
},
install_requires=[
'boto3',
'cdsapi',
'cdsapi>=0.7.0',
'cf-python',
'cfgrib',
'f90nml',
Expand Down

0 comments on commit 1576f61

Please sign in to comment.