UCSBCarpentry / geospatialRUCSBAtlas

A repo to keep track of a set of examples for an R for GeoSpatial workshop. AKA the Ratlas. No rats involved.
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

Map 12: 12 months of campus NDVI #27

Open jonjab opened 1 month ago

jonjab commented 1 month ago

JJ already pulled his monthly UCSB Planet images, so we can calculate NDVI for each of those, and turn them into a raster stack as in episode 12:

https://datacarpentry.org/r-raster-vector-geospatial/12-time-series-raster.html Start with the .zip that JJ put in the google drive. As of 10/16/2024 it's not in dataprep.r

jonjab commented 5 days ago

these are in dataprep now. the NDVIs are calculated.

jonjab commented 5 days ago

as of today, at line 283 the means are NaN. we must be dividing by zero somewhere? I added fill=NA to the NDVI calculation loop. at the moment, the raster stack will plot, but I can't get a mean NDVI value out of any of them (I get NaN)