-
This didn't seem to work either, not sure. If I explicitly reset all values outside of the valid range to -999 and then set the missing value to that, it seems to work.
ncap2 -O -s 'where(snod>3.7) snod=-999.f;snod@missing_value=-999.f;' snod.2007.nc snod.2007.nc
This will have to do for now as I'm running out of time. I'll try to revisit it in the future. Appreciate the time and...
2009-07-10 23:16:32 UTC in NCO netCDF Operators
-
Well, there were a couple issues but I may have found a way past them. You were right, I should have been "unpacking" up front to make things easier. I found that ncpdq -U seemed to work but I somehow lost the ability to track NA's. I'm using a wrapper package in R, (www.r-project.org) to access the netcdf and double check results. The original packed is:
short snod(time, y, x) ;.
2009-07-07 17:22:35 UTC in NCO netCDF Operators
-
I'm attempting to convert a "short" type to a "float" type using : ncap2 -s snod=float(snod); snod.2007.nc snod.test.nc
The ncdump -h looks like this for the original and the converted. The output set looks to the "missing value", 3.2766 plus a very small increment. The pattern of the data is there but the scaling is obviously in error. I'm new to the NCO...
2009-07-06 17:30:46 UTC in NCO netCDF Operators