Maybe it would be easier if you conceptualize the task instead as one
of copying only a subset (one) variable from the source file to the
destination file? In that event, R and NCO can accomplish the task
easily, and I assume python as well. If you have a particular API in
mind and don't see how to copy just one variable, feel free to ask
about that.
Regards,
--Dave
On Sat, Feb 4, 2012 at 4:51 PM, Tom Roche <Tom_Roche@xxxxxxxxx> wrote:
>
> I have a usecase which seems most easily satisfied by taking a netCDF
> (classic) file and ripping out all but one data variable, before
> adding a few layers to that datavar, and writing to a new file. (All
> the data variables share the same coordinate variables and their
> values, which are just integer indices.) However I'm not seeing tool
> support for *removing* data (or other) variables. This may be because
> I'm not very experienced--am I missing something? Note my platform is
> linux, and by "tool support" I mean either something I can either run
> commandline (e.g., NCO) or from a shell-like environment (e.g., the
> python or R REPLs).
>
> TIA, Tom Roche <Tom_Roche@xxxxxxxxx>
>
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/
--
David W. Pierce
Division of Climate, Atmospheric Science, and Physical Oceanography
Scripps Institution of Oceanography, La Jolla, California, USA
(858) 534-8276 (voice) / (858) 534-8561 (fax) dpierce@xxxxxxxx