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

Hello,

Thanks Don, I didn't notice the changes in the variable names. The RC stuff
remains as an INFO: No .rc file found, so I will not pay much attention to
it.

Cheers,

Pablo

Pablo-
>
> I'm not sure about the RC stuff, but it looks like you are getting a
> NullPointerException at line 39 which means that uwindgrid is null.  I
> suspect that is due to the variable name changes in 4.3.  If
> findGridDatatype can't find the grid, it will return null.
>
> Don
>
>
> On 2/10/12 11:47 AM, Pablo Rozas Larraondo wrote:
>
>> Hello,
>>
>> 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:
>>
>> 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
>> AEMet
>>
>>
>>
>>
>> This body part will be downloaded on demand.
>>
>
> --
> Don Murray
> NOAA/ESRL/PSD and CIRES
> 303-497-3596
> http://www.esrl.noaa.gov/psd/**people/don.murray/<http://www.esrl.noaa.gov/psd/people/don.murray/>
>
> ______________________________**_________________
> netcdf-java mailing list
> netcdf-java@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/**mailing_lists/<http://www.unidata.ucar.edu/mailing_lists/>
  • 2012 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: