This file contains 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
# Adapted from http://pypi.python.org/pypi/watchdog | |
import sys, os, re | |
import time | |
import logging | |
from optparse import OptionParser | |
import subprocess | |
from watchdog.observers import Observer | |
import watchdog.events | |
import pythoncom |
This file contains 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
#!/usr/bin/env python | |
import sys, os, re | |
import datetime, time | |
import csv | |
import psycopg2, psycopg2.extras | |
import logging | |
logger = logging.getLogger(__name__) | |
help_text = """De-duplicate MODIS fire downloaded from FIRMS in CSV format. |
This file contains 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
#!/usr/bin/env python | |
# | |
# Author: [email protected] | |
# Version: 20130307c | |
# Source: https://gist.github.com/cynici/3223681 | |
# Requires: pyHDF | |
# | |
# To install pyHDF on Ubuntu 11+, adapt these instructions accordingly: | |
# https://gist.github.com/1408088 |
This file contains 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
.pyc |
This file contains 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
''' | |
optparse offers IndentedHelpFormatter() and TitledHelpFormatter() but they don't honor the newlines embedded in the description string. | |
author: Tim Chase | |
source: https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.python/bfbmtUGhW8I | |
usage: parser = OptionParser(description=help_text, formatter=IndentedHelpFormatterWithNL()) | |
''' | |
from optparse import OptionParser, IndentedHelpFormatter, textwrap |
This file contains 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 | |
# | |
# Sample Script for User Defined Processing in DBVM | |
# [email protected] | |
# Place this file in $DBVM_HOME/user/ | |
# | |
echo | |
echo "Creating User Defined Products; started at "$(date -u) |
This file contains 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
ftp://ftp.ssec.wisc.edu/pub/IMAPP/AIRS/v5524/AIRS_linux_v5.2.tar.gz | |
ftp://ftp.ssec.wisc.edu/pub/IMAPP/AIRS/v5524/AIRS_store_v5.2.tar.gz | |
ftp://ftp.ssec.wisc.edu/pub/IMAPP/AIRS/v5524/DEM30ARC.tar | |
ftp://ftp.ssec.wisc.edu/pub/IMAPP/AIRS/v5524/STD30ARC.tar | |
ftp://ftp.ssec.wisc.edu/pub/IMAPP/AIRS/v5524/AIRS_anc_avhrr.tar.gz | |
ftp://ftp.ssec.wisc.edu/pub/IMAPP/AIRS/v5524/AIRS_anc_myd11.tar.gz | |
ftp://ftp.ssec.wisc.edu/pub/IMAPP/MODIS/hidden/modisl2_v2.2/IMAPP_MODISL2_V2.2.tar.gz | |
ftp://ftp.ssec.wisc.edu/pub/IMAPP/MODIS/hidden/modisl2_v2.1/IMAPP_MODISL2_V2.1_MOD06OD_COEFF.tar.gz | |
ftp://ftp.ssec.wisc.edu/pub/IMAPP/MODIS/hidden/dbge/dbge_v1.2/dbge_v1.2.tar.gz | |
ftp://ftp.ssec.wisc.edu/pub/IMAPP/MODIS/hidden/destripe/destripe_v1.1/DESTRIPE_V1.1.tar.gz |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os, sys | |
from optparse import OptionParser | |
import string | |
import urllib2 | |
import simplejson | |
import logging | |
help_text = """usage: %prog [options] ISO_country_code ... |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os, sys | |
from optparse import OptionParser | |
import string | |
import urllib2 | |
import simplejson | |
import logging | |
from datetime import datetime | |
import time |
This file contains 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 | |
# | |
# Use DRL software suite to process NPP data and produce | |
# geolocated truecolor GeoTiff image | |
# | |
if [ $# -lt 1 ] || [ ! -f "$1" ]; then | |
echo "usage: $0 NPP_DAT" >&2 | |
exit 1 |
OlderNewer