Page 1 of 1

unexpected exception

Posted: Mon Mar 15, 2021 5:55 pm America/New_York
by kareem11
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)

Re: unexpected exception

Posted: Tue Mar 16, 2021 10:27 am America/New_York
by OB SeaDAS - xuanyang02
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

Re: unexpected exception

Posted: Tue Mar 16, 2021 10:42 am America/New_York
by kareem11
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.

Re: unexpected exception

Posted: Tue Mar 16, 2021 4:13 pm America/New_York
by OB SeaDAS - xuanyang02
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