2009/10/5 Antonio Rodríguez
<antonio.raju@xxxxxxxxx>
Hi,
Trying to make a mask from my file, I get:
use dec.nc
let mask=if l3m_data lt 65535 then 0 else 1
save/file=mask.nc mask
LISTing to file mask.nc
** netCDF error:
Failed creating coord variable %%
I couldn't find any trick after browsing the help pages. I don't know what's going on. Any idea?
Thanks!
Antonio
Bellow you could find the result from ncdumping my dec.nc file:
ncdump -h dec.nc
netcdf dec {
dimensions:
G3fakeDim0 = 205 ;
G3fakeDim1 = 145 ;
depth = 1 ;
time = UNLIMITED ; // (1 currently)
variables:
float l3m_data(time, depth, G3fakeDim0, G3fakeDim1) ;
l3m_data:Scaling = "linear" ;
l3m_data:Slope = 0.000717185f ;
l3m_data:Intercept = -2.f ;
l3m_data:Scaling_Equation = "(Slope*l3m_data) + Intercept = Parameter value" ;
l3m_data:_FillValue = 65535.f ;
l3m_data:structureType = "Grid" ;
l3m_data:unitsCategory = "science" ;
l3m_data:units = "C" ;
l3m_data:scale_factor = 1.f ;
l3m_data:add_offset = 0.f ;
float G3fakeDim0(G3fakeDim0) ;
G3fakeDim0:scale = 0 ;
G3fakeDim0:stride = 0.08333334f ;
G3fakeDim0:gridReference = "edge" ;
G3fakeDim0:axis = "Y" ;
G3fakeDim0:standard_name = "latitude" ;
G3fakeDim0:endValue = 47.f ;
G3fakeDim0:units = "degrees" ;
G3fakeDim0:scaleType = "linear" ;
G3fakeDim0:startValue = 29.91667f ;
G3fakeDim0:size = 205 ;
float G3fakeDim1(G3fakeDim1) ;
G3fakeDim1:scale = 0 ;
G3fakeDim1:stride = 0.08333334f ;
G3fakeDim1:gridReference = "edge" ;
G3fakeDim1:axis = "X" ;
G3fakeDim1:standard_name = "longitude" ;
G3fakeDim1:endValue = 1.000005f ;
G3fakeDim1:units = "degrees" ;
G3fakeDim1:scaleType = "linear" ;
G3fakeDim1:startValue = -11.08333f ;
G3fakeDim1:size = 145 ;
// global attributes:
:Conventions = "CF-1.0" ;
:history = "Mon Oct 5 19:51:52 2009: ncecat -u time dec.nc dec.nc\n",
"Mon Oct 5 19:51:47 2009: ncecat -u depth modisterra-dec2001.nc dec.nc" ;
:nco_openmp_thread_number = 1 ;