Skip to content
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

Upside-down non-georeferenced images #1578

Open
aloboa opened this issue Jul 29, 2024 · 0 comments
Open

Upside-down non-georeferenced images #1578

aloboa opened this issue Jul 29, 2024 · 0 comments

Comments

@aloboa
Copy link

aloboa commented Jul 29, 2024

After upgrading to terra_1.7-81,
non-georeferenced images are imported upside-down by rast()
https://www.dropbox.com/scl/fi/hg3eu523aiqbgwb075yzh/Al_BW.tif?rlkey=szkhlserl4seuss1tte47s8bk&dl=0

system("xdg-open Al_BW.tif")

image

r <- rast("Al_BW.tif")
plot(r, col=grey.colors(256))

image

setting crs(r) <- "local" does not change the plot in R.

Is this intentional? No problem if I know this is how it will be from now on.

> sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: x86_64-pc-linux-gnu
Running under: Pop!_OS 22.04 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so;  LAPACK version 3.10.0

locale:
[1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=es_ES.UTF-8       
[4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=es_ES.UTF-8    LC_MESSAGES=en_US.UTF-8   
[7] LC_PAPER=es_ES.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=C       

time zone: Europe/Madrid
tzcode source: system (glibc)

attached base packages:
  [1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
  [1] dendextend_1.17.1  plyr_1.8.9         caret_6.0-94       lattice_0.22-5     RColorBrewer_1.1-3
[6] gridExtra_2.3      plotly_4.10.4      ggplot2_3.4.4      terra_1.7-81   

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant