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.
Edin, I've attached a version of your program that does what you want. It only required changing the imap assignment statement you used from int imap[2] = {sizeof(float),1}; to int imap[2] = {5*Gate_length, 5}; imap[0] is the distance between elements (* NetCDF_out)[x][y].Refl and (* NetCDF_out)[x+1][y].Refl in units of values of the type you are reading (floats). imap[1] is the distance between elements (* NetCDF_out)[x][y].Refl and (* NetCDF_out)[x][y+1].Refl in units of values of the type you are reading (floats). I also changed a couple of declarations to get rid of warnings (int to size_t). The resulting program is attached. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: GKA-285302 Department: Support netCDF Priority: Normal Status: Closed
Attachment:
NetCDF_In_2
Description: Binary data