示例#1
0
def updatebc_init(datestart):
    '''
    Initialize WPS timestep
    '''
    WRFDA = wrfda()  # initialize object
    WRFDA.prepare_updatebc(datestart)
    for domain in range(1, WRFDA.max_dom+1):
      WRFDA.updatebc_run(domain)  # run da_updatebc.exe
    WRFDA.prepare_wrfda()  # prepare for running da_wrfvar.exe
    for domain in range(1, WRFDA.max_dom+1):
      WRFDA.wrfvar_run(domain)  # run da_wrfvar.exe
    WRFDA.prepare_updatebc_type('lateral', datestart, 1)  # prepare for updating lateral bc
    WRFDA.updatebc_run(1)  # run da_updatebc.exe
    WRFDA.wrfda_post()  # copy files over to WRF run_dir
示例#2
0
def obsproc_init(datestart):
    '''
    Initialize WPS timestep
    '''
    WRFDA = wrfda()  # initialize object
    WRFDA.obsproc_init(datestart)