[netcdf-hdf] NC_STRINGS Query

NOTE: The netcdf-hdf mailing list is no longer active. The list archives are made available for historical reasons.

Hi all,
Im trying to hyperslab str_tst of type NC_STRING in the netcdf4 file below:

With stride=1,
I allocate some space using:
char **sngp;

Then call:

The function then fills sng[0] ...sng[var->sz-1] with strings

With stride >1 I call

What I get returned  is

sng[0]= last element of the hyperslab and

sng[1]...sng[var->sz-1]  ==NULL

Not sure what is happening here ????????

netcdf foo {
        lat = 2 ;
        lon = 4 ;
        string str_tst(lat, lon) ;


 str_tst =
  "one", "two", "three", "four",
  "five", "six", "seven", "eight" ;

  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-hdf archives: