NASA-Planetary-Science / HiMAT

23 stars 9 forks source link

Added way to download MODSCAG to HMA extent #10

Closed lsetiawan closed 6 years ago

lsetiawan commented 6 years ago

Overview

This PR adds a script modscag_download.py that provides a way to download MODSCAG dataset. It has been subsetted to only HMA region. This is basically a wrapper to snow_download_by_tile.py. Also, once download is completed it merges the tiles to single GeoTiff file.

lsetiawan commented 6 years ago

Also another comment for this script. Must be run with Python 2.7!

aaarendt commented 6 years ago

@lsetiawan the .yml file installs Python 3.6...is this a mistake w.r.t. your last comment?

lsetiawan commented 6 years ago

@aaarendt This is not a mistake, for most of himat work, it will be in Python 3.6. For this MODSCAG, Python 2.7 should be used, since the code from NASA is in 2.7. I haven't worked on editing/testing on Python 3.6.

lsetiawan commented 6 years ago

Additionally, progressbar2 should be installed. conda install -c conda-forge progressbar2

lsetiawan commented 6 years ago

@aaarendt It is easy to clone the himat environment you have now and then do conda install -c conda-forge python=2.7, this will make all your packages to Python 2.7.

aaarendt commented 6 years ago

got it - I thought you made that yml specifically for this modscag stuff. Will give this a try now

lsetiawan commented 6 years ago

got it - I thought you made that yml specifically for this modscag stuff. Will give this a try now

No, It is meant to be a general yml for HiMAT work.

aaarendt commented 6 years ago

testing on about 15 files. Works fine until it tries to merge: image

lsetiawan commented 6 years ago

How did you run it? Try specifying --outpath

aaarendt commented 6 years ago

image

This is the command I issued. I did specify outpath and it copied the requested .tif files to that directory.