Example #1
0
    ldebug =  os.environ['PYAVG_DEBUG'] == 'DEBUG' 
  else: ldebug = False # i.e. append
  # run script in batch or interactive mode
  if os.environ.has_key('PYAVG_BATCH'): 
    lbatch =  os.environ['PYAVG_BATCH'] == 'BATCH' 
  else: lbatch = False # for debugging
  # re-compute everything or just update 
  if os.environ.has_key('PYAVG_OVERWRITE'): 
    loverwrite =  os.environ['PYAVG_OVERWRITE'] == 'OVERWRITE' 
  else: loverwrite = ldebug # False means only update old files

  
  ## define settings
  if lbatch:
    # load YAML configuration
    config = loadYAML('wrfavg.yaml', lfeedback=True)
    # read config object
    NP = NP or config['NP']
    loverwrite = config['loverwrite']
    # source data specs
    varlist = config['varlist']
    periods = config['periods']
    offset = config['offset']
    project = config['project']
    experiments = config['experiments']
    filetypes = config['filetypes']
    domains = config['domains']
    grid = config['grid']
  else:
    NP = 1 ; ldebug = True # just for tests
    loverwrite = False
Example #2
0
        ldebug = False
    # run script in batch or interactive mode
    if os.environ.has_key('PYAVG_BATCH'):
        lbatch = os.environ['PYAVG_BATCH'] == 'BATCH'
    else:
        lbatch = False  # for debugging
    # re-compute everything or just update
    if os.environ.has_key('PYAVG_OVERWRITE'):
        loverwrite = os.environ['PYAVG_OVERWRITE'] == 'OVERWRITE'
    else:
        loverwrite = ldebug  # False means only update old files

    ## define settings
    if lbatch:
        # load YAML configuration
        config = loadYAML('regrid.yaml', lfeedback=True)
        # read config object
        NP = NP or config['NP']
        loverwrite = config['loverwrite']
        # source data specs
        modes = config['modes']
        varlist = config['varlist']
        periods = config['periods']
        # Datasets
        datasets = config['datasets']
        resolutions = config['resolutions']
        unity_grid = config.get('unity_grid', None)
        lLTM = config['lLTM']
        # CESM
        CESM_project = config['CESM_project']
        CESM_experiments = config['CESM_experiments']
Example #3
0
 if os.environ.has_key('PYAVG_DEBUG'): 
   ldebug =  os.environ['PYAVG_DEBUG'] == 'DEBUG' 
 else: ldebug = False
 # run script in batch or interactive mode
 if os.environ.has_key('PYAVG_BATCH'): 
   lbatch =  os.environ['PYAVG_BATCH'] == 'BATCH' 
 else: lbatch = False # for debugging
 # re-compute everything or just update 
 if os.environ.has_key('PYAVG_OVERWRITE'): 
   loverwrite =  os.environ['PYAVG_OVERWRITE'] == 'OVERWRITE' 
 else: loverwrite = ldebug # False means only update old files
 
 ## define settings
 if lbatch:
   # load YAML configuration
   config = loadYAML('exstns.yaml', lfeedback=True)
   # read config object
   NP = NP or config['NP']
   loverwrite = config['loverwrite']
   # source data specs
   modes = config['modes']
   varlist = config['varlist']
   periods = config['periods']
   # Datasets
   datasets = config['datasets']
   resolutions = config['resolutions']
   lLTM = config['lLTM']
   # CESM
   CESM_project = config['CESM_project']
   CESM_experiments = config['CESM_experiments']
   CESM_filetypes = config['CESM_filetypes']
Example #4
0
        ldebug = False
    # run script in batch or interactive mode
    if os.environ.has_key('PYAVG_BATCH'):
        lbatch = os.environ['PYAVG_BATCH'] == 'BATCH'
    else:
        lbatch = False  # for debugging
    # re-compute everything or just update
    if os.environ.has_key('PYAVG_OVERWRITE'):
        loverwrite = os.environ['PYAVG_OVERWRITE'] == 'OVERWRITE'
    else:
        loverwrite = ldebug  # False means only update old files

    ## define settings
    if lbatch:
        # load YAML configuration
        config = loadYAML('exstns.yaml', lfeedback=True)
        # read config object
        NP = NP or config['NP']
        loverwrite = config['loverwrite']
        # source data specs
        modes = config['modes']
        varlist = config['varlist']
        periods = config['periods']
        # Datasets
        datasets = config['datasets']
        resolutions = config['resolutions']
        unity_grid = config.get('unity_grid', None)
        lLTM = config['lLTM']
        # CESM
        CESM_project = config['CESM_project']
        CESM_experiments = config['CESM_experiments']
Example #5
0
 if os.environ.has_key('PYAVG_DEBUG'): 
   ldebug =  os.environ['PYAVG_DEBUG'] == 'DEBUG' 
 else: ldebug = False # i.e. append
 # run script in batch or interactive mode
 if os.environ.has_key('PYAVG_BATCH'): 
   lbatch =  os.environ['PYAVG_BATCH'] == 'BATCH' 
 else: lbatch = False # for debugging
 # re-compute everything or just update 
 if os.environ.has_key('PYAVG_OVERWRITE'): 
   loverwrite =  os.environ['PYAVG_OVERWRITE'] == 'OVERWRITE' 
 else: loverwrite = ldebug # False means only update old files
 
 ## define settings
 if lbatch:
   # load YAML configuration
   config = loadYAML('shpavg.yaml', lfeedback=True)
   # read config object
   NP = NP or config['NP']
   loverwrite = config['loverwrite']
   # source data specs
   modes = config['modes']
   varlist = config['varlist']
   periods = config['periods']
   # Datasets
   datasets = config['datasets']
   resolutions = config['resolutions']
   lLTM = config['lLTM']
   # CESM
   CESM_project = config['CESM_project']
   CESM_experiments = config['CESM_experiments']
   CESM_filetypes = config['CESM_filetypes']
Example #6
0
 if os.environ.has_key('PYAVG_DEBUG'): 
   ldebug =  os.environ['PYAVG_DEBUG'] == 'DEBUG' 
 else: ldebug = False
 # run script in batch or interactive mode
 if os.environ.has_key('PYAVG_BATCH'): 
   lbatch =  os.environ['PYAVG_BATCH'] == 'BATCH' 
 else: lbatch = False # for debugging
 # re-compute everything or just update 
 if os.environ.has_key('PYAVG_OVERWRITE'): 
   loverwrite =  os.environ['PYAVG_OVERWRITE'] == 'OVERWRITE' 
 else: loverwrite = ldebug # False means only update old files
 
 ## define settings
 if lbatch:
   # load YAML configuration
   config = loadYAML('regrid.yaml', lfeedback=True)
   # read config object
   NP = NP or config['NP']
   loverwrite = config['loverwrite']
   # source data specs
   modes = config['modes']
   varlist = config['varlist']
   periods = config['periods']
   # Datasets
   datasets = config['datasets']
   resolutions = config['resolutions']
   lLTM = config['lLTM']
   # CESM
   CESM_project = config['CESM_project']
   CESM_experiments = config['CESM_experiments']
   CESM_filetypes = config['CESM_filetypes']
Example #7
0
 if os.environ.has_key('PYAVG_DEBUG'): 
   ldebug =  os.environ['PYAVG_DEBUG'] == 'DEBUG' 
 else: ldebug = False
 # run script in batch or interactive mode
 if os.environ.has_key('PYAVG_BATCH'): 
   lbatch =  os.environ['PYAVG_BATCH'] == 'BATCH' 
 else: lbatch = False # for debugging
 # re-compute everything or just update 
 if os.environ.has_key('PYAVG_OVERWRITE'): 
   loverwrite =  os.environ['PYAVG_OVERWRITE'] == 'OVERWRITE' 
 else: loverwrite = ldebug # False means only update old files
 
 ## define settings
 if lbatch:
     # load YAML configuration
     config = loadYAML('export.yaml', lfeedback=True)
     # read config object
     NP = NP or config['NP']
     loverwrite = config['loverwrite']
     # source data specs
     modes = config['modes']
     load_list = config['load_list']
     periods = config['periods']
     # Datasets
     datasets = config['datasets']
     resolutions = config['resolutions']
     unity_grid = config.get('unity_grid',None)
     lLTM = config['lLTM']
     # CESM
     CESM_project = config['CESM_project']
     CESM_experiments = config['CESM_experiments']
Example #8
0
        ldebug = False
    # run script in batch or interactive mode
    if os.environ.has_key('PYAVG_BATCH'):
        lbatch = os.environ['PYAVG_BATCH'] == 'BATCH'
    else:
        lbatch = False  # for debugging
    # re-compute everything or just update
    if os.environ.has_key('PYAVG_OVERWRITE'):
        loverwrite = os.environ['PYAVG_OVERWRITE'] == 'OVERWRITE'
    else:
        loverwrite = ldebug  # False means only update old files

    ## define settings
    if lbatch:
        # load YAML configuration
        config = loadYAML('biascorrection.yaml', lfeedback=True)
        # read config object
        NP = NP or config['NP']
        loverwrite = config['loverwrite']
        # source data specs
        modes = config['modes']
        load_list = config['load_list']
        periods = config['periods']
        # Datasets
        datasets = config['datasets']
        resolutions = config['resolutions']
        unity_grid = config.get('unity_grid', None)
        lLTM = config['lLTM']
        # CESM
        CESM_project = config['CESM_project']
        CESM_experiments = config['CESM_experiments']
Example #9
0
        ldebug = False  # i.e. append
    # run script in batch or interactive mode
    if os.environ.has_key('PYAVG_BATCH'):
        lbatch = os.environ['PYAVG_BATCH'] == 'BATCH'
    else:
        lbatch = False  # for debugging
    # re-compute everything or just update
    if os.environ.has_key('PYAVG_OVERWRITE'):
        loverwrite = os.environ['PYAVG_OVERWRITE'] == 'OVERWRITE'
    else:
        loverwrite = ldebug  # False means only update old files

    ## define settings
    if lbatch:
        # load YAML configuration
        config = loadYAML('wrfavg.yaml', lfeedback=True)
        # read config object
        NP = NP or config['NP']
        loverwrite = config['loverwrite']
        # source data specs
        varlist = config['varlist']
        periods = config['periods']
        offset = config['offset']
        WRF_project = config['WRF_project']
        WRF_experiments = config['WRF_experiments']
        WRF_filetypes = config['WRF_filetypes']
        domains = config['domains']
        grid = config['grid']
    else:
        #     NP = 1 ; ldebug = True # just for tests
        NP = 2
Example #10
0
 if os.environ.has_key('PYAVG_DEBUG'): 
   ldebug =  os.environ['PYAVG_DEBUG'] == 'DEBUG' 
 else: ldebug = False
 # run script in batch or interactive mode
 if os.environ.has_key('PYAVG_BATCH'): 
   lbatch =  os.environ['PYAVG_BATCH'] == 'BATCH' 
 else: lbatch = False # for debugging
 # re-compute everything or just update 
 if os.environ.has_key('PYAVG_OVERWRITE'): 
   loverwrite =  os.environ['PYAVG_OVERWRITE'] == 'OVERWRITE' 
 else: loverwrite = ldebug # False means only update old files
 
 ## define settings
 if lbatch:
   # load YAML configuration
   config = loadYAML('export.yaml', lfeedback=True)
   # read config object
   NP = NP or config['NP']
   loverwrite = config['loverwrite']
   # source data specs
   modes = config['modes']
   load_list = config['load_list']
   periods = config['periods']
   # Datasets
   datasets = config['datasets']
   resolutions = config['resolutions']
   lLTM = config['lLTM']
   # CESM
   CESM_project = config['CESM_project']
   CESM_experiments = config['CESM_experiments']
   CESM_filetypes = config['CESM_filetypes']
Example #11
0
 if os.environ.has_key('PYAVG_DEBUG'): 
   ldebug =  os.environ['PYAVG_DEBUG'] == 'DEBUG' 
 else: ldebug = False
 # run script in batch or interactive mode
 if os.environ.has_key('PYAVG_BATCH'): 
   lbatch =  os.environ['PYAVG_BATCH'] == 'BATCH' 
 else: lbatch = False # for debugging
 # re-compute everything or just update 
 if os.environ.has_key('PYAVG_OVERWRITE'): 
   loverwrite =  os.environ['PYAVG_OVERWRITE'] == 'OVERWRITE' 
 else: loverwrite = ldebug # False means only update old files
 
 ## define settings
 if lbatch:
   # load YAML configuration
   config = loadYAML('biascorrection.yaml', lfeedback=True)
   # read config object
   NP = NP or config['NP']
   loverwrite = config['loverwrite']
   # source data specs
   modes = config['modes']
   load_list = config['load_list']
   periods = config['periods']
   # Datasets
   datasets = config['datasets']
   resolutions = config['resolutions']
   unity_grid = config.get('unity_grid',None)
   lLTM = config['lLTM']
   # CESM
   CESM_project = config['CESM_project']
   CESM_experiments = config['CESM_experiments']
Example #12
0
        ldebug = False  # i.e. append
    # run script in batch or interactive mode
    if os.environ.has_key('PYAVG_BATCH'):
        lbatch = os.environ['PYAVG_BATCH'] == 'BATCH'
    else:
        lbatch = False  # for debugging
    # re-compute everything or just update
    if os.environ.has_key('PYAVG_OVERWRITE'):
        loverwrite = os.environ['PYAVG_OVERWRITE'] == 'OVERWRITE'
    else:
        loverwrite = ldebug  # False means only update old files

    ## define settings
    if lbatch:
        # load YAML configuration
        config = loadYAML('shpavg.yaml', lfeedback=True)
        # read config object
        NP = NP or config['NP']
        loverwrite = config['loverwrite']
        # source data specs
        modes = config['modes']
        varlist = config['varlist']
        periods = config['periods']
        # Datasets
        datasets = config['datasets']
        resolutions = config['resolutions']
        lLTM = config['lLTM']
        # CESM
        CESM_project = config['CESM_project']
        CESM_experiments = config['CESM_experiments']
        CESM_filetypes = config['CESM_filetypes']