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:

Combination View Flat View Tree View
Threads [ Previous | Next ]
band selection in visat / gpf parameter
toggle
band selection in visat / gpf parameter
gpf visat
2/11/16 11:34 AM
Hi,

Writing a gpf operator I can annotate parameter fields that they get interpreted by visats ui and listed in the parameter window of the operator.
Is there any "easy" way to allow for the selection of bands available in the currently selected product?

I am aware that this would not be possible to do on the commandline tool and therefore probably breaks current program logic. But I thought I may ask anyway ass I have not been in tough with latest beam developments. ;)

Cheers,
Andreas
Flag Flag
RE: band selection in visat / gpf parameter
Answer Answer (Unmark)
2/11/16 12:00 PM as a reply to Andreas Heckel.
Hi Andreas,

this is possible.
You can do it like:
1@Parameter(label = "Source band names",
2    description = "The names of the bands being used for processing",
3    rasterDataNodeType = Band.class)
4    private String[] sourceBandNames;

Or if it should be only one band:
1@Parameter(label = "Source band name",
2    description = "The name of the band being used for processing",
3    rasterDataNodeType = Band.class)
4    private String sourceBandNames


Example operators can be found at:
EmClusterOp.java and FlhMciOp.java

best wishes
Marco
Flag Flag
RE: band selection in visat / gpf parameter
2/11/16 12:52 PM as a reply to Andreas Heckel.
By the way. Do you know SNAP already?
If you're starting something new it might be good to use SNAP instead of BEAM.
Flag Flag
RE: band selection in visat / gpf parameter
2/11/16 1:24 PM as a reply to Marco Peters.
Thanks, the band selection works nicely!

No, I do not yet know SNAP. I have only seen that there are new tools for the Sentinels whic looked very visat-like. I guess I have to familiarise myself as we soon start moving towards SENTINEL development with our algorithms.
Now since you mention it I have of course some silly questions:
Is SNAP developed by BC?
What is its relationship to BEAM?
Will it eventually replace BEAM or is it a parallel development for the SENTINELs?

Maybe I should arrange a personal vist for a brief introduction... emoticon (as I am in Bremerhaven most of the time anyway)

Andreas
Flag Flag
RE: band selection in visat / gpf parameter
2/11/16 1:58 PM as a reply to Andreas Heckel.
No silly questions. All are very justified.

Is SNAP developed by BC?
Yes, among others. Also C-S and Array are participating.

What is its relationship to BEAM?
SNAP is the successor of BEAM and will replace it. We only do basic maintenance for BEAM.

Maybe I should arrange a personal vist for a brief introduction... emoticon (as I am in Bremerhaven most of the time anyway)
Yes, why not. Would be nice to see you again.

You will feel familiar in SNAP. It is not totally different. Most changes affect the GUI. For the core API the main changes affected the package names.
Flag Flag