This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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