Next: , Previous: Subsetting Variables, Up: Common features


3.12 Subsetting Coordinate Variables

Availability: ncap2, ncbo, ncea, ncecat, ncflint, ncks, ncpdq, ncra, ncrcat, ncwa
Short options: `-C', `-c'
Long options: `--no-coords', `--no-crd', `--crd', `--coords'
By default, coordinates variables associated with any variable appearing in the output-file will also appear in the output-file, even if they are not explicitly specified, e.g., with the `-v' switch. Thus variables with a latitude coordinate lat always carry the values of lat with them into the output-file. This feature can be disabled with `-C', which causes NCO to not automatically add coordinates to the variables appearing in the output-file. However, using `-C' does not preclude the user from including some coordinates in the output files simply by explicitly selecting the coordinates with the -v option. The `-c' option, on the other hand, is a shorthand way of automatically specifying that all coordinate variables in the input-files should appear in the output-file. Thus `-c' allows the user to select all the coordinate variables without having to know their names. Both `-c' and `-C' honor the CF coordinates convention described in CF Conventions.