DigitalGlobe / gbdxtools

(Deprecated) Python SDK for using GBDX
MIT License
74 stars 57 forks source link

Template parameters get abducted somewhere #766

Closed drwelby closed 5 years ago

drwelby commented 5 years ago

Template parameters that might be other keywords in GBDXtools are disappearing:

c = RDATemplateImage('6c9bc6e39a22ac29fc712a681c747200fdaed1b1a77e00cbf94a0462c79bff6e', 
                     'SmartBandSelect_rxa1gt', 
                     catId='1050010013BD6000')

Results in this error:

RDA error: DigitalGlobe Catalog Identifier is a required parameter

The assumption is that catId is used somewhere else and is getting stolen?

Changing the parameter in the template to cid works successfully:

from gbdxtools import RDATemplateImage
c = RDATemplateImage('a7d73422ec0230127af6cd37b17fc358dacd2f265c692fa5036eae5723892267', 
                     'SmartBandSelect_rxa1gt', 
                     cid='1050010013BD6000')

c.metadata
drwelby commented 5 years ago

Seems to be RDA is eating it:

https://rda.geobigdata.io/v1/template/6c9bc6e39a22ac29fc712a681c747200fdaed1b1a77e00cbf94a0462c79bff6e/metadata?nodeId=SmartBandSelect_rxa1gt&catId=1050010013BD6000&token=

versus

https://rda.geobigdata.io/v1/template/a7d73422ec0230127af6cd37b17fc358dacd2f265c692fa5036eae5723892267/metadata?nodeId=SmartBandSelect_rxa1gt&cid=1050010013BD6000&token=

Closing until we have to come up with a workaround.

drwelby commented 5 years ago

oops, that template has catld, not catId (lowercase L instead of uppercase i)