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

[netCDF #GKA-285302]: netCDF General - nc_get_var_type or nc_get_varm_type



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