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.

Re: [netcdf-java] Variable "values" within NcML Structure

Thanks Doug, this is probably a bug, ill try to reproduce it.


Doug Lindholm wrote:
> Hi,
> 
> I'm trying to define the "values" in a "variable" that is within a 
> "structure" type "variable". When I try to read them, I get:
> 
> java.lang.NullPointerException
>       at ucar.nc2.dataset.NetcdfDataset.readMemberData(NetcdfDataset.java:961)
>       at ucar.nc2.Variable._readMemberData(Variable.java:931)
>       at ucar.nc2.dataset.VariableDS._readMemberData(VariableDS.java:302)
>       at ucar.nc2.Variable.readMemberOfStructureFlatten(Variable.java:659)
>       at ucar.nc2.Variable.read(Variable.java:635)
> 
> It looks like it is trying to delegate the reading to "orgFile" which is 
> apparently null. My NcML has no referenced dataset. I am using 
> "explicit". The reading of values works fine in a top level variable.
> 
> I'm using toolsUI-2.2.20.jar.
> 
> The key bits of my NcML look like:
> 
>      <variable name="time" type="double">
>          <values start="0.0" increment="3600000.0"/>
>      </variable>
> 
>      <variable name = "spectrum" type="structure">
>          <variable name="frequency" type="double">
>              <values start="0.0" increment="10.0"/>
>          </variable>
>          <variable name="value" type="double">
>          </variable>
>      </variable>
> 
> 
> Thanks,
> Doug
> _______________________________________________
> netcdf-java mailing list
> netcdf-java@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit: 
> http://www.unidata.ucar.edu/mailing_lists/ 


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