NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
It is possible to create such elements using the factory method, and they seem to be behave just fine. On the other hand, it is not possible to obtain such an empty array as a subsection of another array, because the Range constructor insists that 0 <= first <= last. I end up having lots of special-case checks for empty subsections because in many places in my code, empty arrays can be produced as a result for limiting cases of the input parameters.
Is there any reason why Range does not accept last < first, resulting in an empty array of the right shape?
Konrad.
netcdf-java
archives: