Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

(shr_stream_getCalendar) ERROR

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:

 
Top