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.
Jingfeng Wang, > To: address@hidden > From: Jingfeng Wang <address@hidden> > Subject: a question about netCDF data > Organization: MIT > Keywords: 200404281907.i3SJ7atK027679 The above message contained the following: > I'm a new user of F90 netcdf. I wonder if the "count" vector of the > NF90_GET_VAR function can be negative. This is equivalent to reading > variables from south to north, rather than north to south as normally > done. Thank you very much for your help. Sincerely, > > > Jingfeng Wang > > MIT The value of the "count" vector eventually reach the C library implementation and are assumed to be unsigned integers; consequently, negative values are not allowed. You can accomplish what you want, however, by appropriately setting the starting-indices and "stride" vectors in the obvious way. Regards, Steve Emmerson > NOTE: All email exchanges with Unidata User Support are recorded in the > Unidata inquiry tracking system and then made publically available > through the web. If you do not want to have your interactions made > available in this way, you must let us know in each email you send to us.