| 25 |  |  | 
| 26 | The key items for the use of NetCDF files within Ingrid are: | The key items for the use of NetCDF files within Ingrid are: | 
| 27 |  |  | 
| 28 | 1) In order to work with the Ingrid "plot land" option, dimensions | 1) Although coordinate names such as "lat", "lon", "latitude", | 
| 29 |  | etc. will work without any problems for plotting data, it seems | 
| 30 |  | that the names "X" and "Y" sould be preferred for the coordinate | 
| 31 |  | names so that calculations (eg. curl) can be applied to those | 
| 32 |  | data sets.  For an example see: | 
| 33 |  |  | 
| 34 |  | TRENBERTH_tau_mask/EH3_notes_mask.txt | 
| 35 |  |  | 
| 36 |  | where both naming styles are used but the latter "X", "Y" naming | 
| 37 |  | scheme should be preferred. | 
| 38 |  |  | 
| 39 |  | 2) In order to work with the Ingrid "plot land" option, dimensions | 
| 40 | should have units of "degree_east" and "degree_north" as, for | should have units of "degree_east" and "degree_north" as, for | 
| 41 | example, specified by: | example, specified by: | 
| 42 |  |  | 
| 43 | nc{'lon'}.units = 'degree_east'; | nc{'X'}.units = 'degree_east'; | 
| 44 | nc{'lat'}.units = 'degree_north'; | nc{'Y'}.units = 'degree_north'; | 
| 45 |  |  | 
| 46 | The actual dimension names (eg. "lat" or "Y") are unimportant. | The actual dimension names (eg. "lat" or "Y") are unimportant. | 
| 47 |  |  | 
| 48 | 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 | 
| 49 | indicate that the coordinate "wraps" or not.  The gridtype | indicate that the coordinate "wraps" or not.  The gridtype | 
| 50 | attribute allows Ingrid to, for instance, plot longitudinal data | attribute allows Ingrid to, for instance, plot longitudinal data | 
| 51 | over "wrapped" ranges such as -100 to 500deg.  The attribute can | over "wrapped" ranges such as -100 to 500deg.  The attribute can | 
| 54 | nc{'X'}.gridtype = ncint(1); | nc{'X'}.gridtype = ncint(1); | 
| 55 | nc{'Y'}.gridtype = ncint(0); | nc{'Y'}.gridtype = ncint(0); | 
| 56 |  |  | 
| 57 | 3) Ingrid does seem to correctly handle the "_FillValue" attribute | 4) Ingrid does seem to correctly handle the "_FillValue" attribute | 
| 58 | and it can be set using a MatLAB command such as: | and it can be set using a MatLAB command such as: | 
| 59 |  |  | 
| 60 | nc{ idu }.FillValue_ = ncdouble(-9999.0); | nc{ idu }.FillValue_ = ncdouble(-9999.0); |