Changeset 1686 in lmdz_wrf for trunk


Ignore:
Timestamp:
Dec 4, 2017, 7:39:21 PM (7 years ago)
Author:
lfita
Message:

Upgrading the program with the use of an external python srcript to configure the main script

Location:
trunk/tools
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/get_stations.py

    r1679 r1686  
    1515import diag_tools as diag
    1616
    17 #sfcstatfile='ubicacion_datos_sup.csv'
    18 sfcstatfile='ubicacion_sfc_test.csv'
    19 
    20 # Surface stations columns for data
    21 sfclatcol=0
    22 sfcloncol=1
    23 sfclabcol=3
    24 sfchgtcol=2
    25 
    26 sndstatfile='ubicacion_sondeos.csv'
    27 
    28 # Sounding stations columns for data
    29 sndlatcol=1
    30 sndloncol=2
    31 sndlabcol=0
    32 sndhgtcol=3
    33 
    34 # comment char
    35 comchar = '#'
    36 
    37 # separation char
    38 sepchar = ','
    39 
    40 # missing value
    41 missvalS = ['0', 'NaN']
    42 
    43 # simulation file
    44 simfilen = '/home/lluis/PY/wrfout_d01_1995-01-01_00:00:00'
    45 
    46 # axes dimensions
    47 axesdims = {'X': ['west_east', 'west_east_stag'],                                    \
    48   'Y': ['south_north', 'south_north_stag'], 'Z': ['bottom_top', 'bottom_top_stag'],  \
    49   'T': ['Time']}
    50 
    51 # axes variables
    52 axesvars = {'X': ['XLONG', 'XLONG_U'], 'Y': ['XLAT', 'XLAT_V'], 'Z': ['ZNU', 'ZNW'], \
    53   'T': ['WRFtime']}
    54 
    55 # dim Variables
    56 dimvariables = {'west_east': 'XLONG', 'south_north': 'XLAT', 'bottom_top': 'ZNU',    \
    57   'Time': 'WRFtime', 'west_east_stag': 'XLONG_U', 'south_north_stag': 'XLAT_U',      \
    58   'bottom_top_stag': 'ZNW'}
    59 
    60 # SFC Variables
    61 sfcvariables = {'tas':'T2', 'uas':'WRFuas', 'vas':'WRFvas', 'huss':'Q2', 'ps':'PSFC',\
    62   'zhgt':'HGT'}
    63 sfcrefvar = 'tas'
    64 
    65 # Vertical Variables
    66 sndvariables= {'ta':'WRFta', 'ua':'WRFua', 'va':'WRFva', 'hus':'QVAPOR',             \
    67   'zg':'WRFzg', 'plev':'WRFp', 'tda': 'WRFtd'}
    68 sndrefvar = 'ta'
    69 
    70 # Variable pressure
    71 UnitsPress = 'Pa'
    72 Pressdimref = 'bottom_top'
    73 
    74 # Does pressure variable change with time?
    75 presstime = True
    76 
    77 # Map range
    78 #nlon = -80.
    79 #xlon = -50.
    80 #nlat = -60.
    81 #xlat = -20.
    82 
    83 # Map range RELAMPAGO
    84 nlon = -70.
    85 xlon = -57.
    86 nlat = -37.
    87 xlat = -27.
    88 
    89 # CF Temporal values
    90 ReferenceDate = '19491201000000'
    91 UnitsTime = 'minutes'
     17# Getting configuration
     18from config_get_stations import *
    9219
    9320####### ###### ##### #### ### ## #
Note: See TracChangeset for help on using the changeset viewer.