Created
February 19, 2016 19:44
-
-
Save lukecampbell/a30497b9cb3a7c3c5349 to your computer and use it in GitHub Desktop.
Example shell script to generate a folder of ISOs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Examples: | |
# download_isos.sh /tmp/waf http://cbibs-dev.asa.rocks/thredds/catalog/stations/WaterQuality/44064/2015/catalog.xml | |
# download_isos.sh /tmp/waf http://sos.maracoos.org/stable/agg_catalog.html | |
# download_isos.sh /tmp/waf http://tds.glos.us/thredds/catalog/glos/habs/catalog.html | |
NC_ISO_PATH=$HOME/lib/ncISO-2.3.jar | |
CLASSPATH=$HOME/lib | |
OUTPUT=$1 | |
shift | |
for catalog in $@; do | |
catalog=$(echo $catalog | sed s/\.html/\.xml/g) | |
java -cp $CLASSPATH -Xms1024m -Xmx1024m -jar $NC_ISO_PATH -ts $catalog -iso true -waf $OUTPUT -num 1024 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment