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.

Re: [netcdf-java] Arrays with a zero in the shape array

On 30.11.2009, at 21:53, Doug Lindholm wrote:

This is related to my interest in a zero-length Range. I may have an Array with values 1-10 and want to process a request for values > 10. I have code that gets indices from a binary search and creates a Range that is used to "section" the Array. Currently, I'm using nulls to handle zero-length results, but it would be much nicer to have empty Ranges and Arrays that would do the right thing.
My applications are similar. I don't use empty arrays explicitly, but  
they are useful for handling limiting cases such as this without  
special code.
Konrad.



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