Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Help writing arrays as you go

I keep getting a "Bad section rank" error.
What I am trying to do:
I have an array of dimension (t,x,y,z) where t is declared unlimited
My code:

loop over time
 instantiate an ArrayDouble of dimension (x,y,z)
 loop over x,y,x
  fill array
 end x,y,z loop
 set origin                   <---- here is the problem
 write array
end time loop

What is the origin supposed to be, and is even this possible at all?
Thanx
gaby

-- 
***************************************************************
**     Gabriella Turek               g.turek@xxxxxxxxxx      **
** National Institute of Water & Atmospheric Research (NIWA) **
** PO Box 8602 Christchurch New Zealand +64-3-348-8987x3724  **
***************************************************************

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


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