[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?



> 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
> 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

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.