l2gen processing Land9 data with Segmentation fault error

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
yanggisxxxxxkkkkk
Posts: 4
Joined: Mon Oct 02, 2023 6:03 am America/New_York
Answers: 0

l2gen processing Land9 data with Segmentation fault error

by yanggisxxxxxkkkkk » Mon Oct 02, 2023 6:08 am America/New_York

Dear all.
I've installed ocssw in my ubuntu server with OS version of 22.04.
However, when I tested the l2gen with Land9 image, It failed with the error "segment fault". Could please check what the problem is?
here is the full log info:

l2gen ifile=rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_MTL.txt
Loading default parameters from /home/arsiri_gzhu/ocssw/share/common/msl12_defaults.par
Input file rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_MTL.txt is a Landsat 8/9 OLI L1B GEOTIFF file.

Loading characteristics for OLIL9
Opening sensor information file /home/arsiri_gzhu/ocssw/share/oli/msl12_sensor_info.dat
Bnd Lam Fo Tau_r k_oz k_no2 t_co2 awhite aw bbw
0 443.000 189.652 2.352e-01 2.929e-03 5.024e-19 1.000e+00 1.000e+00 7.170e-03 2.169e-03
1 482.000 200.396 1.685e-01 1.957e-02 3.213e-19 1.000e+00 1.000e+00 1.581e-02 1.529e-03
2 561.000 182.079 9.020e-02 1.038e-01 8.351e-20 1.000e+00 1.000e+00 6.998e-02 8.054e-04
3 655.000 155.038 4.793e-02 6.200e-02 1.177e-20 1.000e+00 1.000e+00 3.751e-01 4.215e-04
4 865.000 95.063 1.551e-02 2.223e-03 3.306e-23 1.000e+00 1.000e+00 4.630e+00 1.332e-04
5 1609.000 24.755 1.284e-03 0.000e+00 0.000e+00 1.000e+00 1.000e+00 7.607e+02 1.052e-05
6 2201.000 8.546 3.697e-04 0.000e+00 0.000e+00 1.000e+00 1.000e+00 2.250e+03 2.958e-06


Loading default parameters for OLIL9 from /home/arsiri_gzhu/ocssw/share/oli/msl12_defaults.par
Loading default sub-sensor parameters for OLIL9 from /home/arsiri_gzhu/ocssw/share/oli/l9/msl12_defaults.par
Loading parameters for suite OC from /home/arsiri_gzhu/ocssw/share/oli/msl12_defaults_OC.par
Loading command line parameters

Loading user parameters for OLIL9

Internal data compression requested at compression level: 4
Reading Thuillier_F0.dat
OLI Level-1B rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_MTL.txt
OLI Level-1B Collection 2
OLI Level-1B Band[0]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B1.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[1]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B2.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[2]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B3.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[3]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B4.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[4]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B5.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[5]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B6.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[6]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B7.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[8]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B9.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Angle File:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_ANG.txt
OLI Level-1B Band[0]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B1.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[1]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B2.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[2]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B3.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[3]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B4.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[4]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B5.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[5]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B6.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[6]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B7.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Level-1B Band[8]:rsdata/LC09_L1TP_122044_20230306_20230307_02_T1/LC09_L1TP_122044_20230306_20230307_02_T1_B9.TIF
TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
OLI Start Time: 2023-03-06 065 02:52:19.368248
OLI file has 7 bands, 7531 samples, 7681 lines
Allocated 6408909 bytes in L1 record.
Allocated 2259300 bytes in L2 record.

Opening: output


The following products will be included in output.
0 aot_865
1 angstrom
2 Rrs_443
3 Rrs_482
4 Rrs_561
5 Rrs_655
6 chlor_a
7 Kd_490
8 l2_flags



Begin l2gen Version 9.6.0-V2023.1 Processing
Sensor is OLIL9
Sensor ID is 33
Sensor has 7 reflective bands
Sensor has 0 emissive bands
Number of along-track detectors per band is 1
Number of input pixels per scan is 7531
Processing pixels 1 to 7531 by 1
Processing scans 1 to 7681 by 1
Ocean processing enabled
Land processing enabled
Atmospheric correction enabled

Begin MSl12 processing at 2023275095555000

Allocated 6408909 bytes in L1 record.
Allocated 6408909 bytes in L1 record.
Allocated 6408909 bytes in L1 record.
Segmentation fault

Tags:

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 654
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 2 times

Re: l2gen processing Land9 data with Segmentation fault error

by OB SeaDAS - xuanyang02 » Wed Oct 04, 2023 5:36 pm America/New_York

I got the same error using V2023.2 on linux. Although V2023.2 works on Mac

Try V2022.3 -- it works for me on linux

yanggisxxxxxkkkkk
Posts: 4
Joined: Mon Oct 02, 2023 6:03 am America/New_York
Answers: 0

Re: l2gen processing Land9 data with Segmentation fault error

by yanggisxxxxxkkkkk » Thu Oct 05, 2023 3:36 am America/New_York

Hi xuanyang02, Cool! Problem resolved based on your tips.
Thanks very much.

Post Reply