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

[IDV #ABK-405270]: error to open a netcdf image from NOAA CLASS



Hi Jorge,

I had no problems loading these data into the IDV with the IDV Dashboard, Data
Choosers tab and simply selecting the goes13 netCDF file.

However, I noticed a secondary problem after the data were loaded. In
particular, the coordinate axes (lat, lon) are filled with 2.14328934E9
values. According to the netCDF documentation, coordinate systems cannot have
fill or missing values

http://www.unidata.ucar.edu/software/netcdf/docs/BestPractices.html


So rendering these data in the IDV is problematic. I would suggest you contact
the data provider about making these data CF compliant which the data claim to
be.

However, you can still load these data into the IDV with some NCML trickery. See
the attached NCML and resulting image. You should be able to load this NCML file
into the IDV as you would any other netCDF file.

<?xml version="1.0" encoding="UTF-8"?>
<ncml:netcdf 
xmlns:ncml="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"; 
location="file:/home/conrado/CLASS_NETCDF/goes13.2017.001.114518.BAND_04.nc">
  <ncml:remove name="Conventions" type="attribute" />
  <ncml:variable name="lat" shape="yc xc" type="float">
    <ncml:attribute name="_FillValue" type="float" value="2.14328934e+09" />
  </ncml:variable>
  <ncml:variable name="lon" shape="yc xc" type="float">
    <ncml:attribute name="_FillValue" type="float" value="2.14328934e+09" />
  </ncml:variable>
</ncml:netcdf>

Note I removed the CFconvention attribute and added a _FillValue which for the
latitude and longitude, again, is not CF compliant, but makes the IDV happy.

Best,

Unidata IDV Support


> Jorge,
> 
> Can you tell us where to find a sample of these data?
> 
> Alternatively, can you upload the goes13.2017.001.114518.BAND_04.nc file to
> 
> http://motherlode.ucar.edu/repository/alias/idvupload
> 
> Best,
> 
> Unidata IDV Support
> 
> > Full Name: Jorge Conrado Conforte
> > Email Address: address@hidden
> > Organization: INPE
> > Package Version: 5.3 build date:2016-05-23 19:17 UTC
> > Operating System: Linux
> > Hardware: Java: home: /home/conrado/IDV_5.3/jre version: 1.8.0_45 
> > j3d:1.6.0-pre9-daily-experimental daily
> > Description of problem:
> >
> > Problem opening 
> > file:/home/conrado/CLASS_NETCDF/goes13.2017.001.114518.BAND_04.nc 
> > ucar.unidata.data.BadDataException: Could not open trajectory 
> > file:/home/conrado/CLASS_NETCDF/goes13.2017.001.114518.BAND_04.nc
> >
> > Could not open trajectory 
> > file:/home/conrado/CLASS_NETCDF/goes13.2017.001.114518.BAND_04.nc
> >
> > ******************
> > Stack trace:
> > ucar.unidata.data.BadDataException: Could not open trajectory 
> > file:/home/conrado/CLASS_NETCDF/goes13.2017.001.114518.BAND_04.nc
> > at 
> > ucar.unidata.data.sounding.CdmTrackAdapter.<init>(CdmTrackAdapter.java:132)
> > at 
> > ucar.unidata.data.sounding.TrackDataSource.doMakeAdapter(TrackDataSource.java:551)
> > at 
> > ucar.unidata.data.sounding.TrackDataSource.initTrack(TrackDataSource.java:507)
> > at 
> > ucar.unidata.data.sounding.TrackDataSource.getAdapters(TrackDataSource.java:565)
> > at 
> > ucar.unidata.data.sounding.TrackDataSource.initAfter(TrackDataSource.java:286)
> > at 
> > ucar.unidata.data.DataSourceImpl.initAfterCreation(DataSourceImpl.java:791)
> > at 
> > ucar.unidata.data.FilesDataSource.initAfterCreation(FilesDataSource.java:284)
> > at 
> > ucar.unidata.data.sounding.TrackDataSource.initAfterCreation(TrackDataSource.java:301)
> > at ucar.unidata.data.DataManager.createDataSource(DataManager.java:1577)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataViewer.java:1979)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1896)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1830)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java:1672)
> > at ucar.unidata.idv.DefaultIdv.handleAction(DefaultIdv.java:99)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java:1604)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.doOpenInThread(IntegratedDataViewer.java:2863)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.doOpen(IntegratedDataViewer.java:2803)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.doOpen(IntegratedDataViewer.java:2873)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at 
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> > at 
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:497)
> > at 
> > org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
> > at 
> > org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
> > at org.python.core.PyObject.__call__(PyObject.java:461)
> > at org.python.core.PyObject.__call__(PyObject.java:465)
> > at org.python.core.PyMethod.__call__(PyMethod.java:126)
> > at org.python.pycode._pyx67.f$0(<string>:1)
> > at org.python.pycode._pyx67.call_function(<string>)
> > at org.python.core.PyTableCode.call(PyTableCode.java:167)
> > at org.python.core.PyCode.call(PyCode.java:18)
> > at org.python.core.Py.runCode(Py.java:1386)
> > at org.python.core.Py.exec(Py.java:1430)
> > at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:267)
> > at ucar.unidata.idv.JythonManager.evaluateTrusted(JythonManager.java:1517)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.handleFileOrUrlAction(IntegratedDataViewer.java:1540)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java:1640)
> > at ucar.unidata.idv.DefaultIdv.handleAction(DefaultIdv.java:99)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java:1604)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.actionPerformed(IntegratedDataViewer.java:1687)
> > at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
> > at 
> > javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
> > at 
> > javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
> > at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
> > at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
> > at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
> > at 
> > javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
> > at java.awt.Component.processMouseEvent(Component.java:6525)
> > at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
> > at java.awt.Component.processEvent(Component.java:6290)
> > at java.awt.Container.processEvent(Container.java:2234)
> > at java.awt.Component.dispatchEventImpl(Component.java:4881)
> > at java.awt.Container.dispatchEventImpl(Container.java:2292)
> > at java.awt.Component.dispatchEvent(Component.java:4703)
> > at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
> > at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
> > at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
> > at java.awt.Container.dispatchEventImpl(Container.java:2278)
> > at java.awt.Window.dispatchEventImpl(Window.java:2750)
> > at java.awt.Component.dispatchEvent(Component.java:4703)
> > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
> > at java.awt.EventQueue.access$500(EventQueue.java:97)
> > at java.awt.EventQueue$3.run(EventQueue.java:709)
> > at java.awt.EventQueue$3.run(EventQueue.java:703)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at 
> > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
> > at 
> > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
> > at java.awt.EventQueue$4.run(EventQueue.java:731)
> > at java.awt.EventQueue$4.run(EventQueue.java:729)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at 
> > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
> > at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
> > at 
> > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
> > at 
> > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
> > at 
> > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
> > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> > at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >
> >
> >
> 


Ticket Details
===================
Ticket ID: ABK-405270
Department: Support IDV
Priority: Normal
Status: Closed
===================
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.

Attachment: goes13.2017.001.114518.BAND_04.ncml
Description: Binary data

Attachment: goes13.png
Description: PNG image