Closed Embi closed 4 years ago
Also executing
import gbdxtools
gbdxtools.IdahoImage('7a8eb8e5-a4c7-4088-bc2c-69a809839bd0')
fails on
Traceback (most recent call last):
File "<input>", line 1, in <module>
gbdxtools.IdahoImage('7a8eb8e5-a4c7-4088-bc2c-69a809839bd0')
File "/home/..../lib/python3.6/site-packages/gbdxtools/images/base.py", line 10, in __new__
self = super(RDABaseImage, cls).__new__(cls, cls.__driver__.payload, **kwargs)
File "/home/...../lib/python3.6/site-packages/gbdxtools/images/rda_image.py", line 128, in __new__
cls.__geo__ = RDAGeoAdapter(op.metadata, dfp=cls._default_proj)
File "/home/..../lib/python3.6/site-packages/gbdxtools/rda/interface.py", line 60, in metadata
File "/home/..../lib/python3.6/site-packages/gbdxtools/rda/interface.py", line 207, in graph
File "/home/..../lib/python3.6/site-packages/gbdxtools/rda/graph.py", line 69, in get_rda_metadata
except:
gbdxtools.rda.error.BadRequest: RDA error: java.lang.NullPointerException. RDA Graph: c1ea6e5dc78bd784c2abca2556d33c58e344cc4ded13c24572e9910bd8051e31
Because of deprecations to the Idaho service and to the RDA Graph API you will need to provide CatalogImage with a Catalog ID. So if you are starting with an Idaho ID, you will need to query the catalog to find its Catalog ID first.
Following up after some troubleshooting:
CatalogImage
doesn't retrieve IDAHO or DG1B images, you will need to use the IdahoImage
class instead.
There is a configuration error in IdahoImage, please use:
img = IdahoImage('7a8eb8e5-a4c7-4088-bc2c-69a809839bd0', bucket="rda-images-1")
Hi @drwelby - just to be sure - are we safe to use IdahoImage after April 27?
e.g.:
IdahoImage('7a8eb8e5-a4c7-4088-bc2c-69a809839bd0', bucket="rda-images-1")
@Embi in GBDXtools 0.17+ IdahoImage has been migrated to use the Template API and will not be affected by the Graph API deprecation.
Fixed in 0.17.0.post1
Local envritonment:
python: 3.6.7 gbdxtools: 0.17.0
fails on:
When executing:
c.get() returns:
When using gbdxtools==0.16.7 it works just fine.