getSpatialData
getSpatialData copied to clipboard
Getxxx_query : enable to query by product id
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
Hi Paul,
thanks for sharing the feature idea. Could you explain a use case for this? Where would you get the unique identifiers from?
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
Thanks for the explanation. Would be a useful feature – I will look into it as soon as possible.