Closed swhisnant5201 closed 7 months ago
maybe try giving the full path to the raster file. These lines download an nlcd file to your local directory
p = Package.browse("rasters/nlcd", "s3://spatial-ucr")
p["nlcd_2011.tif"].fetch()
then the dasymetric.masked_area_interpolate
function takes the path to a raster and opens it. But making sure you provide the correct path to the function (that actually points to the nlcd_2011.tif file on your computer) is up to you. I can verify that both the quilt download and the function in tobler are working correctly, but unfortunately, that's probably about all the help we can provide here. The team is limited on resources so we can only afford to focus on issues related to the software itself
also, until you have a good handle on what you're doing, it's probably best to avoid those wrapper functions because they will just make debugging one step harder :). The plots are pretty straightforward once you have the results in hand
Hi All,
I am working on the same code as my last issue, which you were able to help quickly solve. This time, I am trying to use the masked_area_interpolate method with the same data and the raster you provide in the notebook. When only running
p = Package.browse("rasters/nlcd", "s3://spatial-ucr") p["nlcd_2011.tif"].fetch()
it works without issue, however, when I attempt to call the method with "nlcd_2011.tif" as my raster, I get the following error:If I replace the raster with "nlcd_2001.tif", I get this instead:
Here is my complete code
I've tried a number of fixes and other ways to work with the raster, but am at a loss. Any help or guidance that you are able to offer is appreciated!