/usr/share/octave/packages/netcdf-1.0.11/doc-cache is in octave-netcdf 1.0.11-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 | # doc-cache created by Octave 4.2.1
# name: cache
# type: cell
# rows: 3
# columns: 10
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
import_netcdf
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 44
File automatically generated by PKG_ADD.sh
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 44
File automatically generated by PKG_ADD.sh
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
nccreate
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1400
-- Function File: nccreate(FILENAME,VARNAME)
-- Function File: nccreate(FILENAME,VARNAME,"property",VALUE,...)
Create the variable VARNAME in the file FILENAME.
The following properties can be used:
* "Dimensions": a cell array with the dimension names followed
by their length or Inf if the dimension is unlimited. If the
property is ommited, a scalar variable is created.
* "Datatype": a string with the Octave data type name (see
'ncinfo' for the correspondence between Octave and NetCDF data
types). The default data type is a "double".
* "Format": This can be "netcdf4_classic" (default), "classic",
"64bit" or "netcdf4".
* "FillValue": the value used for undefined elements of the
NetCDF variable.
* "ChunkSize": the size of the data chunks. If omited, the
variable is not chunked.
* "DeflateLevel": The deflate level for compression. It can be
the string "disable" (default) for no compression or an
integer between 0 (no compression) and 9 (maximum
compression).
* "Shuffle": true for enabling the shuffle filter or false
(default) for disabling it.
Example:
nccreate("test.nc","temp","Dimensions",{"lon",10,"lat",20},"Format","classic");
ncdisp("test.nc");
See also: ncwrite.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 49
Create the variable VARNAME in the file FILENAME.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
ncdisp
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 111
-- Function File: ncdisp (FILENAME)
display meta-data of the NetCDF file FILENAME
See also: ncinfo.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 45
display meta-data of the NetCDF file FILENAME
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
ncinfo
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 3753
-- Function File: INFO = ncinfo (FILENAME)
-- Function File: INFO = ncinfo (FILENAME, VARNAME)
-- Function File: INFO = ncinfo (FILENAME, GROUPNAME)
return information about an entire NetCDF file FILENAME (i.e. the
root group "/"), about the variable called VARNAME or the group
called GROUPNAME.
The structure INFO has always the following fields:
* FILENAME: the name of the NetCDF file
* FORMAT: one of the strings "CLASSIC", "64BIT", "NETCDF4" or
"NETCDF4_CLASSIC"
The structure INFO has additional fields depending on wether a
group of variable is queried.
Groups
Groups are returned as an array structure with the following
fields:
* NAME: the group name. The root group is named "/".
* DIMENSIONS: a array structure with the dimensions.
* VARIABLES: a array structure with the variables.
* ATTRIBUTES: a array structure with global attributes.
* GROUPS: a array structure (one for each group) with the same
fields as this structure.
Dimensions
Dimensions are returned as an array structure with the following
fields:
* NAME: the name of the dimension
* LENGTH: the length of the dimension
* UNLIMITED: true of the dimension has no fixed limited, false
Variables
Variables are returned as an array structure with the following
fields:
* NAME: the name of the dimension
* DIMENSIONS: array structure of all dimensions of this variable
with the same structure as above.
* SIZE: array with the size of the variable
* DATATYPE: string with the corresponding octave data-type (see
below)
* ATTRIBUTES: a array structure of attributes
* FILLVALUE: the NetCDF fill value of the variable. If the fill
value is not defined, then this attribute is an empty array
([]).
* DEFLATELEVEL: the NetCDF deflate level between 0 (no
compression) and 9 (maximum compression).
* SHUFFLE: is true if the shuffle filter is activated to improve
compression, otherwise false.
* CHECKSUM: is set to "fletcher32", if check-sums are used,
otherwise this field is not defined.
Attributes
Attributes are returned as an array structure with the following
fields:
* NAME: the name of the attribute
* VALUE: the value of the attribute (with the corresponding
type)
* UNLIMITED: true of the dimension has no fixed limited, false
Data-types
The following the the correspondence between the Octave and NetCDF
data-types:
Octave type NetCDF type
--------------------------------------------------------------------------
'int8' 'NC_BYTE'
'uint8' 'NC_UBYTE'
'int16' 'NC_SHORT'
'uint16' 'NC_USHORT'
'int32' 'NC_INT'
'uint32' 'NC_UINT'
'int64' 'NC_INT64'
'uint64' 'NC_UINT64'
'single' 'NC_FLOAT'
'double' 'NC_DOUBLE'
'char' 'NC_CHAR'
The output of 'ncinfo' can be used to create a NetCDF file with the
same meta-data using 'ncwriteschema'.
Note: If there are no attributes (or variable or groups), the
corresponding field is an empty matrix and not an empty struct
array for compability with matlab.
See also: ncread,nccreate,ncwriteschema,ncdisp.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 61
return information about an entire NetCDF file FILENAME (i.e.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
ncread
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1292
-- Function File: X = ncread (FILENAME, VARNAME)
-- Function File: X = ncread (FILENAME, VARNAME,START,COUNT,STRIDE)
Read the variable VARNAME from the NetCDF file FILENAME.
If START,COUNT and STRIDE are present, a subset of the variable is
loaded. The parameter START contains the starting indices
(1-based), COUNT is the number of elements and STRIDE the increment
between two successive elements. These parameters are vectors
whose length is equal to the number of dimension of the variable.
Elements of COUNT might be Inf which means that as many values as
possible are loaded.
If the variable has the _FillValue attribute, then the
corresponding values are replaced by NaN (except for characters).
NetCDF attributes scale_factor (default 1) and add_offset (default
0) are use the transform the variable during the loading:
x = scale_factor * x_in_file + add_offset
The output data type matches the NetCDF datatype, except when the
attributes _FillValue, add_offset or scale_factor are defined in
which case the output is a array in double precision.
Note that values equal to the attribute missing_value are not
replaced by NaN (for compatibility).
See also: ncwrite,ncinfo,ncdisp.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 56
Read the variable VARNAME from the NetCDF file FILENAME.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
ncreadatt
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 348
-- Function File: VAL = ncreadatt(FILENAME,VARNAME,ATTNAME)
Return the attribute ATTNAME of the variable VARNAME in the file
FILENAME.
Gobal attributes can be accessed by using "/" or the group name as
VARNAME. The type of attribute is mapped to the Octave data types.
(see 'ncinfo').
See also: ncinfo,ncwriteatt.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 74
Return the attribute ATTNAME of the variable VARNAME in the file
FILENAME.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
ncwrite
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 965
-- Function File: ncwrite (FILENAME, VARNAME, X)
-- Function File: ncwrite (FILENAME, VARNAME, X, START, STRIDE)
Write array X to the the variable VARNAME in the NetCDF file
FILENAME.
The variable with the name VARNAME and the appropriate dimension
must already exist in the NetCDF file.
If START and STRIDE are present, a subset of the variable is
written. The parameter START contains the starting indices
(1-based) and STRIDE the increment between two successive elements.
These parameters are vectors whose length is equal to the number of
dimension of the variable.
If the variable has the _FillValue attribute, then the values equal
to NaN are replaced by corresponding fill value NetCDF attributes
scale_factor (default 1) and add_oddset (default 0) are use the
transform the variable during the writting:
x_in_file = (x - add_offset)/scale_factor
See also: ncread,nccreate.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 70
Write array X to the the variable VARNAME in the NetCDF file FILENAME.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
ncwriteatt
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 351
-- Function File: ncwriteatt(FILENAME,VARNAME,ATTNAME,VAL)
Defines the attribute ATTNAME of the variable VARNAME in the file
FILENAME with the value VAL.
Gobal attributes can be defined by using "/" or the group name as
VARNAME. The type of value is mapped to the NetCDF data types.
(see 'ncinfo').
See also: ncinfo.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
Defines the attribute ATTNAME of the variable VARNAME in the file
FILENAME with
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
ncwriteschema
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 816
-- Function File: ncwriteschema (FILENAME, SHEMA)
Create a NetCDF called FILENAME with the dimensions, attributes,
variables and groups given by the structure SCHEMA.
The variable SCHEMA has the same structure as the results of
'ncinfo'. 'ncinfo' and 'ncwriteschema' can be used together to
create a NetCDF using another file as a template:
schema = ncinfo("template.nc");
# the new file should be named "new_file.nc"
ncwriteschema("new_file.nc",schema);
Unused field in SCHEMA such as CHUNKSIZE, SHUFFLE, DEFLATELEVEL,
FILLVALUE, CHECKSUM can be left-out if the corresponding feature is
not used.
Dimensions are considered as limited if the field UNLIMITED is
missing, unless the dimension length is Inf.
See also: ncinfo.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
Create a NetCDF called FILENAME with the dimensions, attributes,
variables and g
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
test_netcdf
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 40
test_netcdf
Test the netcdf interface
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 40
test_netcdf
Test the netcdf interface
|