Crop and Mask function in R studio
Crop and Mask function in R studio
Hi I was following the steps given in "Webinar: Introduction to Geospatial Analysis in R" for crop and mask function using the same data that was recommended for example "GrossEmissions_v101_USA_Fire.tif".
While i was performing crop and mask function none of the functions were able to remove the extraneous cell like it does when we use clip function in ArcGIS(the output image appeared in both cases as zoom out and zoom in version of each other). I'm attaching the outputs of both cases for reference.
Please let me know how could i remove the extra cell values outside vector boundary and get the result in same extent.
While i was performing crop and mask function none of the functions were able to remove the extraneous cell like it does when we use clip function in ArcGIS(the output image appeared in both cases as zoom out and zoom in version of each other). I'm attaching the outputs of both cases for reference.
Please let me know how could i remove the extra cell values outside vector boundary and get the result in same extent.
- Attachments
-
- This plot is masked.
- Masked image.png (9.34 KiB) Not viewed yet
-
- This plot is cropped.
- Cropped image.png (18.97 KiB) Not viewed yet
Filters:
-
- Posts: 197
- Joined: Fri Apr 23, 2021 9:14 am America/New_York
- Has thanked: 25 times
- Been thanked: 7 times
Re: Crop and Mask function in R studio
Thank you for your question. A Subject Matter Expert has been notified and will answer your question shortly. Please stand by!
-
- Posts: 2
- Joined: Mon Sep 13, 2021 11:55 am America/New_York
- Location: Oak Ridge National Laboratory
- Contact:
Re: Crop and Mask function in R studio
Hi there, papita. I am looking into your issue and I hope to respond early next week.
Jessica Nicole Welch, PhD
ORNL DAAC | Remote Sensing and Environmental Informatics Group
Earth System Informatics and Data Discovery Section | Environmental Sciences Division
Climate Change Science Institute
Oak Ridge National Laboratory
ORNL DAAC | Remote Sensing and Environmental Informatics Group
Earth System Informatics and Data Discovery Section | Environmental Sciences Division
Climate Change Science Institute
Oak Ridge National Laboratory
-
- Posts: 2
- Joined: Mon Sep 13, 2021 11:55 am America/New_York
- Location: Oak Ridge National Laboratory
- Contact:
Re: Crop and Mask function in R studio
Hello again,
Please use the following commands at the beginning of the tutorial and then run through the code again. I am updating the tutorial to reflect these changes. Let me know if this does not fix your issue.
Thanks,
Jess
Please use the following commands at the beginning of the tutorial and then run through the code again. I am updating the tutorial to reflect these changes. Let me know if this does not fix your issue.
Code: Select all
install.packages("sf", dependencies = TRUE)
library(sf)
Jess
Jessica Nicole Welch, PhD
ORNL DAAC | Remote Sensing and Environmental Informatics Group
Earth System Informatics and Data Discovery Section | Environmental Sciences Division
Climate Change Science Institute
Oak Ridge National Laboratory
ORNL DAAC | Remote Sensing and Environmental Informatics Group
Earth System Informatics and Data Discovery Section | Environmental Sciences Division
Climate Change Science Institute
Oak Ridge National Laboratory