###########################################################################
# User dependend items
# Hilversum   , 2022/12/01       License GPL3          (c) Rob Alblas
###########################################################################
from os.path import expanduser
import platform

opsys=platform.system()

#Location where tools and data of satpy are located
#(only used in v3 scripts)
home=expanduser("~")
toodrp = home+'/tools/satpy'
datdrp = home+'/tools/satpy'

if (opsys=='Linux'):
  Viewer='eog'
elif (opsys=='Windows'):
  Viewer='' # use internal viewer
else:
  sys.exit('Unknown OS: '+opsys)

# max. allowed age in days of tle item (not file age!)
max_tle_age=10

#################################################################################################################
# Locations of data. Used in satpy_selector only.
# You may adapt (extend, remove, change) items in this table with your own items.
# The names in column 'name' are used to create the Satellite menu in satpy_selector
#           name       path to data
data_loc=[['msg'      ,home+'/srv/...'],
          ['mtg'      ,home+'/srv/...'],
          ['goes'     ,home+'/srv/...'],
          ['hima'     ,home+'/srv/...'],
          ['metop'    ,home+'/srv/...'],
          ['noaa'     ,home+'/srv/...'],
          ['suomi'    ,home+'/srv/...'],
          ['fy3d'     ,home+'/srv/...'],
          ['aquaterra',home+'/srv/...'],
          ['sentinel' ,home+'/srv/...']]


#################################################################################################################
# List of regios. Used in satpy_selector only.
#   This divides the long area list into smaller chuncks to get a managable menu in satpy_selector.
#   Adapt to your wishes. The area within (lat1,lon1) and (lat2,lon2) is added to regioname 'name'.
#   'name' is used to create the area menu in satpy_selector
#
#             name        lat1,lon1  lat2,lon2
regio_list=[['europe'    ,( 30, -20),( 70, 40)],
            ['asia'      ,( -9,  56),( 51,158)],
            ['africa'    ,(-38, -25),( 36, 48)],
            ['N america' ,(  4,-169),( 70,-58)],
            ['S america' ,(-55, -87),( 15,-32)],
            ['Arctica'   ,( 65,-180),( 90,180)],
            ['Antarctica',(-90,-180),(-65,180)],
            ['rest'      ,(-90,-180),( 90,180)]]

composite_list=[['default', ['default']],
                ['MSG'    , ['natural_color', 'realistic_colors', 'hrv_clouds', 'night_fog', 'ir108_3d']],
                ['Himawa' , ['natural_color', 'true_color', 'overview', 'airmass', 'colorized_ir_clouds']],
                ['GOES'   , ['natural_color', 'true_color', 'overview', 'airmass', 'colorized_ir_clouds']],
                ['Metop D', ['green_snow', 'ir108_3d', 'ir_cloud_day', 'natural_color', 'natural_color_raw',
                             'natural_enh', 'natural_with_night_fog', 'overview', 'overview_raw']],
                ['Metop N', [' night_microphysics']],
                ['FY3D'   , ['ash', 'cloudtop', 'day_microphysics', 'dust', 'fog', 'green_snow',
                             'ir108_3d','ir_cloud_day', 'natural_color', 'natural_color_lowres',
                             'natural_color_raw', 'natural_with_night_fog', 'night_fog', 'overview',
                             'overview_raw', 'true_color', 'true_color_raw']],
                ['NOAA D',  ['ash', 'cloudtop_daytime', 'dust', 'false_color', 'fire_temperature',
                             'fire_temperature_39refl', 'fire_temperature_awips', 'fire_temperature_eumetsat',
                             'fog', 'ir108_3d', 'ir_cloud_day', 'natural_color', 'natural_color_sun_lowres',
                             'natural_with_night_fog', 'night_fog', 'ocean_color', 'overview', 'snow_age',
                             'snow_lowres', 'true_color', 'true_color_lowres', 'true_color_lowres_crefl',
                             'true_color_lowres_land', 'true_color_lowres_marine_tropical', 'true_color_raw']],
                ['NOAA N'  ,['adaptive_dnb', 'ash', 'dust', 'dynamic_dnb', 'fog', 'histogram_dnb', 'hncc_dnb',
                              'ir108_3d', 'night_fog', 'night_overview']],

                ['Sentinel',['ocean_color', 'true_color', 'true_color_desert', 'true_color_land', 
                             'true_color_marine_clean','true_color_marine_tropical', 'true_color_raw']]]  
