Skip to content

Instantly share code, notes, and snippets.

@smacfarlane
Last active September 14, 2016 22:02
Show Gist options
  • Save smacfarlane/fe151887e4f05ce888cde94247bec0e0 to your computer and use it in GitHub Desktop.
Save smacfarlane/fe151887e4f05ce888cde94247bec0e0 to your computer and use it in GitHub Desktop.
# Script name
scriptName = os.path.basename(__file__);
scriptPath = os.path.dirname(__file__);
# Start timer
startTime = time.time()
######
# System executables
######
NCATTED_EXE = '/usr/bin/ncatted'
GZIP_EXE = '/usr/bin/gzip -f9'
SCP_EXE = '/usr/bin/scp'
######
# Path configuration
######
# Location for temporary files (softlinks, generated netCDFs, etc.). This
# directory gets cleaned out every time this script runs.
# Use current directory + './sandbox' if ENV variable isn't set
SANDBOX_DIR = os.getenv("LBC_SANDBOX_DIR", "./sandbox")
# Location where we'll store the generated AWIPS II netCDF3s (optional).
# This directory will need to be scrubbed using a mechanism separate from this script.
# Use current directory + './archive' if ENV variable isn't set
ARCHIVE_DIR = os.getenv("LBC_ARCHIVE_DIR", "./archive")
# Limb Correction tables (generated by NASA SPoRT)
TABLES_DIR = scriptPath + '/../tables/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment