how to read data in reverse order


Hi all:

I'm trying to read the data from a variable in reverse order. Say I have a 1-D variable of length ten, so start=0, count=10, stride=1 in nc_get_vars gives me all the data. I though perhaps start=9,count=10 and stride=-1 would give me the data in reverse order, but I get a 'Illegal stride' error. Am I missing something simple, or is this not a supported operation?

-Jeff

--
Jeffrey S. Whitaker         Phone  : (303)497-6313
Meteorologist               FAX    : (303)497-6449
NOAA/OAR/PSD  R/PSD1        Email  : Jeffrey.S.Whitaker@xxxxxxxx
325 Broadway                Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web    : http://tinyurl.com/5telg

==============================================================================
To unsubscribe netcdfgroup, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================


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