kholsman/ACLIM2

load_maps.R can't find OB_LR.tif

Matt-Siskey opened this issue · 0 comments

I'm following the GettingStarted tutorial, I cloned the repo, and when I try to set up my workspace (source("R/sub_scripts/load_maps.R")), I get an error:

Error in .local(.Object, ...) :

Error in .rasterObjectFromFile(x, objecttype = "RasterBrick", ...) :
Cannot create a RasterLayer object from this file. (file does not exist)

Upon looking into load_maps.R, it seems to be getting stuck on the 'OB_LR.tif' file, which is not in the directory the function thinks it's in (it's one folder up from there). So, I copy-pasted the .tif file into the correct folder, and re-run the source() call for load_maps.R. Then, it gives me a new set of errors:

Warning messages:
1: In showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
Discarded datum WGS_1984 in Proj4 definition,
but +towgs84= values preserved
2: In spTransform(xSP, CRSobj, ...) :
NULL source CRS comment, falling back to PROJ string
3: In wkt(obj) : CRS object has no comment

Not sure what to do from here. This doesn't actually affect grabbing data, but when I try to plot hindcasts (Section 5.2), I can't get all the way through the script because it gets caught trying to load the OB_LR.tif file.

Any advice?