l2gen processing error - SDwritedata

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
matheushtavares
Posts: 5
Joined: Mon Aug 10, 2020 4:05 pm America/New_York

l2gen processing error - SDwritedata

by matheushtavares » Mon Mar 07, 2022 1:20 pm America/New_York

Hello,

I am running l2gen for AC of MERIS imagery, and it works correctly for most images, except (apparently) for the larger images. I get the following error:

-E- /home/dshea/focs/oel_hdf4/libhdf4utils/hdf_utils.c line 311: SDwritedata(262170,[0,0,0],NULL,[1,4481,1],0x0x4b4ed70) failed.

I ran the following command:
l2gen ifile=/home/matheus/Matheus/Archives/Doutorado/WQ_Mangueira/MERIS/EN1_MDSI_MER_FRS_1P_20040526T130147_20040526T131433_011701_0124_20180417T173234_0100/ENV_ME_1_FRG____20040526T130147_20040526T131433_________________0766_027_124______DSI_R_NT____.SEN3/xfdumanifest.xml ofile=/home/matheus/Matheus/Archives/Doutorado/WQ_Mangueira/MERIS_int/MERIS_SeaDAS_20040526 oformat=hdf4 par=xfdumanifest.xml.anc atmocor=on mode=0 aer_opt=-2 glint_opt=0 brdf_opt=3 rad_opt=1 l2prod=Rrs_413,Rrs_443,Rrs_490,Rrs_510,Rrs_560,Rrs_620,Rrs_665,Rrs_681,Rrs_709,Rrs_754,Rrs_762,Rrs_779,Rrs_865,Rrs_885,Rrs_900

I used the same command line for other images, and it worked fine. What could be failing in this case?

Thanks for any help,
Matheus
Attachments
Screenshot from 2022-03-07 15-12-27.png
Screenshot from 2022-03-07 15-12-27.png (23.39 KiB) Not viewed yet

Tags:

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 379
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1

Re: l2gen processing error - SDwritedata

by OB SeaDAS - xuanyang02 » Mon Mar 07, 2022 1:49 pm America/New_York

What tag of OCSSW are you using?

matheushtavares
Posts: 5
Joined: Mon Aug 10, 2020 4:05 pm America/New_York

Re: l2gen processing error - SDwritedata

by matheushtavares » Mon Mar 07, 2022 5:52 pm America/New_York

l2gen 9.5.1-V2022.0

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 240
Joined: Thu Mar 05, 2009 10:25 am America/New_York

Re: l2gen processing error - SDwritedata

by OB SeaDAS - dshea » Thu Mar 10, 2022 12:21 pm America/New_York

The problem is that an HDF4 file can only store about 2G of data. With your requested products you can only output about 11000 lines before you exceed the HDF4 size limit. The input file has 17409 lines.

I would suggest outputting netCDF files or using sline/eline to process half of the file in 2 runs.

don

matheushtavares
Posts: 5
Joined: Mon Aug 10, 2020 4:05 pm America/New_York

Re: l2gen processing error - SDwritedata

by matheushtavares » Sun Mar 13, 2022 4:36 pm America/New_York

Outputting as netCDF did it, thanks Don!

Post Reply