SeaDAS-GPT-Mosaic
Posted: Thu Dec 15, 2022 3:30 am America/New_York
In the GPT(command line) mode of SeaDAS, the Mosaic module is used to convert two hdf files,
Such as MOD04_3K.A2015351.0240.061.2017324005815.HDF and MOD04_3K A2015351.0245.061.2017324005735.HDF
unite for Mosaic, specific GPT command is as follows:
gpt mosaicGeneral.xml -p MosaicEx01.par `cat level2Files.txt` -t MOD04_3K.A2015351.0200.dim
There is always a run error after running, Error: No product reader found for file 'cat"
If the GPT command is:
gpt mosaicGeneral.xml -p MosaicEx01.par level2Files.txt -t MOD04_3K.A2015351.0200.dim
There is always a run error after running, Error: No product reader found for file level2Files.txt"
What's the problem, please? Is there anyone willing to help me solve this problem? My E-mail is
fjygwork@163.com.
The content of level2Files.txt is as follows:
MOD04_3K.A2015351.0240.061.2017324005815.hdf
MOD04_3K.A2015351.0245.061.2017324005735.hdf
The content of MosaicEx01.par is as follows:
band=Optical_Depth_Land_And_Ocean
north=31
south=21
west=113
east=123
pixelSize=0.01
resampling=Nearest
crs=GEOGCS["WGS84(DD)", DATUM["WGS84", SPHEROID["WGS84", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0], UNIT["degree",
0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH]]
The content of mosaicGeneral.xml is as follows:
<graph id="MosaicGraph">
<version>1.0</version>
<node id="MosaicNode">
<operator>Mosaic</operator>
<sources>
<sourceProducts>${sourceProducts}</sourceProducts>
</sources>
<parameters>
<variables>
<variable>
<name>${band}</name>
</variable>
</variables>
<combine>OR</combine>
<westBound>${west}</westBound>
<northBound>${north}</northBound>
<eastBound>${east}</eastBound>
<southBound>${south}</southBound>
<pixelSizeX>${pixelSize}</pixelSizeX>
<pixelSizeY>${pixelSize}</pixelSizeY>
<resampling>${resampling}</resampling>
<crs>${crs}</crs>
</parameters>
</node>
</graph>
Such as MOD04_3K.A2015351.0240.061.2017324005815.HDF and MOD04_3K A2015351.0245.061.2017324005735.HDF
unite for Mosaic, specific GPT command is as follows:
gpt mosaicGeneral.xml -p MosaicEx01.par `cat level2Files.txt` -t MOD04_3K.A2015351.0200.dim
There is always a run error after running, Error: No product reader found for file 'cat"
If the GPT command is:
gpt mosaicGeneral.xml -p MosaicEx01.par level2Files.txt -t MOD04_3K.A2015351.0200.dim
There is always a run error after running, Error: No product reader found for file level2Files.txt"
What's the problem, please? Is there anyone willing to help me solve this problem? My E-mail is
fjygwork@163.com.
The content of level2Files.txt is as follows:
MOD04_3K.A2015351.0240.061.2017324005815.hdf
MOD04_3K.A2015351.0245.061.2017324005735.hdf
The content of MosaicEx01.par is as follows:
band=Optical_Depth_Land_And_Ocean
north=31
south=21
west=113
east=123
pixelSize=0.01
resampling=Nearest
crs=GEOGCS["WGS84(DD)", DATUM["WGS84", SPHEROID["WGS84", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0], UNIT["degree",
0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH]]
The content of mosaicGeneral.xml is as follows:
<graph id="MosaicGraph">
<version>1.0</version>
<node id="MosaicNode">
<operator>Mosaic</operator>
<sources>
<sourceProducts>${sourceProducts}</sourceProducts>
</sources>
<parameters>
<variables>
<variable>
<name>${band}</name>
</variable>
</variables>
<combine>OR</combine>
<westBound>${west}</westBound>
<northBound>${north}</northBound>
<eastBound>${east}</eastBound>
<southBound>${south}</southBound>
<pixelSizeX>${pixelSize}</pixelSizeX>
<pixelSizeY>${pixelSize}</pixelSizeY>
<resampling>${resampling}</resampling>
<crs>${crs}</crs>
</parameters>
</node>
</graph>