Page 1 of 1

l2gen processing error - SDwritedata

Posted: Mon Mar 07, 2022 1:20 pm America/New_York
by matheushtavares
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

Re: l2gen processing error - SDwritedata

Posted: Mon Mar 07, 2022 1:49 pm America/New_York
by OB SeaDAS - xuanyang02
What tag of OCSSW are you using?

Re: l2gen processing error - SDwritedata

Posted: Mon Mar 07, 2022 5:52 pm America/New_York
by matheushtavares
l2gen 9.5.1-V2022.0

Re: l2gen processing error - SDwritedata

Posted: Thu Mar 10, 2022 12:21 pm America/New_York
by OB SeaDAS - dshea
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

Re: l2gen processing error - SDwritedata

Posted: Sun Mar 13, 2022 4:36 pm America/New_York
by matheushtavares
Outputting as netCDF did it, thanks Don!