[netcdf-java] Problems getting Coordinate System in v4.3


I've completed the recommended emergency shutdown of my project, as I was
working with grib files and 4.2 API version ;-)

Once updated my build path to the new 4.3 version, I'm having some problems
compiling the same code:

37   GridDataset gds = GridDataset.open("~/myfile.grb");
38  GridDatatype uwindgrid = gds.findGridDatatype("U_component_of_wind");

39  GridCoordSystem gcs = uwindgrid.getCoordinateSystem();

Error message:

  Feb 10, 2012 7:11:29 PM ucar.nc2.util.rc.RC loadDefaults

  INFO: No .rc file found

  Exception in thread "main" java.lang.NullPointerException

at Test.main(Test.java:39)

I've checked the new javadoc and all the used methods seem to be the same,
but I can't find any reference to ucar.nc2.util.rc.RC class to trace back
the NullPointerException... Any suggestions?

Thank you everybody for your help,

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