[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Support #LIA-275471]: Writing a local netCDF file of a gridded data source from the Field Selector can result in a NPE. [1867]
- Subject: [Support #LIA-275471]: Writing a local netCDF file of a gridded data source from the Field Selector can result in a NPE. [1867]
- Date: Mon, 10 Nov 2014 09:36:26 -0700
> Hello -
>
> I stumbled across a bug yesterday where in both McV and IDV the option of
> right-clicking on a gridded data source in the Field Selector and choosing
> 'Write Local Grid' results in a NPE. We set this as a Critical priority
> item. See the Request of this inquiry for some step-by-step instructions on
> how to reproduce the error.
>
> - Bob Carp
>
Bob,
This bug is fixed in the latest nightly release.
Yuan
> ----==== Inquiry ====----
> 1867
>
> ----==== Summary ====----
> Writing a local netCDF file of a gridded data source from the Field Selector
> can result in a NPE.
>
> ----==== Request ====----
> 2014-11-04 - Bob Carp
> This is a problem in both McV 1.5beta2 and IDV 5.0u2 nightlies. To
> replicate, do the following:
>
> 1 - Add in the latest GFS CONUS 80km model run
> 2 - In the Field Selector, R-Click on the GFS CONUS Data Source and choose
> Write Local Grid
> 3 - Select a destination and name for the netCDF file in the Save window
> 4 - In the unnamed window, select any field (or all). For example, 'Pressure
> @ Tropopause'. Click OK
>
> This results in an error:
>
> Error writing local netcdf file.
> Data:dods://thredds.ucar.edu/thredds/dodsC/grib/NCEP/GFS/CONUS_80km/GFS_CONUS_80km_20141104_0600.grib1/GC
> Variables:[Pressure_tropopause]
> java.lang.NullPointerException
> java.lang.NullPointerException
> at
> ucar.nc2.dt.grid.NetcdfCFWriter.writeGlobalAttributes(NetcdfCFWriter.java:751)
> at ucar.nc2.dt.grid.NetcdfCFWriter.makeOrTestSize(NetcdfCFWriter.java:302)
> at ucar.nc2.dt.grid.NetcdfCFWriter.makeFile(NetcdfCFWriter.java:190)
> at ucar.nc2.dt.grid.NetcdfCFWriter.makeFile(NetcdfCFWriter.java:172)
> at
> ucar.unidata.data.grid.GeoGridDataSource.writeNc(GeoGridDataSource.java:922)
> at
> ucar.unidata.data.grid.GeoGridDataSource.saveDataToLocalDisk(GeoGridDataSource.java:882)
> at
> ucar.unidata.data.DataSourceImpl.saveDataToLocalDisk(DataSourceImpl.java:2773)
> at
> ucar.unidata.data.DataSourceImpl.saveDataToLocalDisk(DataSourceImpl.java:2740)
> at
> ucar.unidata.data.grid.GeoGridDataSource$1$1.run(GeoGridDataSource.java:685)
> at ucar.unidata.util.Misc$3.run(Misc.java:1243)
>
> __________________________________________________
> * This was not a problem in McV 1.5beta1.
> * You can make this work by first displaying the 'Pressure @ Tropopause'
> field and then follow steps 2-4 above.
> * The Export Grid/Image To NetCDF formula doesn't show this error, but the
> data is displayed
> * Once you display the data, saving the display as NetCDF through File >
> Save in the Layer Controls doesn't show this error
>
>
> ################################################################################
>
> http://mcidas.ssec.wisc.edu/inquiry-v/index.php?inquiry=1867
>
>
Ticket Details
===================
Ticket ID: LIA-275471
Department: Support IDV
Priority: Normal
Status: Closed