Skip to content
Snippets Groups Projects
config.py 3.44 KiB
Newer Older
"""
########################################################################
config.py
$Id: config.py 79 2013-03-18 09:48:03Z eso $

Configuration file for NVAP ash detection routines.

Intended for system-dependent variables (path names, global variables)

########################################################################
"""
# Project version 
VERSION="0.10"

Espen Sollum's avatar
Espen Sollum committed
#__version__ = VERSION+"-"+list(filter(str.isdigit, "$Revision: 79 $"))
__version__ = VERSION

####################################################################
# Default locations of SEVIRI raw files and more. Remember trailing
#    slashes.
####################################################################
# _PATH_ROOT = "/viper/nadir/home/satdata"
# PATH_TMP = _PATH_ROOT + "/tmp/"

# # Can find older files here (~60-90 days)
# PATH_SEVIRI_RAW = "/urd-tmp/products/IcelandEurope/raw_MSG3_IcelandEurope_1088_0088_1537x494/"
# PATH_ASH_PROP_TABLES = _PATH_ROOT + "/repos/ash-seviri/data/BTtables/"
# PATH_ERBT = _PATH_ROOT + "/repos/ash-seviri/data/"
# PATH_GEO =  _PATH_ROOT + "/repos/ash-seviri/data/"
# PATH_EXE =  _PATH_ROOT + "/repos/ash-seviri/AshDetection/"
# PATH_PLOT =  _PATH_ROOT + "/NVAP-ncout/plots/"


####################################################################
# For testing @esolap
####################################################################
_PATH_ROOT = "/home/eso/repos/ash_detection/"
PATH_NETCDF = "."
PATH_TMP = "/tmp/"
#PATH_SEVIRI_RAW = "/sat_data/products/IcelandEurope/raw_MSG3_IcelandEurope_1088_0088_1537x494/"
PATH_SEVIRI_RAW = _PATH_ROOT + "testdata_seviri/"

PATH_ASH_PROP_TABLES = _PATH_ROOT + "/data/BTtables/"
PATH_ERBT = _PATH_ROOT + "/data/"
PATH_GEO =  _PATH_ROOT + "/data/"
PATH_EXE =  _PATH_ROOT + "/AshDetection/"
FILE_PATH_LSMASK =  PATH_GEO + "LandSeaMask"
####################################################################
# Use these for satdata@fred:
####################################################################
Espen Sollum's avatar
Espen Sollum committed
#_PATH_ROOT = "/viper/nadir/home/satdata/NVAP/SVN/"
PATH_NETCDF = "/viper/nadir/nvap/"
#PATH_NETCDF = "/viper/nadir/home/satdata/NVAP/SVN/NVAP/Production/test/"
#PATH_NETCDF =  _PATH_ROOT + "/NVAP/Production/test/"
Espen Sollum's avatar
Espen Sollum committed
#PATH_TMP = "/tmp/"
PATH_SEVIRI_RAW = "/sat_data/products/IcelandEurope/raw_MSG3_IcelandEurope_1088_0088_1537x494/"

Espen Sollum's avatar
Espen Sollum committed
#PATH_ASH_PROP_TABLES = _PATH_ROOT + "/NVAP/data/BTtables/"
#PATH_ERBT = _PATH_ROOT + "/NVAP/Production/data/"
#PATH_GEO =  _PATH_ROOT + "/NVAP/Production/data/"
#PATH_EXE =  _PATH_ROOT + "/NVAP/Production/AshDetection/"
#PATH_SEVIRI_RAW = "/sat_data/products/IcelandEurope/raw_MSG3_IcelandEurope_1088_0088_1537x494/"

# PATH_ASH_PROP_TABLES = _PATH_ROOT + "/NVAP/data/BTtables/"
# PATH_ERBT = _PATH_ROOT + "/NVAP/Production/data/"
# PATH_GEO =  _PATH_ROOT + "/NVAP/Production/data/"
# PATH_EXE =  _PATH_ROOT + "/NVAP/Production/AshDetection/"


# Delete old files?
TMPDIR_CLEAN = False
NETCDF_CLEAN = True

RAW_FILE_TYPE = "calib.float4.raw"

# Process SEVIRI raw files files newer than this. Increase event is  
# several days old. For continuous processing, a setting of 2 should be ok.
Espen Sollum's avatar
Espen Sollum committed
DAYS_TO_PROCESS = 3

# NetCDF files older than this (days) will be deleted:
DAYS_TO_KEEP = 365

# Default setting for "Ash_detection.py" (--netcdfmapresolution)
NCF_RESOLUTION = 0.25

# Default platform
SAT_PLATFORM = 'MSG3' # eso 12/14/2015

# Default nice value for /usr/bin/nice
DEFAULT_NICE = "19"

# Limits for ash detection (BT_ASH) and ash flag uncertain (BT_UNCERTAIN).
# in the code
BT_ASH = -0.5
BT_UNCERTAIN = -0.2