Page 1 of 1

Crop and Mask function in R studio

Posted: Thu Sep 30, 2021 11:40 am America/New_York
by papita
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.

Re: Crop and Mask function in R studio

Posted: Thu Sep 30, 2021 1:09 pm America/New_York
by ASDC - ingridgs
Thank you for your question. A Subject Matter Expert has been notified and will answer your question shortly. Please stand by!

Re: Crop and Mask function in R studio

Posted: Fri Oct 01, 2021 2:36 pm America/New_York
by ORNL - jessnicwelch
Hi there, papita. I am looking into your issue and I hope to respond early next week.

Re: Crop and Mask function in R studio

Posted: Tue Oct 05, 2021 11:14 am America/New_York
by ORNL - jessnicwelch
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.

Code: Select all

install.packages("sf", dependencies = TRUE)
library(sf)
Thanks,
Jess