duplicate
the NetCDF dataset to a new file.
Declaration
ncfile = duplicate(path,options)
Parameters
pathany — destination file pathoptions.shouldOverwriteExistinglogical scalar (1x1) — overwrite destination if it existsoptions.indexRangedictionary (string -> cell) — per-variable slicing ranges forwarded to addDuplicateGroup
Returns
ncfileNetCDFFile instance — duplicated dataset handle
Discussion
Creates a new NetCDFFile at the requested path and copies the current group hierarchy, dimensions, variables, and attributes using addDuplicateGroup. Optionally restricts copied data via indexRange.