I have downloaded the “Dark Ship” data set recently released by Iceye. One of the products in it contains the following files:
ICEYE_X2_GRD_SM_3234_20190313T144753.tif
ICEYE_X2_GRD_SM_3234_20190313T144753.xml
When I try to read these in with Python, using this command:
(main)>>> from snappy import ProductIO
(main)>>> a=ProductIO.getProductReaderForInput(‘E:\Iceye\ICEYE_GRD_South_China_Sea_DarkVesselDetect\ICEYE_X2_GRD_SM_3234_20190313T144753.tif’)
The reader I get is:
(main)>>> a
org.esa.snap.core.dataio.ProductReader(objectRef=0x0000000056D6B1F8)
(main)>>> print(a)
org.esa.snap.dataio.geotiff.GeoTiffProductReader[input=null]
and I also get the following results:
(main)>>> initial_product = ProductIO.readProduct(‘E:\Iceye\ICEYE_GRD_South_China_Sea_DarkVesselDetect\ICEYE_X2_GRD_SM_3234_20190313T144753.tif’)
(main)>>> print(initial_product.getProductReader())
org.esa.snap.dataio.geotiff.GeoTiffProductReader[input=E:\Iceye\ICEYE_GRD_South_China_Sea_DarkVesselDetect\ICEYE_X2_GRD_SM_3234_20190313T144753.tif]
(main)>>> print(list(initial_product.getBandNames()))
[‘band_1’]
NOT the IceyeGRDProductReader I expect. Worse, this reader basically provides access to “band_1” as opposed to the “Amplitude_VV” and “Intensity_VV” I get when I use the SNAP GUI and specifically select ingestion of Iceye data (ie - I know the data is good and that the required readers are on my machine somewhere…).
Does anyone know what I need to change or force to get the SNAP python interface to use the correct reader? A couple of lines of Python code as an answer would be great.
it’s still tagged as “open”, but it could be implemented in one of the irrgegular updates (independent from the version). Still, SNAP 8 is going to be released soon.
Sorry - Switched jobs to non-space for a while and lost access to this account. Thanks to everyone else for contributing to the conversation in my absence…