Combination View Flat View Tree View
Threads [ Previous | Next ]
gpt Subset
toggle
gpt Subset
8/20/10 11:30 AM
Hello BCers,

I want to use "gpt Subset" to extract subsets from MERIS data with the command line. This is the command I am using

beam-4.8/bin> ./gpt.sh launch_Subset.xml -Ssource=/all_mounts/masp25/luis/GFZ_data_MERIS_N1s/MER_FR__1PNEPA20070710_104159_000000982059_00409_28018_1441.dim

with

launch_subset.xml being

<graph id="launch_Subset">
<version>1.0</version>
<node id="subset">
<operator>Subset</operator>
<sources>
<source>${source}</source>
</sources>
<parameters>
<region>
<x>1</x>
<y>1</y>
<width>100</width>
<height>100</height>
</region>
<subSamplingX>1</subSamplingX>
<subSamplingY>1</subSamplingY>
<tiePointGridNames>"sun_zenith,sun_azimuth,view_zenith,view_azimuth,latitude,longitude"</tiePointGridNames>
<bandNames>"radiance_1"</bandNames>
<copyMetadata>true</copyMetadata>
</parameters>
</node>
</graph>

With this setup I get the following error message


SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/people/luis/beam-4.8/lib/slf4j-jdk14-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/people/luis/beam-4.8/modules/lib-netcdf-4.0/lib/slf4j-jdk14-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

Error: Index: 0, Size: 0


The SLF4J lines do not appear sometimes for some reason.

Any help? I am sorry if the information is already there in the forum and I have overseen it (most probably emoticon).

Thanks a lot in advance!

Luis
Flag Flag
RE: gpt Subset
8/20/10 12:05 PM as a reply to Luis Guanter.
Hola Luis,

There is a tiny but important bug in your "launch_Subset.xml" file. Please remove the double quotes from the values of the <tiePointGridNames> and <bandNames> tags. Then it should work.

We are currently investigating the strange and confusing "SLF4J" output. Actually you should get a correct error message telling you what's wrong with the "launch_Subset.xml".

Saludos
Norman & Marco (Z.)
Flag Flag
RE: gpt Subset
8/23/10 11:38 AM as a reply to Norman Fomferra.
There is more to it that that.
The flags still missing on the right are:
<bandNames>radiance_1,l1_flags</bandNames>
Flag Flag
RE: gpt Subset
8/23/10 2:31 PM as a reply to Norman Fomferra.
Thanks!

One more question: would it be possible to save the output subset with a user-given file name, instead of the default 'target.dim'? No -T option seems to work for me.

Gruesse

Luis
Flag Flag
RE: gpt Subset
8/24/10 9:01 AM as a reply to Luis Guanter.
¡Hola Luis!

I have not investigated yet why the '-t' option does not yield the expected result, but you can use the following workaround, which adds a write node to the graph XML:


<graph id="makeSubset">
<version>1.0</version>

<node id="subset">
<operator>Subset</operator>
<sources>
<source>${sourceFile}</source>
</sources>
<parameters>
<!-- your parameters here -->
</parameters>
</node>

<node id="write">
<operator>Write</operator>
<sources>
<source refid="subset"/>
</sources>
<parameters>
<file>${targetFile}</file>
<deleteOutputOnFailure>true</deleteOutputOnFailure>
<!-- additional parameters here -->
</parameters>
</node>

</graph>


And then specify the targetFile using the -P option of gpt.
Flag Flag
RE: gpt Subset
5/27/11 1:12 PM as a reply to Ralf Quast.
Hi,

I'm trying to get a subset of MERIS and AATSR .dim files.

My xml-File:

<graph id="launch_Subset">
<version>1.0</version>

<node id="subset">
<operator>Subset</operator>
<sources>
<source>${source}</source>
</sources>
<parameters>
<region>
<x>138</x>
<y>476</y>
<width>5</width>
<height>5</height>
</region>
<subSamplingX>1</subSamplingX>
<subSamplingY>1</subSamplingY>
<copyMetadata>true</copyMetadata>
</parameters>
</node>

<node id="write">
<operator>Write</operator>
<sources>
<source refid="subset"/>
</sources>
<parameters>
<file>${targetFile}</file>
<deleteOutputOnFailure>true</deleteOutputOnFailure>
</parameters>
</node>

</graph>

and I launch it with:

./gpt.sh launch_Subset.xml -Ssource=f_name.dim -P=t_name.dim

where t_name is the name of the target file.

Then I get an error message: Error: Empty identifier in '-P=t_name.dim

Without the "P=..." I get a target.dim. This seems to work well. How can I specify a name and path for the target file?
Flag Flag
RE: gpt Subset
6/9/11 10:29 AM as a reply to Ralf Steikert.
Hello Ralf,

first of all I apologize that you had to wait for such a long time for an answer. Thinks have been very busy the last weeks.

To specify the target name please use the -t option.
You command should look like the following:
./gpt.sh launch_Subset.xml -Ssource=f_name.dim -t t_name.dim

To get help regarding the usage of gpt you can type:
./gpt.sh -h

Thanks for your patience.

best wishes Marco
Flag Flag

 

Welcome to the BEAM Forum!

We encourage you to sign in our forum and participate in the BEAM community. The forum is maintained by the BEAM project team who will most likely answer your questions within 24 hours (except during common holidays) - if not done by other community members. Collaborate, share your knowledge and learn from other users!

If you don't find what you are looking for, please also consider the following external forums: