Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

ERA5 Netcdf data

Shaivi Shukla

New member
I had downloaded the ERA5 netcdf subset data whose list I had attached, then I had ran the era5_to_int.py in spyder by adding this lines
import sys

sys.argv = [
'era5_to_int.py',
'2024-05-25_00',
'2024-10-01_00',
'6',
'-p', 'D:/ERA5/',
'-i',
'-v', 'GEOPT,SPECHUMD,UU,VV,DEWPT,TT,PMSL,SEAICE,SST,SKINTEMP,SNOW_DEN,SNOW_EC,ST000007,ST007028,ST028100,ST100289,SM000007,SM007028,SM028100,SM100289'
]
After running I didn't got any intermediate file, I am not getting any error also in the console, I had attached the file containing what I got in my console.
 

Attachments

  • era_pl data.txt
    1.5 KB · Views: 3
  • era_sfc data.txt
    913 bytes · Views: 2
  • my_spyder_console_log.txt
    20.3 KB · Views: 3
The intermediate file output will be relative to the run directory. In your spyder console can you check the current directory to verify that the file(s) are not in that location? Something like this would suffice:
Code:
import os
os.getcwd()
os.listdir()

Also, how are you running the script? Is it implicit via import or as a magic command (eg. %run)?
 
I am running it using the command run, This is the python script which I am running. I had checked the current directory (
Current directory: D:\ERA5\era5_to_int-main\era5_to_int-main
Contents:
- ecmwf_coeffs
- ERA5
- era5_to_int.py
- era_pl data.txt
- era_sfc data.txt
- fortran_io.py
- LICENSE
- README.md
- WPSUtils.py
- __pycache__
) but there is no intermediate file.
 
Top