retriever icon indicating copy to clipboard operation
retriever copied to clipboard

Modelled Historical Land-Use Dataset for CONUS

Open patdumandan opened this issue 4 years ago • 7 comments

LULC maps developed for conterminous United States from 1938 back to 1992 through hindcasting methods: https://www.sciencebase.gov/catalog/item/59d3c73de4b05fe04cc3d1d1

patdumandan avatar Feb 24 '21 18:02 patdumandan

I have downloaded the tif files/images in a folder and run the command retriever autocreate -dt raster -d <path of downloaded folder>. But it is giving some error. Can you please help me creating scripts for this?

Sohan022 avatar Mar 17 '21 02:03 Sohan022

What error is it giving you ?

henrykironde avatar Mar 17 '21 02:03 henrykironde

Can you show me the command you used

henrykironde avatar Mar 17 '21 03:03 henrykironde

What error is it giving you ?

Skipped file:  CONUS_Backcasting_y1938.tif name 'gdal' is not defined
Remove the file from the folder and try again

Sohan022 avatar Mar 17 '21 04:03 Sohan022

You do not have Gdal installed. Install Gdal and let me know if you are able to run the file. As you install Gdal, note down all the steps. We could make sure that others do not have the same issue.

After the installation, you should be able to go to Python and import Gdal using from osgeo import gdal

henrykironde avatar Mar 17 '21 04:03 henrykironde

Thanks, Henry. Now, it is working.

Steps for installing Gdal:

sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install gdal-bin
export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
ogrinfo --version
pip install GDAL==<GDAL VERSION FROM OGRINFO>

for reference: https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html

Sohan022 avatar Mar 17 '21 06:03 Sohan022

@henrykironde Please review my PR. Link: https://github.com/weecology/retriever-recipes/pull/101

Sohan022 avatar Mar 18 '21 15:03 Sohan022