You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed when trying to retrieve URLs from senSearch that the argument name "lonlat" and its description is misleading. I was searching for the point 97.65317 (lon), 24.15859 (lat), so in the "lonlat" argument I put it in this order. However, the function returned NULL saying there were no images, even though a manual search in Copernicus SciHub showed there was.
I tried switching the argument to lat, then lon, and the function worked.
Can I please suggest you rename the argument to be "latlon" and update the description?
Here is the code. First one does not work.
senSearch(
username="****",
password="*****",
verbose=TRUE,
platform="Sentinel-2",
product="S2MSI1C",
lonlat=c(97.65317, 24.15859), # c(lon, lat)
startDate=as.Date("2015-01-01"),
endDate=as.Date("2018-12-17")
)
Adapting dates.
Adding platform name.
[1] "Adding query intersects"
Adding query intersects
Added product type.
https://scihub.copernicus.eu/dhus/search?q=beginposition:[2015-01-01T00:00:00.000Z%20TO%202018-12-17T23:59:59.999Z]%20AND%20platformname:Sentinel-2%20AND%20footprint:%22intersects(97.65317,%2024.15859)%22%20AND%20producttype:S2MSI1C&format=json&rows=100
Search Total result:
There is no images in the response, check spatial and temporal arguments.
NULL
I noticed when trying to retrieve URLs from
senSearch
that the argument name "lonlat" and its description is misleading. I was searching for the point 97.65317 (lon), 24.15859 (lat), so in the "lonlat" argument I put it in this order. However, the function returned NULL saying there were no images, even though a manual search in Copernicus SciHub showed there was.I tried switching the argument to lat, then lon, and the function worked.
Can I please suggest you rename the argument to be "latlon" and update the description?
Here is the code. First one does not work.
This one works.
The text was updated successfully, but these errors were encountered: