Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to get runGdal() working on mac #84

Open
dkcorvus86 opened this issue Feb 28, 2020 · 4 comments
Open

Trying to get runGdal() working on mac #84

dkcorvus86 opened this issue Feb 28, 2020 · 4 comments

Comments

@dkcorvus86
Copy link

Because, I have yet to be able to get MODIS to function properly on my PC (see thread here), I decided to give it a try on my lab's Mac. I installed homebrew and followed the instructions to install GDal.
When I run MODIS:::checkTools("GDal") it returns

Checking availability of GDAL:
OK, GDAL 3.0.4, released 2020/01/28 found!

but when I run the code from the ebird best practices (same code as previous thread it returns

########################
outProj = +proj=sinu +lon_0=0 +x_0=0 +y_0=0 +a=6371007.181 +b=6371007.181 +units=m +no_defs (if applicable, derived from Raster*/Spatial*/sf* object)
pixelSize = asIn
resamplingType = near
Output Directory = /Volumes/MyBook 10TB/haleydata/data/modis
########################
Local structure is up-to-date. Using offline information!
ERROR 4: `/private/var/folders/v1/7z17lhmj2lz33g6j2f97vfrh0000gq/T/RtmpQ2EiQM/MODIS_ARC/MODIS/MCD12Q1.006/2010.01.01/MCD12Q1.A2010001.h10v06.006.2018145235138.hdf' not recognized as a supported file format.
gdalinfo failed - unable to open '/private/var/folders/v1/7z17lhmj2lz33g6j2f97vfrh0000gq/T/RtmpQ2EiQM/MODIS_ARC/MODIS/MCD12Q1.006/2010.01.01/MCD12Q1.A2010001.h10v06.006.2018145235138.hdf'.

It continues to repeat this error, and nothing gets downloaded, processes, and deposited into the out file.
Clearly, I am doing something wrong on both OS and they appear to be two separate problems(?).

@fdetsch
Copy link
Owner

fdetsch commented Mar 2, 2020

Sorry for the delay. I'll try to dig a little deeper into this within the next couple of days.

@dkcorvus86
Copy link
Author

Florian,

Not a problem at all. I appreciate your continued help while I navigate this new terrain.

@dmontecino
Copy link

@fdetsch
Copy link
Owner

fdetsch commented Jun 22, 2020

@dkcorvus86 Can you try again with the latest pkg version? All GDAL related operations have been moved to sf::gdal_utils(). You hopefully shouldn't experience such problems any longer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants