Skip to content
Snippets Groups Projects
Commit d6d77dbd authored by lkugler's avatar lkugler
Browse files

.

parent 193d25bb
No related branches found
No related tags found
No related merge requests found
...@@ -5,10 +5,10 @@ import numpy as np ...@@ -5,10 +5,10 @@ import numpy as np
from config.cfg import exp, cluster from config.cfg import exp, cluster
from dartwrf.utils import symlink, copy, sed_inplace, append_file, mkdir, try_remove, print, shell from dartwrf.utils import symlink, copy, sed_inplace, append_file, mkdir, try_remove, print, shell
from dartwrf.obs import error_models as err
import dartwrf.create_obsseq as osq import dartwrf.create_obsseq as osq
from dartwrf import wrfout_add_geo from dartwrf import wrfout_add_geo
from dartwrf import obsseq from dartwrf import obsseq
from dartwrf.obs import error_models as err
earth_radius_km = 6370 earth_radius_km = 6370
......
...@@ -237,8 +237,8 @@ def create_obs_seq_in(time_dt, list_obscfg, ...@@ -237,8 +237,8 @@ def create_obs_seq_in(time_dt, list_obscfg,
assert len(coords) == n_obs, (len(coords), n_obs) # check if functions did what they supposed to assert len(coords) == n_obs, (len(coords), n_obs) # check if functions did what they supposed to
for lat, lon in coords: for lat, lon in coords:
assert lat < 90 & lat > -90 assert (lat < 90) & (lat > -90)
assert lon < 180 & lon > -180 assert (lon < 180) & (lon > -180)
kind = obscfg['kind'] kind = obscfg['kind']
print('obstype', kind) print('obstype', kind)
......
...@@ -7,7 +7,6 @@ from config.cfg import exp, cluster ...@@ -7,7 +7,6 @@ from config.cfg import exp, cluster
from dartwrf import assim_synth_obs as aso from dartwrf import assim_synth_obs as aso
if __name__ == "__main__": if __name__ == "__main__":
assim_time = dt.datetime.strptime(sys.argv[1], "%Y-%m-%d_%H:%M") assim_time = dt.datetime.strptime(sys.argv[1], "%Y-%m-%d_%H:%M")
......
...@@ -6,6 +6,7 @@ import numpy as np ...@@ -6,6 +6,7 @@ import numpy as np
from config.cfg import exp, cluster from config.cfg import exp, cluster
from dartwrf.utils import symlink, copy, sed_inplace, append_file, mkdir, try_remove, print, shell from dartwrf.utils import symlink, copy, sed_inplace, append_file, mkdir, try_remove, print, shell
from dartwrf import assim_synth_obs as aso from dartwrf import assim_synth_obs as aso
from osselyze.utils import get_prior_config from osselyze.utils import get_prior_config
if __name__ == "__main__": if __name__ == "__main__":
......
import os, sys, glob, warnings import os, sys, glob, warnings
from config.cfg import exp, cluster from config.cfg import exp, cluster
import run_obs_diag as rod import run_obs_diag as rod
......
...@@ -11,6 +11,7 @@ Options: ...@@ -11,6 +11,7 @@ Options:
import os, sys, shutil, warnings import os, sys, shutil, warnings
import datetime as dt import datetime as dt
from docopt import docopt from docopt import docopt
from config.cfg import exp, cluster from config.cfg import exp, cluster
from utils import sed_inplace, copy, symlink, mkdir from utils import sed_inplace, copy, symlink, mkdir
......
import os, sys, shutil, glob import os, sys, shutil, glob
from config.cfg import exp, cluster from config.cfg import exp, cluster
from utils import symlink, copy, sed_inplace, append_file, shell from utils import symlink, copy, sed_inplace, append_file, shell
rundir_program = '/home/fs71386/lkugler/data/run_DART/' rundir_program = '/home/fs71386/lkugler/data/run_DART/'
def prepare(obserr_iszero='.true.'): def prepare(obserr_iszero='.true.'):
copy(cluster.scriptsdir+'/../templates/input.eval.nml', copy(cluster.scriptsdir+'/../templates/input.eval.nml',
rundir_program+'/input.nml') rundir_program+'/input.nml')
......
...@@ -9,6 +9,7 @@ Example call: ...@@ -9,6 +9,7 @@ Example call:
""" """
import os, sys import os, sys
import netCDF4 as nc import netCDF4 as nc
from config.cfg import exp, cluster from config.cfg import exp, cluster
fields_old = ["XLAT_M", "XLONG_M", "CLAT", fields_old = ["XLAT_M", "XLONG_M", "CLAT",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment