Changes between Version 3 and Version 4 of HowTo_cdo_netcdf


Ignore:
Timestamp:
2014-11-21T11:11:35+01:00 (9 years ago)
Author:
zpoussi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo_cdo_netcdf

    v3 v4  
    3232 
    3333my_grid could be a file like : 
     34 
    3435<code>   
    3536   gridtype  = lonlat 
     
    5051 
    5152<code> 
    52 cdo sinfov my_file.nc #most info on the file 
    53 cdo griddes my_file.nc #grid description (check that the type is not generic (which means unrecognised and thus not useable for mapping 
     53   cdo sinfov my_file.nc #most info on the file 
     54   cdo griddes my_file.nc #grid description (check that the type is not generic (which means unrecognised and thus not useable for mapping 
    5455</code> 
    5556 
    56 sometime, one just need to add the attribute coordinates (linking to the variables defining the longitude and latitude positions) to enable the recognition of the grid that is used (see https://code.zmaw.de/boards/1/topics/55) 
     57Sometimes, one just need to add the attribute coordinates (linking to the variables defining the longitude and latitude positions) to enable the recognition of the grid that is used (see https://code.zmaw.de/boards/1/topics/55) 
    5758<code> 
    58 ncatted -a coordinates,my_var,o,c,"nav_lon nav_lat" sst_data.nc 
     59   ncatted -a coordinates,my_var,o,c,"nav_lon nav_lat" sst_data.nc 
    5960</code> 
    6061 
    6162or to correct a wrong spelling of an attribute 
     63 
    6264<code> 
    63 ncatted -a units,latitude,m,c,"degrees_north" force2002.nc 
     65   ncatted -a units,latitude,m,c,"degrees_north" force2002.nc 
    6466</code> 
    6567 
     
    6971# Simple combination: 
    7072<code> 
    71 cdo sub -dayavg ifile2 -timavg ifile1 ofile 
     73   cdo sub -dayavg ifile2 -timavg ifile1 ofile 
    7274</code> 
    7375