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

NCWA error

Hello. I have the latest version of the pop2 diagnostics package (rel_20110810) and I'm attempting to run the popdiagts.csh script on mirage4. I'm getting netcdf errors that are originating from the ncwa calls in the gen_TS_meandiffrms_timeseries.csh script:

while ( $in
 

bates

Member
For some reason, the metadata for your output has _FillValue and missing_value attributes for all of the grid definition variables (TLAT, TLONG, HTE, dz, etc.). I don't know why this happened yet, but it does cause problems in the ocean diagnostics. Here's a fix:

Inside gen_TS_meandiffrms_timeseries.csh, after the lines

cp ${TCLIMFILE} obs.nc
cp ${SCLIMFILE} SALT_obs.nc
ncks -A -v SALT SALT_obs.nc obs.nc
ncks -A -v TAREA,REGION_MASK ${CASE}.pop.h.${year}.nc obs.nc

add these lines

ncatted -a missing_value,TLAT,d,, obs.nc
ncatted -a missing_value,TLONG,d,, obs.nc
ncatted -a _FillValue,TLAT,d,, obs.nc
ncatted -a _FillValue,TLONG,d,, obs.nc

This will remove these two attributes from the obs.nc file and should allow the ncwa command to work.

Susan
 
Top