(shr_stream_getCalendar) ERROR

Status
Not open for further replies.

baofangling21@mails.ucas.

baofangling
New Member
I wanted to reduce the FSDS data in solar by 10%. Here is how I changed it using python:
for f in tqdm(files):
print(f)
data_x = nc.Dataset(f, 'a')
data_x.variables['FSDS'][:] = data_x.variables['FSDS'][:]
data_x.close()
But I found the following error:
(shr_stream_getCalendar) ERROR: nf90_open file /home/fangling/cesm/inputdata/l
mwg/atm_forcing.datm7.GSWP3.0.5d.v1.c170516/Solar/clmforc.GSWP3.c2011.0.5x0.5.S
olr.2002-01.nc

I wonder how I can achieve my goal.Does it need to be changed in Fortran?
If possible, could you provide me with an example?
Thank you very much.
 

oleson

Keith Oleson
CSEG and Liaisons
Staff member
I personally don't know python, so I can't help you with this.
I've used NCO (netCDF operators) to manipulate netcdf files in the past. Information below, in particular, ncap2 might be useful here:

 
Status
Not open for further replies.
Back
Top