Skip to main content
  • Home
  • Documentation
  • FAQ
  • Downloads
  • Support
  • Current Release Notes
  • Ferret Users Guide
    • Users Guide Index
    • Commands Reference
    • 1. Introduction
    • 2. Data Set Basics
    • 3. Variables & Expressions
    • 4. Grids & Regions
    • 5. Animations & Gif Images
    • 6. Customizing Plots
    • 7. Handling String Data Symbols
    • 8. Working with Special Data Sets
    • 9. Computing Environment
    • 10. Converting to NetCDF
    • 11. Writing External Functions
    • Glossary
    • Appendix A: Functions
    • Appendix B: PPLUS Guide
    • Appendix C: Ferret-Specific PPLUS Enhancements
  • Previous Release Notes
  • Tutorials and Demos
    • Ferret Tour
    • DSG files: Discrete Sampling Geometries Demo
    • Ferret sorting demo
    • Fast Fourier Transforms demo
    • Empirical Orthogonal Functions demo
    • Ferret objective analysis demo
    • Ferret Palette Demo
    • Map projections
    • Ferret polygon vector demo
    • Ferret Graticules demo
    • Ferret Polytube Demo
    • Ferret Polymark Demo
    • Ferret Constant-Array demo
    • Ferret land_detail demo
    • COADS Tour
    • Levitus Tour
    • Use OPeNDAP
    • Ferret binary read demo
  • PyFerret
    • PyFerret Downloads and Install ../../faq/ferret-faqs.html
    • What is PyFerret?
    • Why use PyFerret?
    • PyFerret for the Ferret user
    • PyFerret command syntax: quick-start notes
    • PyFerret for the Python user
    • Graphics in PyFerret ?
    • New Ferret functionality
    • PyFerret Python functions and constants
    • PyFerret Python objects and methods
    • Ferret external functions in Python
    • Ferret Fortran external functions
    • PyFerret metadata-and-data dictionaries
  • OPeNDAP
    • OPeNDAP usage in Ferret
    • Use OPeNDAP Demo
    • Test OPeNDAP

NCO

Call an NCO utility

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 https://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