Combination View Flat View Tree View
Threads [ Previous | Next ]
RE: gpt BandMaths and multiple source products
toggle
Hi,

How should the multiple source products be specified in the graph xml to reference the different products with sourceProducts#.bandName in the BandMaths operator as described here

I'm calling the graph with:

gpt mygraph.xml -SfirstProd=xxx.dim -SsecondProd=yyy.dim -t out.dim

and would like to compute a new band using bands from both of the sources.

Mikko
Flag Flag
RE: gpt BandMaths and multiple source products
4/2/12 1:15 PM as a reply to Mikko Kervinen.
Hi Mikko,

can you show me
a) your xml-file
b) the error message you receive?

Best regards,
Thomas
Flag Flag
RE: gpt BandMaths and multiple source products
4/3/12 12:41 PM as a reply to Thomas Storm.
Thomas Storm:
Hi Mikko,

can you show me
a) your xml-file
b) the error message you receive?

Best regards,
Thomas


Hi Thomas

I attached a simple graph and here's the command & error message.

1
2> "D:\Program Files\beam-4.9.0.1\bin\gpt.bat" BandMathsDemo.xml -Sa=clouds_subset_MER_FRS_1PNPDK20100801_0
381841_000002022091_00379_44020_1034.dim -Sb=subset_MER_FRS_1PNPDK20100801_081841
4_000002022091_00379_44020_1034_syke_products.dim
5
6Error: Could not parse expression: sourceProducts0.cloud_prob + sourceProducts1.c2r_tsm
Attachments: BandMathsDemo.xml (0.7k)
Flag Flag
RE: gpt BandMaths and multiple source products
Answer Answer (Unmark)
4/3/12 4:29 PM as a reply to Mikko Kervinen.
Hi Mikko,

your expression in the XML-file is missing the '$'-characters.
It should be $sourceProducts0.cloud_prob + $sourceProducts1.c2r_tsm instead of sourceProducts0.cloud_prob + sourceProducts1.c2r_tsm.

The rest of your configuration is fine.

Best regards,
Thomas
Flag Flag
RE: gpt BandMaths and multiple source products
4/4/12 9:25 AM as a reply to Thomas Storm.
Thomas Storm:
Hi Mikko,

your expression in the XML-file is missing the '$'-characters.
It should be $sourceProducts0.cloud_prob + $sourceProducts1.c2r_tsm instead of sourceProducts0.cloud_prob + sourceProducts1.c2r_tsm.

The rest of your configuration is fine.

Best regards,
Thomas


Thanks!

Mikko
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: