Changes between Version 3 and Version 4 of HowTo_cdo_netcdf
- Timestamp:
- 2014-11-21T11:11:35+01:00 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowTo_cdo_netcdf
v3 v4 32 32 33 33 my_grid could be a file like : 34 34 35 <code> 35 36 gridtype = lonlat … … 50 51 51 52 <code> 52 cdo sinfov my_file.nc #most info on the file53 cdo griddes my_file.nc #grid description (check that the type is not generic (which means unrecognised and thus not useable for mapping53 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 54 55 </code> 55 56 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)57 Sometimes, 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) 57 58 <code> 58 ncatted -a coordinates,my_var,o,c,"nav_lon nav_lat" sst_data.nc59 ncatted -a coordinates,my_var,o,c,"nav_lon nav_lat" sst_data.nc 59 60 </code> 60 61 61 62 or to correct a wrong spelling of an attribute 63 62 64 <code> 63 ncatted -a units,latitude,m,c,"degrees_north" force2002.nc65 ncatted -a units,latitude,m,c,"degrees_north" force2002.nc 64 66 </code> 65 67 … … 69 71 # Simple combination: 70 72 <code> 71 cdo sub -dayavg ifile2 -timavg ifile1 ofile73 cdo sub -dayavg ifile2 -timavg ifile1 ofile 72 74 </code> 73 75