gpt.sh reprojection issue

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
junzhao
Posts: 28
Joined: Fri Oct 07, 2011 11:21 am America/New_York
Answers: 0

gpt.sh reprojection issue

by junzhao » Tue May 08, 2018 6:00 am America/New_York

Hi,

I am using seadas V7.4. I tried to reproject a l2 file generated by l2gen. When the output file format was set to hdf5, the processing failed. The error message is attached below:
A problem occurred during processing the target product processing.
Type: OperatorException
Message: Not able to write product file: ....h5

But if the output file format was set to netcdf4-cf, everything is okay. My code was written to deal with hdf5 files.

I ran the reprojection from both the GUI and the command line (gpt.sh). The same error happened.

Any suggestion would be greatly appreciated.

Jun

Tags:

OB SeaDAS - knowles
Subject Matter Expert
Subject Matter Expert
Posts: 271
Joined: Mon Apr 07, 2008 4:40 pm America/New_York
Answers: 0

gpt.sh reprojection issue

by OB SeaDAS - knowles » Tue May 08, 2018 8:48 am America/New_York

Please specify file name and the reprojection parameters you are using.  Give us enough to know what mission you are using and replicate what you are doing.

I'm gonna take a guess that you might be using a mission which has large files.  Possibly your memory is set too low for one of these operations.

See file(s):
$SEADAS_HOME/bin/seadas.vmoptions
$SEADAS_HOME/bin/gpt.sh

And change line:
-Xmx1024M

.. to a higher memory value like: -Xmx2048M or -Xmx3060M ...

Danny

gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

gpt.sh reprojection issue

by gnwiii » Tue May 08, 2018 2:20 pm America/New_York

NetCDF4 uses the HDF5 library, so your NetCDF4-CF should "just work" with software written to handle HDF5.   Some tools, however, may insist on particular file name conventions (e.g., ".h5"), or may not follow CF conventions for metadata.

junzhao
Posts: 28
Joined: Fri Oct 07, 2011 11:21 am America/New_York
Answers: 0

gpt.sh reprojection issue

by junzhao » Wed May 09, 2018 1:41 am America/New_York

Hi Danny,

Thanks for your reply. The .xml file used for the reprojection is attached. I only ran it for one scene collected by MODIS/Aqua. The l2 file name is A2009190055500.L2_LAC. The area of interest was defined by 19-23.5 N and 111.5-117.5 E. BTW, the l2 file was generated with l2gen in a hdf4 format. Its size is 31M.

The following command was ran:
gpt.sh reproject.xml -SsourceFileName=A2009190055500.L2_LAC -t test -f hdf5

I increased the memory to 3096M. But the same error happened.

Jun
attachment 1

junzhao
Posts: 28
Joined: Fri Oct 07, 2011 11:21 am America/New_York
Answers: 0

gpt.sh reprojection issue

by junzhao » Wed May 09, 2018 1:44 am America/New_York

George, Thank you for your clarification.

Jun

Post Reply