Some drivers (mostly landsat and sentinel2 apparently) specify products with hyphen-delimited strings:
$ gips_process sentinel2 -p ref-toa # makes TOA reflectance
$ gips_process sentinel2 -p ref # surface reflectance
To be viable the datahandler needs to support this somehow; presently it only supports products with no arguments, eg 'ref' but not 'ref-toa'.
Alternatively, revise gips so that there's no such thing as products with arguments, as it's a hacked-in feature that's not often used, seemingly, and doesn't let us do anything we can't do with plain products. And since the _products dicts can be specified programmatically, it's actually much simpler to just do away with parameterization altogether:
Some drivers (mostly landsat and sentinel2 apparently) specify products with hyphen-delimited strings:
To be viable the datahandler needs to support this somehow; presently it only supports products with no arguments, eg 'ref' but not 'ref-toa'.
Alternatively, revise gips so that there's no such thing as products with arguments, as it's a hacked-in feature that's not often used, seemingly, and doesn't let us do anything we can't do with plain products. And since the
_products
dicts can be specified programmatically, it's actually much simpler to just do away with parameterization altogether:https://github.com/Applied-GeoSolutions/gips/blob/09c9d2389a1130264afdd26577867529979def9f/gips/data/sentinel2/sentinel2.py#L618