SSA-Statistical-Team-Projects / GeoLink

GeoLink package
0 stars 1 forks source link

geolink_elevation() #37

Closed dasalm20 closed 4 days ago

dasalm20 commented 5 days ago

Dear @DianaJaganjac and @ifeanyi588,

I tried testing elevation but it seems like it is not properly reading the rasters. I get an error message :

Error in raster_objs[[1]] : subscript out of bounds

When I debugged, the issue might be between lines 836- 854 of geolink_mach.R . The tif image is downloaded but when the function tries to list the files in the temp directory, it returns an empty object.

Best, Daylan

dasalm20 commented 5 days ago

The cropland function has the same issue. So any other function that uses the same system to read in the rasters, will have the the issue.

dasalm20 commented 5 days ago

Dear @DianaJaganjac and @ifeanyi588,

I do not think the issue has to do with the API because it downloads a raster. The issues seems to be when using the temporary directory.

Screenshot 2024-07-03 at 10 00 39 AM
DianaJaganjac commented 4 days ago

Hi Daylan, I have fixed this for both elevation and cropland.