Page 1 of 1

gpt.sh reprojection issue

Posted: Tue May 08, 2018 6:00 am America/New_York
by junzhao
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

gpt.sh reprojection issue

Posted: Tue May 08, 2018 8:48 am America/New_York
by OB SeaDAS - knowles
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

gpt.sh reprojection issue

Posted: Tue May 08, 2018 2:20 pm America/New_York
by gnwiii
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.

gpt.sh reprojection issue

Posted: Wed May 09, 2018 1:41 am America/New_York
by junzhao
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

gpt.sh reprojection issue

Posted: Wed May 09, 2018 1:44 am America/New_York
by junzhao
George, Thank you for your clarification.

Jun