l2gen MODIS Aqua segmentation fault with N, S, E, W bounds

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
schckngs
Posts: 32
Joined: Wed Feb 03, 2021 1:43 pm America/New_York
Answers: 0

l2gen MODIS Aqua segmentation fault with N, S, E, W bounds

by schckngs » Thu Mar 26, 2026 3:10 pm America/New_York

Hi Seadas friends,

I recently updated seadas and am attempting to run l2gen on some MODIS Aqua files from 2024. L2gen produces a Segmentation fault when using the north=, south=, east=, west= options, similar to this post: viewtopic.php?t=2619

I tried following the lonlat2pixline suggestion, which helps the file to run successfully, but the processed data is far from the box location. Can you help me understand what I am doing wrong? (I have not used Seadas in a while) I'm using l2gen version: msl12 9.11.0-V2025.5

Process from L1A to L1B (keeping old naming format for consistency with other files), they run successfully:

Code: Select all

> modis_GEO A2024091175500.L1A_LAC -o A2024091175500.GEO

> modis_L1B A2024091175500.L1A_LAC -o A2024091175500.L1B_LAC -k A2024091175500.L1B_HKM -q A2024091175500.L1B_QKM
Par file input to l2gen, "L1_to_L2.par":

Code: Select all

ifile=A2024091175500.L1B_LAC
geofile=A2024091175500.GEO
ofile1=A2024091175500.L2_NIR
l2prod1=chlor_a,chl_gsm,sst,Kd_488_lee,l2_flags
atmocor=1
aer_opt=-2
brdf_opt=0
outband_opt=0
aer_wave_short=748
aer_wave_long=869
aer_swir_short=1240
aer_swir_long=2130
gas_opt=15
resolution=250
proc_sst=1
maskland=1
maskbath=0
maskcloud=1
maskglint=0
masksunzen=0
masksatzen=0
maskhilt=1
maskstlight=0
albedo=0.027
north=46.75
south=45.25
east=-59.5
west=-61.5
Result when running:

Code: Select all

> l2gen par="L1_to_L2.par"

Loading default parameters from /home/hilborna/ocssw/share/common/msl12_defaults.par
Input file A2024091175500.L1B_LAC is MODIS Aqua Level-1B HDF-EOS product.

Loading characteristics for MODISA
Opening sensor information file /home/hilborna/ocssw/share/modis/aqua/msl12_sensor_info.dat
  Bnd   Lam       Fo    Tau_r     k_oz    k_no2    t_co2   awhite       aw      bbw
    0  412.000  172.912 3.099e-01 1.987e-03 5.814e-19 1.000e+00 1.000e+00 2.030e-02 2.884e-03
    1  443.000  187.622 2.367e-01 3.189e-03 4.985e-19 1.000e+00 1.000e+00 1.110e-02 2.181e-03
    2  469.000  205.878 1.914e-01 8.745e-03 3.938e-19 1.000e+00 1.000e+00 1.034e-02 1.749e-03
    3  488.000  194.933 1.592e-01 2.032e-02 2.878e-19 1.000e+00 1.000e+00 1.676e-02 1.447e-03
    4  531.000  185.747 1.126e-01 6.838e-02 1.525e-19 1.000e+00 1.000e+00 4.494e-02 1.014e-03
    5  547.000  186.539 9.906e-02 8.622e-02 1.194e-19 1.000e+00 1.000e+00 5.491e-02 8.886e-04
    6  555.000  183.869 9.432e-02 9.553e-02 9.445e-20 1.000e+00 1.000e+00 5.839e-02 8.443e-04
    7  645.000  157.811 5.082e-02 7.382e-02 1.382e-20 1.000e+00 9.133e-01 3.458e-01 4.469e-04
    8  667.000  152.255 4.443e-02 4.890e-02 7.065e-21 1.000e+00 8.921e-01 4.923e-01 3.900e-04
    9  678.000  148.052 4.146e-02 3.787e-02 8.304e-21 1.000e+00 8.783e-01 5.116e-01 3.634e-04
   10  748.000  128.065 2.849e-02 1.235e-02 2.157e-21 1.000e+00 7.832e-01 2.800e+00 2.470e-04
   11  859.000   97.174 1.613e-02 2.347e-03 6.212e-23 1.000e+00 6.519e-01 4.396e+00 1.384e-04
   12  869.000   95.824 1.540e-02 1.936e-03 7.872e-23 1.000e+00 6.403e-01 4.727e+00 1.320e-04
   13 1240.000   45.467 3.617e-03 0.000e+00 0.000e+00 9.994e-01 0.000e+00 1.147e+02 3.021e-05
   14 1640.000   23.977 1.219e-03 0.000e+00 0.000e+00 9.890e-01 0.000e+00 6.689e+02 1.000e-05
   15 2130.000    9.885 4.286e-04 0.000e+00 0.000e+00 9.696e-01 0.000e+00 2.810e+03 3.465e-06

  Bnd   Lam
   16 3750.000
   17 3959.000
   18 4050.000
   19 6715.000
   20 7325.000
   21 8550.000
   22 11000.000
   23 12000.000

Loading default parameters for MODISA from /home/hilborna/ocssw/share/modis/msl12_defaults.par
Loading default sub-sensor parameters for MODISA from /home/hilborna/ocssw/share/modis/aqua/msl12_defaults.par
Loading parameters for suite OC from /home/hilborna/ocssw/share/modis/msl12_defaults_OC.par
Loading command line parameters

Loading user parameters for MODISA

Internal data compression requested at compression level: 4
Opening filter file /home/hilborna/ocssw/share/modis/msl12_filter.dat
Setting 3 x 3 straylight filter on HILT mask

Filter Kernel
1 1 1
1 1 1
1 1 1

Minimum fill set to 1 pixels


Setting 3 x 3 straylight filter on CLDICE mask

Filter Kernel
1 1 1
1 1 1
1 1 1

Minimum fill set to 1 pixels


Processing at 250 meter resolution.
    1000-meter file: A2024091175500.L1B_LAC
     500-meter file: ./A2024091175500.L1B_HKM
     250-meter file: ./A2024091175500.L1B_QKM

Allocated 10285048 bytes in L1 record.
Allocated 3726208 bytes in L2 record.

Opening: A2024091175500.L2_NIR

The following products will be included in A2024091175500.L2_NIR.
0 chlor_a
1 chl_gsm
2 sst
3 Kd_488_lee
4 l2_flags

Begin l2gen Version 9.11.0-V2025.5 Processing
Sensor is MODISA
Sensor ID is 7
Sensor has 16 reflective bands
Sensor has 8 emissive bands
Number of along-track detectors per band is 40
Number of input pixels per scan is 5416
Processing pixels 202 to 315 by 1
Processing scans 1288 to 1472 by 1
Ocean processing enabled
Land processing enabled
Atmospheric correction enabled

Begin MSl12 processing at 2026085154701000

Allocated 10285048 bytes in L1 record.
Allocated 10285048 bytes in L1 record.
Allocated 10285048 bytes in L1 record.
Allocated 10285048 bytes in L1 record.
Allocated 10285048 bytes in L1 record.
Segmentation fault (core dumped)
Running lonlat2pixline to get the line, rows, to replace north, south, east, west in the par file above:

Code: Select all

> lonlat2pixline A2024091175500.GEO -61.5 45.25 -59.5 46.75

# 202 315 1288 1472
sline=1288
eline=1472
spixl=202
epixl=315
This leads to:

Code: Select all

> l2gen par="L1_to_L2.par"

Loading default parameters from /home/hilborna/ocssw/share/common/msl12_defaults.par
Input file A2024091175500.L1B_LAC is MODIS Aqua Level-1B HDF-EOS product.

Loading characteristics for MODISA
Opening sensor information file /home/hilborna/ocssw/share/modis/aqua/msl12_sensor_info.dat
  Bnd   Lam       Fo    Tau_r     k_oz    k_no2    t_co2   awhite       aw      bbw
    0  412.000  172.912 3.099e-01 1.987e-03 5.814e-19 1.000e+00 1.000e+00 2.030e-02 2.884e-03
    1  443.000  187.622 2.367e-01 3.189e-03 4.985e-19 1.000e+00 1.000e+00 1.110e-02 2.181e-03
    2  469.000  205.878 1.914e-01 8.745e-03 3.938e-19 1.000e+00 1.000e+00 1.034e-02 1.749e-03
    3  488.000  194.933 1.592e-01 2.032e-02 2.878e-19 1.000e+00 1.000e+00 1.676e-02 1.447e-03
    4  531.000  185.747 1.126e-01 6.838e-02 1.525e-19 1.000e+00 1.000e+00 4.494e-02 1.014e-03
    5  547.000  186.539 9.906e-02 8.622e-02 1.194e-19 1.000e+00 1.000e+00 5.491e-02 8.886e-04
    6  555.000  183.869 9.432e-02 9.553e-02 9.445e-20 1.000e+00 1.000e+00 5.839e-02 8.443e-04
    7  645.000  157.811 5.082e-02 7.382e-02 1.382e-20 1.000e+00 9.133e-01 3.458e-01 4.469e-04
    8  667.000  152.255 4.443e-02 4.890e-02 7.065e-21 1.000e+00 8.921e-01 4.923e-01 3.900e-04
    9  678.000  148.052 4.146e-02 3.787e-02 8.304e-21 1.000e+00 8.783e-01 5.116e-01 3.634e-04
   10  748.000  128.065 2.849e-02 1.235e-02 2.157e-21 1.000e+00 7.832e-01 2.800e+00 2.470e-04
   11  859.000   97.174 1.613e-02 2.347e-03 6.212e-23 1.000e+00 6.519e-01 4.396e+00 1.384e-04
   12  869.000   95.824 1.540e-02 1.936e-03 7.872e-23 1.000e+00 6.403e-01 4.727e+00 1.320e-04
   13 1240.000   45.467 3.617e-03 0.000e+00 0.000e+00 9.994e-01 0.000e+00 1.147e+02 3.021e-05
   14 1640.000   23.977 1.219e-03 0.000e+00 0.000e+00 9.890e-01 0.000e+00 6.689e+02 1.000e-05
   15 2130.000    9.885 4.286e-04 0.000e+00 0.000e+00 9.696e-01 0.000e+00 2.810e+03 3.465e-06

  Bnd   Lam
   16 3750.000
   17 3959.000
   18 4050.000
   19 6715.000
   20 7325.000
   21 8550.000
   22 11000.000
   23 12000.000

Loading default parameters for MODISA from /home/hilborna/ocssw/share/modis/msl12_defaults.par
Loading default sub-sensor parameters for MODISA from /home/hilborna/ocssw/share/modis/aqua/msl12_defaults.par
Loading parameters for suite OC from /home/hilborna/ocssw/share/modis/msl12_defaults_OC.par
Loading command line parameters

Loading user parameters for MODISA

Internal data compression requested at compression level: 4
Opening filter file /home/hilborna/ocssw/share/modis/msl12_filter.dat
Setting 3 x 3 straylight filter on HILT mask

Filter Kernel
1 1 1
1 1 1
1 1 1
Minimum fill set to 1 pixels
Setting 3 x 3 straylight filter on CLDICE mask
Filter Kernel
1 1 1
1 1 1
1 1 1

Minimum fill set to 1 pixels

Processing at 250 meter resolution.
    1000-meter file: A2024091175500.L1B_LAC
     500-meter file: ./A2024091175500.L1B_HKM
     250-meter file: ./A2024091175500.L1B_QKM

Allocated 10285048 bytes in L1 record.
Allocated 3726208 bytes in L2 record.

Opening: A2024091175500.L2_NIR

The following products will be included in A2024091175500.L2_NIR.
0 chlor_a
1 chl_gsm
2 sst
3 Kd_488_lee
4 l2_flags

Begin l2gen Version 9.11.0-V2025.5 Processing
Sensor is MODISA
Sensor ID is 7
Sensor has 16 reflective bands
Sensor has 8 emissive bands
Number of along-track detectors per band is 40
Number of input pixels per scan is 5416
Processing pixels 202 to 315 by 1
Processing scans 1288 to 1472 by 1
Ocean processing enabled
Land processing enabled
Atmospheric correction enabled

Begin MSl12 processing at 2026085155133000

Allocated 10285048 bytes in L1 record.
Allocated 10285048 bytes in L1 record.
Allocated 10285048 bytes in L1 record.
Allocated 10285048 bytes in L1 record.
Allocated 10285048 bytes in L1 record.

Loading subframe correction tables:
    /home/hilborna/ocssw/share/modis/aqua/cal/subframecor_modisa_469.dat
    /home/hilborna/ocssw/share/modis/aqua/cal/subframecor_modisa_555.dat
    /home/hilborna/ocssw/share/modis/aqua/cal/subframecor_modisa_645.dat
    /home/hilborna/ocssw/share/modis/aqua/cal/subframecor_modisa_859.dat
    /home/hilborna/ocssw/share/modis/aqua/cal/subframecor_modisa_1240.dat
    /home/hilborna/ocssw/share/modis/aqua/cal/subframecor_modisa_1640.dat
    /home/hilborna/ocssw/share/modis/aqua/cal/subframecor_modisa_2130.dat
Subframe destriping corrections enabled.

Loading radiance to brightness temperature from /home/hilborna/ocssw/share/modis/aqua/cal/bt_modisa.hdf
Loading land mask information from /home/hilborna/ocssw/share/common/gebco_ocssw_v2020.nc
Loading DEM information from /home/hilborna/ocssw/share/common/gebco_ocssw_v2020.nc
Loading ice mask file from /home/hilborna/ocssw/share/common/ice_climatology.hdf
Loaded monthly NSIDC ice climatology HDF file.
Loading XCAL rvs and polarization sensitivities from /home/hilborna/ocssw/var/modisa/xcal/OPER/xcal_modisa_axc_oc_v4.13d_412.hdf
Loading XCAL rvs and polarization sensitivities from /home/hilborna/ocssw/var/modisa/xcal/OPER/xcal_modisa_axc_oc_v4.13d_443.hdf
Loading XCAL rvs and polarization sensitivities from /home/hilborna/ocssw/var/modisa/xcal/OPER/xcal_modisa_axc_oc_v4.13d_469.hdf
Loading XCAL rvs and polarization sensitivities from /home/hilborna/ocssw/var/modisa/xcal/OPER/xcal_modisa_axc_oc_v4.13d_488.hdf
Loading XCAL rvs and polarization sensitivities from /home/hilborna/ocssw/var/modisa/xcal/OPER/xcal_modisa_axc_oc_v4.13d_531.hdf
Loading XCAL rvs and polarization sensitivities from /home/hilborna/ocssw/var/modisa/xcal/OPER/xcal_modisa_axc_oc_v4.13d_547.hdf
Loading XCAL rvs and polarization sensitivities from /home/hilborna/ocssw/var/modisa/xcal/OPER/xcal_modisa_axc_oc_v4.13d_555.hdf
Loading XCAL rvs and polarization sensitivities from /home/hilborna/ocssw/var/modisa/xcal/OPER/xcal_modisa_axc_oc_v4.13d_645.hdf
Loading XCAL rvs and polarization sensitivities from /home/hilborna/ocssw/var/modisa/xcal/OPER/xcal_modisa_axc_oc_v4.13d_667.hdf
Loading XCAL rvs and polarization sensitivities from /home/hilborna/ocssw/var/modisa/xcal/OPER/xcal_modisa_axc_oc_v4.13d_678.hdf
Loading XCAL rvs and polarization sensitivities from /home/hilborna/ocssw/var/modisa/xcal/OPER/xcal_modisa_axc_oc_v4.13d_748.hdf
Loading XCAL rvs and polarization sensitivities from /home/hilborna/ocssw/var/modisa/xcal/OPER/xcal_modisa_axc_oc_v4.13d_869.hdf
Loading DEM info from /home/hilborna/ocssw/share/common/gebco_ocssw_v2020.nc
Loading climatology file /home/hilborna/ocssw/share/common/sst_climatology.hdf
Loading SSS reference from Climatology file: /home/hilborna/ocssw/share/common/sss_climatology_woa2009.hdf

Opening meteorological files.
  met1   = /home/hilborna/ocssw/share/common/met_climatology_v2014.hdf
  met2   =
  met3   =
  ozone1 = /home/hilborna/ocssw/share/common/ozone_climatology_v2014.hdf
  ozone2 =
  ozone3 =
  no2    = /home/hilborna/ocssw/share/common/no2_climatology_v2013.hdf

Opening ozone file /home/hilborna/ocssw/share/common/ozone_climatology_v2014.hdf
Opening NO2 file /home/hilborna/ocssw/share/common/no2_climatology_v2013.hdf
Opening NO2 frac file /home/hilborna/ocssw/share/common/trop_f_no2_200m.hdf

Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_412_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_443_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_469_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_488_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_531_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_547_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_555_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_645_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_667_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_678_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_748_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_859_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_869_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_1240_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_1640_iqu.hdf
Loading Rayleigh LUT /home/hilborna/ocssw/share/modis/aqua/rayleigh/rayleigh_modisa_2130_iqu.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_412.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_443.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_469.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_488.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_531.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_547.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_555.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_645.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_667.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_678.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_748.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_859.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_869.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_1240.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_1640.hdf
Loading polarization file /home/hilborna/ocssw/share/modis/aqua/cal/polcor_modisa_2010b_2130.hdf

Using  869.0 nm channel for cloud flagging over water.
Using  412.0 nm channel for cloud flagging over land.

Processing scan #  1287 (1 of 185) after      1 seconds
Product type to ini SST
MODIS AQUA correction to BT 4 micron for detector #0 will be applied
Reading the ADT parameters from the follwing file : /home/hilborna/ocssw/share/modis/aqua/cal/cloud_mask_sst.json
The json file for the ADT has been read and processed succesfully
SST Coefficients file for product SST /home/hilborna/ocssw/share/modis/aqua/cal/modis-aqua_sst_coeffcients_v6.5.nc
Scantime - unix time: 1.71191e+09; scan day : 31; scan month : 3; scan year : 2024
Targeted month 3
The regression coefficients used:
Lat_start : -90; lat_end : -40; Coefficients : C0 = 1.11104; C1 = 0.947891; C2 = 0.162154; C3 = 0.73916; C4 = -0.00176535; C5 = -0.000622165; C6 = 0.000130626;
Lat_start : -40; lat_end : -20; Coefficients : C0 = 2.03343; C1 = 0.921298; C2 = 0.126211; C3 = 1.04285; C4 = 0.0158603; C5 = -0.00245947; C6 = 8.1086e-05;
Lat_start : -20; lat_end : 0; Coefficients : C0 = 4.74607; C1 = 0.810253; C2 = 0.119154; C3 = 0.925028; C4 = 0.00894843; C5 = -0.00252244; C6 = 3.41031e-05;
Lat_start : 0; lat_end : 20; Coefficients : C0 = 3.70288; C1 = 0.858051; C2 = 0.120424; C3 = 0.874866; C4 = 0.0130876; C5 = -0.00265987; C6 = 0.000112834;
Lat_start : 20; lat_end : 40; Coefficients : C0 = 1.44113; C1 = 0.949366; C2 = 0.13315; C3 = 0.95534; C4 = 0.00928045; C5 = -0.00223099; C6 = 0.000118908;
Lat_start : 40; lat_end : 60; Coefficients : C0 = 1.27633; C1 = 0.923423; C2 = 0.216576; C3 = 0.19508; C4 = 0.000543278; C5 = -0.000761662; C6 = 0.000204756;
Lat_start : 60; lat_end : 90; Coefficients : C0 = 1.38801; C1 = 0.837571; C2 = 0.36803; C3 = -1.44142; C4 = 0.00698994; C5 = -0.000127608; C6 = 0.000343426;

Reading SSES LUT netCDF file : /home/hilborna/ocssw/share/modis/aqua/cal/sst_sses_modisa_v6.5.hdf
Product type to ini SST4
MODIS AQUA correction to BT 4 micron for detector #0 will be applied
Reading the ADT parameters from the follwing file : /home/hilborna/ocssw/share/modis/aqua/cal/cloud_mask_sst4.json
The json file for the ADT has been read and processed succesfully
SST Coefficients file for product SST4 /home/hilborna/ocssw/share/modis/aqua/cal/modis-aqua_sst4_coeffcients_v6.5.nc
Scantime - unix time: 1.71191e+09; scan day : 31; scan month : 3; scan year : 2024
Targeted month 3
The regression coefficients used:
Lat_start : -90; lat_end : -40; Coefficients : C0 = 0.64926; C1 = 1.01519; C2 = 0.565159; C3 = 2.09033; C4 = -0.00175482; C5 = -0.000208672; C6 = -0.000243868;
Lat_start : -40; lat_end : -20; Coefficients : C0 = 0.468875; C1 = 1.02329; C2 = 0.576763; C3 = 2.34663; C4 = 0.00641445; C5 = 5.12298e-05; C6 = -0.000245943;
Lat_start : -20; lat_end : 0; Coefficients : C0 = 0.040287; C1 = 1.07036; C2 = 0.279432; C3 = 2.97154; C4 = 0.00498226; C5 = 0.000159493; C6 = -0.000201218;
Lat_start : 0; lat_end : 20; Coefficients : C0 = 0.308218; C1 = 1.04838; C2 = 0.397034; C3 = 2.77009; C4 = 0.00921465; C5 = 7.37414e-05; C6 = -0.000225621;
Lat_start : 20; lat_end : 40; Coefficients : C0 = 0.416213; C1 = 1.02073; C2 = 0.630608; C3 = 2.22912; C4 = 0.00518542; C5 = 1.84295e-05; C6 = -0.000262891;
Lat_start : 40; lat_end : 60; Coefficients : C0 = 0.684912; C1 = 1.01642; C2 = 0.562784; C3 = 2.11634; C4 = -0.00491458; C5 = -0.000112236; C6 = -0.000262027;
Lat_start : 60; lat_end : 90; Coefficients : C0 = 1.21174; C1 = 0.991908; C2 = 0.424973; C3 = 2.21765; C4 = -0.012561; C5 = -1.70178e-05; C6 = -0.000247608;

Reading SSES LUT netCDF file : /home/hilborna/ocssw/share/modis/aqua/cal/sst4_sses_modisa_v6.5.hdf
External product reference added : SST4
External product reference added : SST
chl_hu: using  443.00  547.00  667.00
IOP-based Kd_lee product requires iop model selection (iop_opt).  Using default model.
QAA v6 processing for 10 bands
QAA v6 bands: (0) 412 nm, (1) 443 nm, (3) 488 nm, (5) 547 nm, (8) 667 nm
QAA v6 wav  : 412.000000 443.000000 469.000000 488.000000 531.000000 547.000000 555.000000 645.000000 667.000000 678.000000
QAA v6 aw   :   0.020300   0.011100   0.010340   0.016760   0.044940   0.054910   0.058390   0.345800   0.492300   0.511600
QAA v6 bbw  :   0.002884   0.002181   0.001749   0.001447   0.001014   0.000889   0.000844   0.000447   0.000390   0.000363
Processing scan #  1337 (51 of 185) after      2 seconds
Processing scan #  1387 (101 of 185) after      2 seconds
Processing scan #  1437 (151 of 185) after      3 seconds

Percentage of pixels flagged:
Flag # 1:          ATMFAIL          0   0.0000
Flag # 2:             LAND          0   0.0000
Flag # 3:         PRODWARN          0   0.0000
Flag # 4:          HIGLINT          0   0.0000
Flag # 5:             HILT      19522  92.5652
Flag # 6:         HISATZEN          0   0.0000
Flag # 7:           COASTZ          0   0.0000
Flag # 8:            SPARE          0   0.0000
Flag # 9:       STRAYLIGHT        290   1.3751
Flag #10:           CLDICE      21090 100.0000
Flag #11:        COCCOLITH          0   0.0000
Flag #12:          TURBIDW          0   0.0000
Flag #13:         HISOLZEN          0   0.0000
Flag #14:            SPARE          0   0.0000
Flag #15:            LOWLW          0   0.0000
Flag #16:          CHLFAIL          0   0.0000
Flag #17:          NAVWARN          0   0.0000
Flag #18:           ABSAER          0   0.0000
Flag #19:            SPARE          0   0.0000
Flag #20:       MAXAERITER          0   0.0000
Flag #21:         MODGLINT          0   0.0000
Flag #22:          CHLWARN          0   0.0000
Flag #23:          ATMWARN          0   0.0000
Flag #24:           OPSHAL          0   0.0000
Flag #25:           SEAICE          0   0.0000
Flag #26:          NAVFAIL          0   0.0000
Flag #27:           FILTER          0   0.0000
Flag #28:            SPARE          0   0.0000
Flag #29:        BOWTIEDEL          0   0.0000
Flag #30:            HIPOL          0   0.0000
Flag #31:         PRODFAIL      21090 100.0000
Flag #32:            SPARE          0   0.0000

End MSl12 processing at 2026085155137000
Processing Rate = 46.250000 scans/sec


Processing Completed
However, opening this in SeaDAS, the processing covered a small box in the lower right corner, far from the study area. Before updating seadas, l2gen ran perfectly and processed a box centred on Cape Breton.
Thanks!
Screenshot 2026-03-26 120951.png

Filters:

OB ScienceSW - jlindo1
Subject Matter Expert
Subject Matter Expert
Posts: 12
Joined: Thu Oct 03, 2024 8:46 am America/New_York
Answers: 0

Re: l2gen MODIS Aqua segmentation fault with N, S, E, W bounds

by OB ScienceSW - jlindo1 » Tue Mar 31, 2026 3:54 pm America/New_York

Hello,

Thank you for bringing this to our attention. We've been looking into this issue and have found that it was a simple memory allocation error. I won't bore you with the details, so, put simply, using NSEW parameters caused a bug to rear its ugly head in MODIS' L1 reader. There is nothing required from you. We will update the L1 reader.

Best,
Jakob

schckngs
Posts: 32
Joined: Wed Feb 03, 2021 1:43 pm America/New_York
Answers: 0

Re: l2gen MODIS Aqua segmentation fault with N, S, E, W bounds

by schckngs » Mon Apr 13, 2026 6:35 pm America/New_York

Hi Jakob,
Thank you! I will keep an eye out for that. I still have issues with the N,S,E,W box location (without segmentation fault) if I try using earlier ocssw versions (e.g. V2022.0). Should this be something I can get around in the meantime by downgrading to an earlier version?
Thanks,
-Andrea

Post Reply