Timeline for Setting origin raster to resample using R?
Current License: CC BY-SA 4.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 9, 2019 at 21:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 12, 2019 at 18:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 11, 2019 at 15:31 | history | edited | Daniel | CC BY-SA 4.0 |
added 39 characters in body
|
Jun 11, 2019 at 15:29 | comment | added | Daniel |
If I erase that origin , applying your condition extent(a) == extent(b) equals TRUE . The rasters still do not line up
|
|
Jun 11, 2019 at 15:22 | comment | added | Spacedman |
You've still got a origin set in there. You can't do that. It will shift your rasters. If you have two rasters where extent(a) == extent(b) and they still don't line up on the plot, let me know.
|
|
Jun 11, 2019 at 15:17 | history | edited | Daniel | CC BY-SA 4.0 |
added 123 characters in body
|
Jun 11, 2019 at 15:12 | history | edited | Daniel | CC BY-SA 4.0 |
added 123 characters in body
|
Jun 1, 2019 at 8:56 | answer | added | Spacedman | timeline score: 1 | |
May 31, 2019 at 21:09 | history | edited | PolyGeo♦ | CC BY-SA 4.0 |
edited title
|
May 31, 2019 at 17:46 | history | edited | Daniel | CC BY-SA 4.0 |
added 699 characters in body
|
May 31, 2019 at 17:41 | comment | added | Daniel | Sorry, I am not an expert in R. Is it clearer now? I have renamed the variables. | |
May 31, 2019 at 17:39 | history | edited | Daniel | CC BY-SA 4.0 |
added 699 characters in body
|
May 31, 2019 at 16:49 | comment | added | Spacedman |
This isn't much clearer. Load the source raster from file.tif into a thing called source and show summary(source) . Then set up the raster with the target resolution and extent and call it target and show summary(target) . Then do the reproject into something called dest and show summary(dest) . Everything else is clutter.
|
|
May 31, 2019 at 16:03 | comment | added | Daniel |
The flip is because when I load the raster in R, is "flipped" like a mirror (up-side-down). Honestly, I do not know why this happens, but if saving it without the flip, the raster is badly stored. I have tried to set the origin via extent(test) but the problem remains, the resulting raster is a little bit up from the original. The original raster is file.tif = test . The purple is a polygon underneath, I did not turn off the shapefile.
|
|
May 31, 2019 at 16:02 | history | edited | Daniel | CC BY-SA 4.0 |
added 349 characters in body
|
May 31, 2019 at 15:59 | comment | added | Spacedman |
What's with the "flip"? What is the extent and summary of your original raster? Why do you change the origin of r from the origin of test which it gets via extent(test) ? In your image, which is "the original raster"? The one read from file.tif and called test ? What's the purple?
|
|
May 31, 2019 at 15:52 | history | asked | Daniel | CC BY-SA 4.0 |