[NCO] when GrADS cannot read netcdf

refers Here

Because of wrong units in Time in attribution.

In my case, I can open the SODA2.2.4 data by GrADS after modifying unit in TIME. It feels awesome!!

 

<Format>

ncatted -O -a units,variable,o,c,’title’ data.nc

<Example>

ncatted -O -a units,TIME,o,c,’days since 1870-1-1 0:0:0′ taux.SODA.nc

 

<Other Examples> 

# Overwrite units attribute of specific 'lon' variable
ncatted -O -a units,/g1/lon,o,c,'degrees_west' in_grp.nc

# Overwrite units attribute of all 'lon' variables
ncatted -O -a units,lon,o,c,'degrees_west' in_grp.nc

# Delete units attribute of all 'lon' variables
ncatted -O -a units,lon,d,, in_grp.nc

# Overwrite units attribute with new type for specific 'lon' variable
ncatted -O -a units,/g1/lon,o,sng,'degrees_west' in_grp.nc

# Add new_att attribute to all variables
ncatted -O -a new_att,,c,sng,'new variable attribute' in_grp.nc

# Add new_grp_att group attribute to all groups
ncatted -O -a new_grp_att,group,c,sng,'new group attribute' in_grp.nc

# Add new_grp_att group attribute to single group
ncatted -O -a g1_grp_att,g1,c,sng,'new group attribute' in_grp.nc

# Add new_glb_att global attribute to root group
ncatted -O -a new_glb_att,global,c,sng,'new global attribute' in_grp.nc


So, Simple 🙂