[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #KJN-301947]: Writing a Subset of a 3-D Array to a NetCDF File



Ben,

> Is that a better explanation?

Yes, thanks, I understand the context now.  It may be overkill
to use the "mapped" access of nf_put_varm for this problem, but
it works.  In case the subset you want to write has the first
dimension varying (for example writing 1x4x5 subsets from a
3x4x5 array into a 4x5 netCDF variable on disk), then mapped access
is not needed, but in youe example taking a subset along the
middle dimension, I think it is.

I'm closing this ticket, but may someday come back to it for a
better example to document the varm access patterns ...

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: KJN-301947
Department: Support netCDF
Priority: Normal
Status: Closed