NCO
NCO (operator, arguments), execute any NCO operator to edit a netCDF file.
Arguments: |
op |
the operator (string) |
args |
arguments (a single string) |
|
Result Axes: |
X |
Abstract |
Y |
NORMAL |
|
Z |
NORMAL |
|
T |
NORMAL |
Execute an nco operator. The result is always 1. See http://nco.sourceforge.net/ for documentation on these operators. The function requires that NCO be installed on your system.
By default the function includes the -O and -h switches, for Override and history respectively. Beginning with Ferret v6.85, if you include -A in the second argument to this function, then the command will be sent to NCO with -A and not -O.
Note: You do not need to open the file in Ferret before running the nco function, and if you have opened the file in Ferret before issuing these commands, you will NOT see any changes you make to a file, until you close and reopen it. It is recommended that you close the file in Ferret before editing it with nco.
For example:
yes? ! Execute the ncrcat operator to concatenate some files yes? let status = nco("ncrcat", "s1.nc s2.nc s3.nc s123.nc") yes? load status yes? ! Append file2 to file1 (This works only in Ferret v6.85 and higher) yes? let status = nco("ncks", "-A file2.nc file1.nc") yes? load status