Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No download for 'ERA5_const_sfc_variables' included #1

Open
Declan-Curran1 opened this issue Jun 19, 2024 · 3 comments
Open

No download for 'ERA5_const_sfc_variables' included #1

Declan-Curran1 opened this issue Jun 19, 2024 · 3 comments
Assignees

Comments

@Declan-Curran1
Copy link

Declan-Curran1 commented Jun 19, 2024

Hi Laura/Robbie, thanks for providing the accompanying code to this paper.

I have downloaded the data per the instructions in the readme which comes to files samples_{year}.nc for each year.

However, when I go to run TrainUnet.py or TrainDiffusion.py - I run into the same error:

  File "src\\netCDF4\\_netCDF4.pyx", line 2469, in netCDF4._netCDF4.Dataset.__init__
  File "src\\netCDF4\\_netCDF4.pyx", line 2028, in netCDF4._netCDF4._ensure_nc_success
FileNotFoundError: [Errno 2] No such file or directory: 
"\\download_ERA5\\data\\ERA5_const_sfc_variables.nc"

It appears that the 'UpscaleDataset()' class in DatasetUS.py requires another .nc file 'ERA5_const_sfc_variables.nc' that isn't downloaded through the download script and is separate to the yearly data?

@LevanBokeria
Copy link

Hello,

I was also interested in following up on @Declan-Curran1's comment. Is there any chance to get the constant variables file or a script to download it?

We would like to use this repository as a demo for applying diffusion models to weather data for our reading group at the Alan Turing Institute.

Thank you very much!

@lm2612 lm2612 self-assigned this Jun 27, 2024
@lm2612
Copy link
Collaborator

lm2612 commented Jun 27, 2024

Thanks for finding this and sorry. I manually downloaded that file from the ERA5 Copernicus Store. I am currently away but at some point write a script to download it. For now I've added that file to the directory data/. You could also pull it from Copernicus here: https://cds.climate.copernicus.eu/cdsapp#!/dataset/reanalysis-era5-single-levels?tab=form (select Other, then select geopotential and land-sea mask, and any date/time and request it as netcdf).

@LevanBokeria
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants