NCL Home > Documentation > Functions > Metadata routines

copy_VarCoords_2

Copies all named dimensions and coordinate variables from one variable to another except for the rightmost two dimensions.

Prototype

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"  ; This library is automatically loaded
                                                             ; from NCL V6.2.0 onward.
                                                             ; No need for user to explicitly load.

	procedure copy_VarCoords_2 (
		var_from  ,    
		var_to         
	)

Arguments

var_from

An array of any dimensionality. Must have named dimensions and coordinate variables

var_to

An array of any dimensionality.

Description

This procedure copies all named dimensions and coordinate variables from one variable to another except for the rightmost two dimensions.

See Also

copy_VarMeta, copy_VarAtts, copy_VarCoords, copy_VarCoords_1, copy_VarCoords_2

There are many other metadata tools

Examples

Example 1

  fo = natgrid (xi,yi,fi, xo,yo)            ; perform interpolation 
                                             
  copy_VarAtts (fi, fo)         ; copy variable attributes
  copy_VarCoords_2 (fi, fo)     ; copy left coordinate arrays if present