nc_varcopyΒΆ

nc_varcopy copies the data of a variable from one NC file to another NC file. The variable must exist in both files and must have the same number of points.

err = nc_varcopy(ncid_in, varid, ncid_out)

Return Value

err

Parameters

ncid_in

Identifies a netCDF file.

varid

varid is the ID of a variable.

ncid_out

Identifies a netCDF file.

id-490777