Problems encountered in processing landsat8/9 images with C2RCC

Hi all,

I encountered the following problems when using C2RCC to process landsat8/9 images.:

The input file is: LC09_L1TP_118038_20220118_20220118_02_T1_MTL.txt



0120f930d51aea4c2cd509b7302e845

Does anyone know what are the problems?
Thank you!

You should consult the FAQ document as it will help you formulate a more useful post.

You need to provide enough detail to allow others to reproduce the error: OS Version, software versions of SNAP and whether updates have been applied. If you are not using SNAP 9 you should try updating.

The error popup is just a generic “something went wrong in Java”. You should attach the messages.log file, which may provide useful details for the error. You appear to be using Windows. If E: is an external drive you should mention which filesystem format is used (because some Windows tools require NTFS filesystems).

Hi gnwiii,

Thank you very much for your answer!

I use the windows10 operating system, and the E disk is a local storage disk. Snap software has been updated to the latest version of snap 9, and all applications have been updated.

Here are the messages with errors Log file, please have a look:

java.lang.NullPointerException

at org.esa.s3tbx.c2rcc.landsat.LandsatMetadata.collectionNumber(LandsatMetadata.java:110)

at org.esa.s3tbx.c2rcc.landsat.LandsatMetadata.(LandsatMetadata.java:35)

at org.esa.s3tbx.c2rcc.landsat.C2rccLandsat8Operator.prepareInputs(C2rccLandsat8Operator.java:1041)

at org.esa.snap.core.gpf.pointop.PointOperator.initialize(PointOperator.java:89)

at org.esa.snap.core.gpf.internal.OperatorContext.initializeOperator(OperatorContext.java:528)

at org.esa.snap.core.gpf.internal.OperatorContext.getTargetProduct(OperatorContext.java:298)

at org.esa.snap.core.gpf.Operator.getTargetProduct(Operator.java:385)

at org.esa.snap.core.gpf.GPF.createProductNS(GPF.java:333)

at org.esa.snap.core.gpf.GPF.createProduct(GPF.java:308)

at org.esa.snap.core.gpf.GPF.createProduct(GPF.java:287)

at org.esa.snap.core.gpf.ui.DefaultSingleTargetProductDialog.createTargetProduct(DefaultSingleTargetProductDialog.java:138)

[catch] at org.esa.snap.core.gpf.ui.SingleTargetProductDialog.onApply(SingleTargetProductDialog.java:131)

at org.esa.snap.ui.AbstractDialog.lambda$initUI$6(AbstractDialog.java:519)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)

at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)

at java.awt.Component.processMouseEvent(Component.java:6539)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)

at java.awt.Component.processEvent(Component.java:6304)

at java.awt.Container.processEvent(Container.java:2239)

at java.awt.Component.dispatchEventImpl(Component.java:4889)

at java.awt.Container.dispatchEventImpl(Container.java:2297)

at java.awt.Component.dispatchEvent(Component.java:4711)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)

at java.awt.Container.dispatchEventImpl(Container.java:2283)

at java.awt.Window.dispatchEventImpl(Window.java:2746)

at java.awt.Component.dispatchEvent(Component.java:4711)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)

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$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)

at java.awt.EventQueue$4.run(EventQueue.java:733)

at java.awt.EventQueue$4.run(EventQueue.java:731)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)

at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)

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)

Do you know the reason for the problem?

thank you!

Hello,

it seems the metadata format is different than expected.
Can you attach the *MTL.txt file?

I’ve tested with some other scene “LC09_L1TP_140047_20220128_20220128_02_T1” and the processor worked.

Anyway, the processor has not been updated for L9 data. So even if you get results be cautious with the results.

I’ve noted this in our issue tracker.
[SIIITBX-423] Using Landsat9 with C2RCC causes a NullPointerException - JIRA (atlassian.net)

2 Likes

Dear marpet,

is C2RCC plan to Landsat-9/OLI2?

Best

Binbin

No currently there is no plan to extend the support.