getSpatialData icon indicating copy to clipboard operation
getSpatialData copied to clipboard

Getxxx_query : enable to query by product id

Open ptaconet opened this issue 5 years ago • 3 comments

Hi,

Thanks for your very good work, I am very excited to use your package to make transparent and reproducible science !

An interesting feature would be to be able to retrieve a product metadata table (i.e. output of getxxx_query) by providing its unique identifier (or a set of identifiers) as input parameter of the function, i.e. without providing a time frame and/or a ROI.

Cheers Paul

ptaconet avatar Mar 13 '19 09:03 ptaconet

Hi Paul,

thanks for sharing the feature idea. Could you explain a use case for this? Where would you get the unique identifiers from?

16EAGLE avatar Mar 18 '19 17:03 16EAGLE

Hi, Sorry if I have not been clear enough. A use case of mine : I am implementing an OBIA workflow in R, for reproducible science and that I want to make as much reusable as possible. In my case I know which products I will use: I first went on the Copernicus scihub to look for the image(s) I want. Each product comes with its metadata, including a unique identifier (see attached example). This identifier is actually one of the column of the output of getxxx_query. So as input parameter of my automated workflow I will only provide the unique identifier(s) of the product(s) I want to download and process, instead of a time frame and a ROI (which are useless in this specific case where I have previously identified the products that I want). I would see something like :

getSentinel_query(**products_id**, time_range, platform, aoi = NULL, check_avail = FALSE, username = NULL, password = NULL, hub = "auto", verbose = TRUE)

where products_id is an optional vector of unique identifier(s) that, when provided, makes time_range, platform and aoi not necessary.

Let me know if I have made myself more clear,

Paul

Capture d’écran de 2019-03-19 14-34-59

ptaconet avatar Mar 19 '19 14:03 ptaconet

Thanks for the explanation. Would be a useful feature – I will look into it as soon as possible.

16EAGLE avatar Mar 25 '19 12:03 16EAGLE