[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFJava #UMY-837124]: reading data into Array from Variable



Greetings John,

Would you mind sending the code you wrote, at least the part where you begin to 
open the dataset through the point of error?

Thanks!

Sean

> Hello,
> 
> I have the latest version of Java and the NetCDF Java library version 4.2.
> I'm simply trying to read in a variable from a netcdf file. I can make a
> Variable just fine and extract info (e.g. var name, data type), but then
> when I try to make an Array out of it with read(), (e.g. arr = var.read()
> ), I get the runtime error, "BAD: missing spi:" then the variable name. I
> can get attributes just fine, and the shape and type of the data are what I
> expect. I view the data in ncview, and it looks fine. A co-worker loaded it
> up in McIDAS - V and the log message said: "ucar.nc2.NetcdfFile - Using
> IOSP ucar.nc2.iosp.netcdf3.N3raf" if that's pertinent at all. I think I'm
> importing all of the proper libraries since I'm not getting a compiler
> error, but I'm fairly new to Java, so there could be something I'm missing.
> Any help is much appreciated! Let me know if you'd like more info.
> 
> Thanks,
> John
> 
> 
> --
> ---------------------------------------------------------------------------------------
> John Cintineo
> Research Meteorologist
> SSEC/CIMSS
> University of Wisconsin -- Madison
> 1225 W. Dayton St.
> Madison, WI 53706
> 
> (608) 890-0619
> john.cintineo@ <address@hidden>ssec.wisc.edu
> 
> "My opinions are my own and not representative of
> CIMSS, SSEC, NOAA or any affiliates"
> 
> 


Ticket Details
===================
Ticket ID: UMY-837124
Department: Support netCDF Java
Priority: High
Status: Open