/[MITgcm]/MITgcm_contrib/netcdf_matlab_examples/README.txt
ViewVC logotype

Diff of /MITgcm_contrib/netcdf_matlab_examples/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

--- MITgcm_contrib/netcdf_matlab_examples/README.txt	2003/12/30 04:31:52	1.1
+++ MITgcm_contrib/netcdf_matlab_examples/README.txt	2004/01/03 19:46:51	1.2
@@ -25,16 +25,27 @@
 
 The key items for the use of NetCDF files within Ingrid are:
 
-  1) In order to work with the Ingrid "plot land" option, dimensions
+  1) Although coordinate names such as "lat", "lon", "latitude",
+     etc. will work without any problems for plotting data, it seems
+     that the names "X" and "Y" sould be preferred for the coordinate
+     names so that calculations (eg. curl) can be applied to those
+     data sets.  For an example see:
+
+       TRENBERTH_tau_mask/EH3_notes_mask.txt
+
+     where both naming styles are used but the latter "X", "Y" naming
+     scheme should be preferred.
+
+  2) In order to work with the Ingrid "plot land" option, dimensions
      should have units of "degree_east" and "degree_north" as, for
      example, specified by:
 
-       nc{'lon'}.units = 'degree_east';
-       nc{'lat'}.units = 'degree_north';
+       nc{'X'}.units = 'degree_east';
+       nc{'Y'}.units = 'degree_north';
 
      The actual dimension names (eg. "lat" or "Y") are unimportant.
 
-  2) It is generally a good idea to set the "gridtype" to 1 or 0 to
+  3) It is generally a good idea to set the "gridtype" to 1 or 0 to
      indicate that the coordinate "wraps" or not.  The gridtype
      attribute allows Ingrid to, for instance, plot longitudinal data
      over "wrapped" ranges such as -100 to 500deg.  The attribute can
@@ -43,7 +54,7 @@
        nc{'X'}.gridtype = ncint(1);
        nc{'Y'}.gridtype = ncint(0);
 
-  3) Ingrid does seem to correctly handle the "_FillValue" attribute
+  4) Ingrid does seem to correctly handle the "_FillValue" attribute
      and it can be set using a MatLAB command such as:
 
        nc{ idu }.FillValue_ = ncdouble(-9999.0);

 

  ViewVC Help
Powered by ViewVC 1.1.22