Skip to content

Commit

Permalink
clean-up reformat scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
axel-lauer committed Feb 16, 2017
1 parent ea3f09b commit 7265ff2
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 21 deletions.
5 changes: 5 additions & 0 deletions config_private.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
<description>root directory of observational data</description>
</usrpath>

<usrpath category="observation" type="input" id="OBSPATH2">
<path>/path/to/data/obsdata2/</path>
<description>alternative root directory of observational data</description>
</usrpath>

<usrpath category="observation" type="input" id="RAWOBSPATH">
<path>/path/to/data/rawobsdata/</path>
<description>root directory of raw observational data (for reformat_obs scripts)</description>
Expand Down
2 changes: 1 addition & 1 deletion nml/namelist_lauer17rse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2192,7 +2192,7 @@ This namelist is part of the ESMValTool
<model> CMIP5_ETHZ GISS-E2-R Amon historical r1i1p2 1960 2010 @{MODELPATH}/ETHZ_CMIP5/ </model>
<model> CMIP5_ETHZ GISS-E2-R Amon historical r1i1p3 1960 2010 @{MODELPATH}/ETHZ_CMIP5/ </model>
<model> CMIP5_ETHZ MIROC-ESM-CHEM Amon historical r1i1p1 1960 2010 @{MODELPATH}/ETHZ_CMIP5/ </model>
<model> O3_Cionni IGAG/SPARC 1 historical 1960 2009 /export/pa_data01/ESMVal/forcings/ozonedatabase2011/ </model>
<model> O3_Cionni IGAG/SPARC 1 historical 1960 2009 @{OBSPATH2}/forcings/ozonedatabase2011/ </model>
<model> OBS ESACCI-OZONE sat L3 1997 2010 @{OBSPATH}/Tier2/ESACCI-OZONE/ </model>
<model> OBS NIWA reanaly 1 1980 2010 @{OBSPATH}/Tier3/NIWA/ </model>
</diag>
Expand Down
2 changes: 1 addition & 1 deletion nml/test_suites/dlr/namelist_lauer17rse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ This namelist is part of the ESMValTool
<diag_script_cfg_dir> ./nml/cfg_lauer17rse/ </diag_script_cfg_dir>
<diag_script cfg="cfg_eyring13jgr_fig02.ncl"> eyring13jgr_fig02.ncl </diag_script>
<model> CMIP5_ETHZ MIROC-ESM-CHEM Amon historical r1i1p1 2003 2005 @{MODELPATH}/ETHZ_CMIP5/ </model>
<model> O3_Cionni IGAG/SPARC 1 historical 2003 2005 /export/pa_data01/ESMVal/forcings/ozonedatabase2011/ </model>
<model> O3_Cionni IGAG/SPARC 1 historical 2003 2005 @{OBSPATH2}/forcings/ozonedatabase2011/ </model>
<model> OBS ESACCI-OZONE sat L3 2003 2005 @{OBSPATH}/Tier2/ESACCI-OZONE/ </model>
<model> OBS NIWA reanaly 1 2003 2005 @{OBSPATH}/Tier3/NIWA/ </model>
</diag>
Expand Down
2 changes: 1 addition & 1 deletion reformat_scripts/fixes/CMIP5_HadGEM2-ES_fix.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ begin
;var&plev = z(:,0,0)
;delete([/b,orog,i,k,j/])

;fils1 = systemfunc("ls /export/pa_data02/ESMVal/model/ETHZ_CMIP5/historical/Amon/zg/HadGEM2-ES/r1i1p1/zg_Amon_HadGEM2-ES_historical_r1i1p1_*.nc")
;fils1 = systemfunc("ls /data/ESMValTool/model/ETHZ_CMIP5/historical/Amon/zg/HadGEM2-ES/r1i1p1/zg_Amon_HadGEM2-ES_historical_r1i1p1_*.nc")
;tmp1 = addfiles(fils1, "cat")
;zg = tmp1[:]->zg

Expand Down
5 changes: 3 additions & 2 deletions reformat_scripts/obs/reformat_obs_BDBP.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ begin
TIER = 3

;; Input dir (raw data)
INDIR = "/export/pa_data01/ESMVal/obs/RAW/Tier" + \
INDIR = getenv("ESMValTool_RAWOBSPATH") + "/Tier" + \
TIER + "/" + OBSNAME + "/"

;; Output dir (CMOR-ized data)
OUTDIR = "/export/pa_data02/ESMVal/obs/Tier" + TIER + "/" + OBSNAME + "/"
OUTDIR = getenv("ESMValTool_OBSPATH") + "/Tier" + \
TIER + "/" + OBSNAME + "/"

;; Period
YEAR1 = 1979
Expand Down
4 changes: 2 additions & 2 deletions reformat_scripts/obs/reformat_obs_ESACCI-GHG.csh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
##
###############################################################################

set inpath = "/export/pa_data02/ESMVal/obs/Tier1/ESACCI-GHG"
set outpath = "/export/pa_data02/ESMVal/obs/Tier1/ESACCI-GHG"
set inpath="${ESMValTool_OBSPATH}/Tier1/ESACCI-GHG"
set outpath="${ESMValTool_OBSPATH}/Tier1/ESACCI-GHG"

if (! -d $outpath) then
mkdir -p $outpath
Expand Down
8 changes: 2 additions & 6 deletions reformat_scripts/obs/reformat_obs_ESACCI-LANDCOVER.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@
###############################################################################
"""

#inpath="/Work/Reference/OBS_ESACCI_LC/"
#outpath="/Work/Reference/OBS_ESACCI_LC/output/"
#path2lctool="./lib/lc-user-tools-3.10/"

inpath="/export/pa_data01/ESMVal/obs/RAW/Tier2/ESACCI-LANDCOVER/"
outpath="/export/pa_data02/ESMVal/obs/Tier2/ESACCI-LANDCOVER/"
inpath="/Work/Reference/OBS_ESACCI_LC/"
outpath="/Work/Reference/OBS_ESACCI_LC/output/"
path2lctool="./lib/lc-user-tools-3.10/"

#these LC-classes will be processed
Expand Down
5 changes: 3 additions & 2 deletions reformat_scripts/obs/reformat_obs_ESACCI-OZONE_LP.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ begin
TIER = 2

;; Input dir (raw data)
INDIR = "/export/pa_data01/ESMVal/obs/RAW/Tier" + \
INDIR = getenv("ESMValTool_RAWOBSPATH") + "/Tier" + \
TIER + "/" + OBSNAME + "/"

;; Output dir (CMOR-ized data)
OUTDIR = "/export/pa_data02/ESMVal/obs/Tier" + TIER + "/" + OBSNAME + "/"
OUTDIR = getenv("ESMValTool_OBSPATH") + "/Tier" + \
TIER + "/" + OBSNAME + "/"

;; Period
YEAR1 = 2007
Expand Down
4 changes: 2 additions & 2 deletions reformat_scripts/obs/reformat_obs_ESACCI-SOILMOISTURE.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ begin
TIER = 2

;; Input dir (raw data)
INDIR = "/export/pa_data01/ESMVal/obs/RAW/Tier" + \
INDIR = getenv("ESMValTool_RAWOBSPATH") + "/Tier" + \
TIER + "/" + OBSNAME + "/"

;; Output dir (CMOR-ized data)
OUTDIR = "/export/pa_data02/ESMVal/obs/Tier" + \
OUTDIR = getenv("ESMValTool_OBSPATH") + "/Tier" + \
TIER + "/" + OBSNAME + "/"

;; Period
Expand Down
6 changes: 2 additions & 4 deletions reformat_scripts/obs/reformat_obs_ESACCI-SST.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ begin
TIER = 2

;; Input dir (raw data)
; INDIR = getenv("ESMValTool_RAWOBSPATH") + "/Tier" + \
INDIR = "/export/pa_data01/ESMVal/obs/RAW/Tier" + \
INDIR = getenv("ESMValTool_RAWOBSPATH") + "/Tier" + \
TIER + "/" + OBSNAME + "/"

;; Output dir (CMOR-ized data)
; OUTDIR = getenv("ESMValTool_OBSPATH") + "/Tier" + \
OUTDIR = "/export/pa_data02/ESMVal/obs/Tier" + \
OUTDIR = getenv("ESMValTool_OBSPATH") + "/Tier" + \
TIER + "/" + OBSNAME + "/"

;; Period
Expand Down

0 comments on commit 7265ff2

Please sign in to comment.