Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable compositing several quantities on the command line #11

Open
andershenja opened this issue Sep 17, 2021 · 0 comments
Open

Enable compositing several quantities on the command line #11

andershenja opened this issue Sep 17, 2021 · 0 comments

Comments

@andershenja
Copy link
Contributor

The composite generator can composite multiple quantities, e.g. TH and DBZH simultaneously for the same product. However, this feature is not available on the command line, using 'radarcomp'.

Doing this would involve tweaking two files:
bin/radarcomp, almost at the bottom:
if ',' in options.quantity: options.quantity = options.quantity.split(',')

and with updated documentation for options.quantity.

and Lib/compositing.py, in the _generate method:

if type(self.quantity) == types.ListType?:
for q in self.quantity:
generator.addParameter(q.upper(), self.gain, self.offset)
else:
generator.addParameter(self.quantity, self.gain, self.offset)

and importing the types module.

This approach only makes sense when compositing quantities that share the same gain and offset, probably also nodata and undetect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant