1 # Created by Octave 3.6.1, Thu Apr 26 22:44:40 2012 UTC <root@t61>
13 # name: <cell-element>
17 Example for creating and reading a netcdf file
21 # name: <cell-element>
25 Example for creating and reading a netcdf file
30 # name: <cell-element>
37 # name: <cell-element>
41 Example for loading a dataset from an OPeNDAP server
45 # name: <cell-element>
49 Example for loading a dataset from an OPeNDAP server
54 # name: <cell-element>
61 # name: <cell-element>
65 -- Loadable Function: NCVAR = ncbyte(DIMNAME_1,...,DIMNAME_N)
66 creates a netcdf variable of type ncbyte. DIMNAME_1 is the name of
67 the 1st netcdf dimension, and so on. The return value is a netcdf
68 variable object and must be affected to a netcdf file, before its
69 content can be defined.
72 nc = netcdf('test.nc','w');
75 nc{'var'} = ncbyte('lon','lat');
76 A new 360 by 180 netcdf variable named 'var' of type byte is
77 created in file 'test.nc'.
84 # name: <cell-element>
88 creates a netcdf variable of type ncbyte.
92 # name: <cell-element>
99 # name: <cell-element>
103 -- Loadable Function: NCVAR = ncchar(DIMNAME_1,...,DIMNAME_N)
104 creates a netcdf variable of type ncchar. DIMNAME_1 is the name of
105 the 1st netcdf dimension, and so on. The return value is a netcdf
106 variable object and must be affected to a netcdf file, before its
107 content can be defined.
110 nc = netcdf('test.nc','w');
113 nc{'var'} = ncchar('lon','lat');
114 A new 360 by 180 netcdf variable named 'var' of type char is
115 created in file 'test.nc'.
122 # name: <cell-element>
126 creates a netcdf variable of type ncchar.
130 # name: <cell-element>
137 # name: <cell-element>
141 -- Loadable Function: NCVAR = ncdouble(DIMNAME_1,...,DIMNAME_N)
142 creates a netcdf variable of type ncdouble. DIMNAME_1 is the name
143 of the 1st netcdf dimension, and so on. The return value is a
144 netcdf variable object and must be affected to a netcdf file,
145 before its content can be defined.
148 nc = netcdf('test.nc','w');
151 nc{'var'} = ncdouble('lon','lat');
152 A new 360 by 180 netcdf variable named 'var' of type double is
153 created in file 'test.nc'.
160 # name: <cell-element>
164 creates a netcdf variable of type ncdouble.
168 # name: <cell-element>
175 # name: <cell-element>
179 -- Loadable Function: ncdump (FILENAME)
180 -- Loadable Function: ncdump (FILENAME,OUTPUT_FILENAME)
181 This function writes the content of the NetCDF file FILENAME
182 except the actual values of the variables to the screen or to the
183 file OUTPUT_FILENAME is this argument is provided. The output
184 used the same syntax that the octcdf toolbox. Therefore ncdump can
185 be used to create a program that produces a NetCDF file with the
186 same metadata than the NetCDF file FILENAME.
188 See also: ncdim, ncvar, ncatt
193 # name: <cell-element>
197 This function writes the content of the NetCDF file FILENAME except the
202 # name: <cell-element>
209 # name: <cell-element>
213 -- Loadable Function: FILLVALUE = ncfillval (NCVAR)
214 -- Loadable Function: ncfillval (NCVAR,FILLVALUE)
215 returns or sets the FILLVALUE of the NetCDF variable NCVAR.
222 # name: <cell-element>
226 returns or sets the FILLVALUE of the NetCDF variable NCVAR.
230 # name: <cell-element>
237 # name: <cell-element>
241 -- Loadable Function: NCVAR = ncfloat(DIMNAME_1,...,DIMNAME_N)
242 creates a netcdf variable of type ncfloat. DIMNAME_1 is the name
243 of the 1st netcdf dimension, and so on. The return value is a
244 netcdf variable object and must be affected to a netcdf file,
245 before its content can be defined.
248 nc = netcdf('test.nc','w');
251 nc{'var'} = ncfloat('lon','lat');
252 A new 360 by 180 netcdf variable named 'var' of type float is
253 created in file 'test.nc'.
260 # name: <cell-element>
264 creates a netcdf variable of type ncfloat.
268 # name: <cell-element>
275 # name: <cell-element>
279 -- Loadable Function: NCVAR = ncint(DIMNAME_1,...,DIMNAME_N)
280 creates a netcdf variable of type ncint. DIMNAME_1 is the name of
281 the 1st netcdf dimension, and so on. The return value is a netcdf
282 variable object and must be affected to a netcdf file, before its
283 content can be defined.
286 nc = netcdf('test.nc','w');
289 nc{'var'} = ncint('lon','lat');
290 A new 360 by 180 netcdf variable named 'var' of type int is
291 created in file 'test.nc'.
298 # name: <cell-element>
302 creates a netcdf variable of type ncint.
306 # name: <cell-element>
313 # name: <cell-element>
317 -- Loadable Function: NCVAR = nclong(DIMNAME_1,...,DIMNAME_N)
318 creates a netcdf variable of type nclong. DIMNAME_1 is the name of
319 the 1st netcdf dimension, and so on. The return value is a netcdf
320 variable object and must be affected to a netcdf file, before its
321 content can be defined.
324 nc = netcdf('test.nc','w');
327 nc{'var'} = nclong('lon','lat');
328 A new 360 by 180 netcdf variable named 'var' of type long is
329 created in file 'test.nc'.
336 # name: <cell-element>
340 creates a netcdf variable of type nclong.
344 # name: <cell-element>
351 # name: <cell-element>
355 -- Loadable Function: NCVAR = ncshort(DIMNAME_1,...,DIMNAME_N)
356 creates a netcdf variable of type ncshort. DIMNAME_1 is the name
357 of the 1st netcdf dimension, and so on. The return value is a
358 netcdf variable object and must be affected to a netcdf file,
359 before its content can be defined.
362 nc = netcdf('test.nc','w');
365 nc{'var'} = ncshort('lon','lat');
366 A new 360 by 180 netcdf variable named 'var' of type short is
367 created in file 'test.nc'.
374 # name: <cell-element>
378 creates a netcdf variable of type ncshort.
382 # name: <cell-element>
389 # name: <cell-element>
393 -- Loadable Function: nctest
394 Tests the octcdf toolbox. Tests results are written to nctest.log.
395 All tests should pass.
400 # name: <cell-element>
404 Tests the octcdf toolbox.