unexpected exception
unexpected exception
What does this mean?
java.lang.NullPointerException
at gov.nasa.gsfc.seadas.dataio.SeadasFileReader.attributeToMetadata(SeadasFileReader.java:1242)
at gov.nasa.gsfc.seadas.dataio.SeadasFileReader.addAttributeToElement(SeadasFileReader.java:1227)
at gov.nasa.gsfc.seadas.dataio.SeadasFileReader.addAttributesToElement(SeadasFileReader.java:1221)
at gov.nasa.gsfc.seadas.dataio.SeadasFileReader.addGlobalMetadata(SeadasFileReader.java:873)
at gov.nasa.gsfc.seadas.dataio.SMIFileReader.createProduct(SMIFileReader.java:100)
at gov.nasa.gsfc.seadas.dataio.SeadasProductReader.readProductNodesImpl(SeadasProductReader.java:185)
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:178)
at org.esa.snap.core.dataio.ProductIO.readProduct(ProductIO.java:179)
at org.esa.snap.rcp.actions.file.ReadProductOperation.run(ReadProductOperation.java:61)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
java.lang.NullPointerException
at gov.nasa.gsfc.seadas.dataio.SeadasFileReader.attributeToMetadata(SeadasFileReader.java:1242)
at gov.nasa.gsfc.seadas.dataio.SeadasFileReader.addAttributeToElement(SeadasFileReader.java:1227)
at gov.nasa.gsfc.seadas.dataio.SeadasFileReader.addAttributesToElement(SeadasFileReader.java:1221)
at gov.nasa.gsfc.seadas.dataio.SeadasFileReader.addGlobalMetadata(SeadasFileReader.java:873)
at gov.nasa.gsfc.seadas.dataio.SMIFileReader.createProduct(SMIFileReader.java:100)
at gov.nasa.gsfc.seadas.dataio.SeadasProductReader.readProductNodesImpl(SeadasProductReader.java:185)
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:178)
at org.esa.snap.core.dataio.ProductIO.readProduct(ProductIO.java:179)
at org.esa.snap.rcp.actions.file.ReadProductOperation.run(ReadProductOperation.java:61)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Filters:
-
- Subject Matter Expert
- Posts: 711
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: unexpected exception
It means that you are trying to open a file and there is something in the file that SeaDAS does not like. It might be helpful if you could tell us what file you tried to read?
Bing
Bing
Re: unexpected exception
I was trying to read data that I downloaded from oceancolor on chlorophyl concentration and sst. Both smi and bin files cannot be read. When I tried to open bin file "No appropriate product reader found.
File 'C: .... A20203362020366.L3b_MO_CHL.nc' can not be opened." this appear and when I tried the smi file the previous problem popped out.
File 'C: .... A20203362020366.L3b_MO_CHL.nc' can not be opened." this appear and when I tried the smi file the previous problem popped out.
-
- Subject Matter Expert
- Posts: 711
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: unexpected exception
The L3b file format is not a raster image format. The internal data model for SeaDAS is based on 2D raster images, so visualizing the L3b files is not directly possible.
The data need to be mapped prior to display. You can use OCSSW -> l3mapgen to map A20203362020366.L3b_MO_CHL.nc, and then open A20203362021001.L3m_CU.nc (the default file name for the l3mapgen output).
Bing
The data need to be mapped prior to display. You can use OCSSW -> l3mapgen to map A20203362020366.L3b_MO_CHL.nc, and then open A20203362021001.L3m_CU.nc (the default file name for the l3mapgen output).
Bing