New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snow Collection #5
Comments
Hi Sven, thanks for the feedback! It was possible to access the Snow collection, but I haven't used it in a while, maybe there have been some changes on theia API. I am sorry, I may not be able to look at it now, but I will check next week :) Best, |
Thank you very much! |
There was indeed a little problem with the query string generated for Snow collection. I fixed the problem and I'm releasing the new version to CRAN (should be online in a few days). Meanwhile, you can use the version from github: devtools::install_github('norival/theiaR) |
Thanks a lot for your help and your time! It works now for the Snow L2B products. However, I struggle to download the Snow L3B products (yearly composites). If I try to specify query1 <- list(collection = "Snow",
level = "LEVEL3A",
town = "Zernez",
start.date = "2020-09-01",
end.date = "2021-08-31")
query2 <- list(collection = "Snow",
level = "LEVEL2A",
town = "Zernez",
start.date = "2020-09-01",
end.date = "2021-08-31")
collection1 <- TheiaCollection$new(query = query1, dir.path = ".", check = TRUE)
collection2 <- TheiaCollection$new(query = query2, dir.path = ".", check = TRUE)
all(collection1$status$tile == collection2$status$tile)
Is this because of a difference between Level3A and Level3B products? Maybe I don't quite get the difference. |
For Snow products, the processing levels are actually called 'L2B-SNOW' and 'L3B-SNOW'. It was not supported by the package but I just pushed a fix to github. Please try installing the package from Github again; devtools::install_github('norival/theiaR) And then you should be able to do use it like that: query1 <- list(collection = "Snow",
level = "L3B-SNOW",
town = "Zernez",
start.date = "2020-09-01",
end.date = "2021-08-31")
query2 <- list(collection = "Snow",
level = "L2B-SNOW",
town = "Zernez",
start.date = "2020-09-01",
end.date = "2021-08-31")
(collection1 <- TheiaCollection$new(query = query1, dir.path = ".", check = TRUE))
# An collection of tiles from Theia
#
# Number of tiles: 1
# Directory path : './'
#
# Obtained from query
(collection2 <- TheiaCollection$new(query = query2, dir.path = ".", check = TRUE))
# An collection of tiles from Theia
#
# Number of tiles: 133
# Directory path : './'
#
# Obtained from query It seems consistent with results from the website :) |
It works now, 1000x thanks! There are still 2 issues I came across. However, there are easy workarounds and maybe you are already aware of those, so please don't feel forced to correct them just for me. You already helped more than enough :) But just for completeness:
Thanks again and all the best, |
Thanks for the feedback :)
It was originally not permitted by theia API, but I see that it is now possible. I will update the package to make it possible :)
Yes, it is the max number of tiles that can be retreived from a single request to the API. I think it would not be too difficult to repeat the request when this limit is reached. I'll try to implement it when I can. |
Hi Xavier,
I was trying to access the Theia Snow Collection via the following query
query2 <- list(collection = "Snow", start.date = "2017-01-01", end.date = "2022-01-01")
But running
q <- TheiaQuery$new(query2)
returnsError: No tiles matching search criteria
. Via the website I can download the corresponding .meta4 and read this into R without problems.Is this a bad from my side or is it not possible to access the snow collection?
Best,
Sven
The text was updated successfully, but these errors were encountered: