-
Notifications
You must be signed in to change notification settings - Fork 148
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
rgee has problems with 64-bit integers #150
Comments
Hi @spittssj, happy to see that You can solve your problem as follow: allParcelas <- ee$Geometry$Point(c(-92.3, 17.0))$buffer(100)
LandSatNDVI <- ee$ImageCollection("LANDSAT/LC08/C01/T1_8DAY_NDVI") %>%
ee$ImageCollection$filterDate("2013-01-01", "2015-3-31") %>%
ee$ImageCollection$filterBounds(allParcelas) %>%
ee$ImageCollection$select("NDVI")
dates <- ee_get_date_ic(LandSatNDVI)
dates |
My fault. I just started using Do you have any interest in putting it on conda-forge? I use conda to manage my R installation because in the conda environment (r_geospatial) R, python, and my whole geospatial toolchain (like PostgreSQL + PostGIS) play nicely. So I created a local I just exported the tibble of 100000 rows to a PostgreSQL table, built a geometry column, and now I'm querying against my dataset (smallholder coffee plots in Chiapas, Mexico -> hence they are called parcelas) to build time series graphs of average NDVI over 8 years for them. Nothing has taken more than 10s. This is a pretty cool research tool. I will definitely cite you in my qualifying paper. Te mando saludos desde el norte de los EEUU. |
Hi @spittssj I never heard about conda-forge, but it has a lot of sense to me. I promise to put effort to make this happen in rgee v.1.1.0. I'm really happy you find rgee useful for your research :). The sync PostGIS + rgee sounds quite interesting! 🚀 Muchas gracias por los saludos :D |
At submit an issue, please attached the following information of your
rgee
session:Attach your Python (reticulate) configuration:
Description
I am downloading NDVI time series LandSat data and the
time
field does not come through correctly. Oninvestigation, it is a 64-bit unsigned integer in Python that gets converted to a 32-bit signed integer in R.
According to rstudio/reticulate#590 this is a known problem in
reticulate
.What I Did
Later on, once I have converted
p1_NDVI
from a list of lists to a tibble, here is the outputI expect
time
above to be a double or something that preserves the unsigned integers. The same code in Python preserves the values. For now I don't needtime
since I will just use thedate
field but I wonder if anyone else has encountered this problem and has a workaround.Thank you for a wonderful package. The above computation takes 15 seconds for my entire region of interest!
The text was updated successfully, but these errors were encountered: