Skip to content
Snippets Groups Projects
Commit ac42fc3c authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added ap2pl test with ap_l90

parent d2b8b54c
No related branches found
No related tags found
1 merge request!245M214003/develop
INPUTDATA = ts_1d_5years ts_ym_5years ts_mm_5years ts_mm_1year ts_mm_1991 ts_6h_1mon ts_1d_1year ts_mm_5years_m ts_mm_1year_m ts_mm_5years_c ts_mm_1991_m ts_6h_1mon_m ts_1d_1year_m \
tp_mm_5years tp_mm_5years_m ts_anom_mm_5years \
hl_l19.grb ap_l47.nc gh_L191.nc t31_dv.grb t21_geosp_tsurf.grb t21_geosp_tsurf_sea.grb bathy4.grb pl_data pl_data.grb detrend_data \
hl_l19.grb ap_l47.nc ap_l90.nc gh_L191.nc t31_dv.grb t21_geosp_tsurf.grb t21_geosp_tsurf_sea.grb bathy4.grb pl_data pl_data.grb detrend_data \
grib_testfile01.grb grib_testfile02.grb grib_testfile03.grb netcdf_testfile01.nc netcdf_testfile02.nc netcdf_testfile03.nc testfile01c.nc \
datar.nc datac.nc datau.nc datag.nc arith1.srv expr1.srv arithmask.srv psl_DJF_anom.grb tsurf_spain.grb spain.grid \
topo_eu5.grb vars_data.grb math_data tsurf_1d_1year tsurf_runpctl_1d_1year mpiom_tho_sao.srv topo5.srv \
......@@ -54,7 +54,7 @@ ENSPCTL = enspctl1_ref enspctl20_ref enspctl25_ref enspctl33_ref enspctl50_
SPECTRAL = sp2gp_ref sp2gpl_ref gp2sp_ref gp2spl_ref
WIND = dv2ps_ref dv2uv_ref dv2uvl_ref uv2dv_ref uv2dvl_ref
INTTIME = inttime_ref intyear1992_ref
VERTINT = intlevel_ref intlevel_1_ref intlevel_2_ref intlevel3d_1_ref intlevel3d_2_ref ml2pl_ref ml2plx_ref ap2pl_ref gh2hl_ref gh2hlx_ref vert3D_c1.srv vert3D_c2.srv
VERTINT = intlevel_ref intlevel_1_ref intlevel_2_ref intlevel3d_1_ref intlevel3d_2_ref ml2pl_ref ml2plx_ref ap2pl_ref ap2pl_l90_ref gh2hl_ref gh2hlx_ref vert3D_c1.srv vert3D_c2.srv
REMAPHEALPIX = temp_remapcon_global_2_to_hp16_nest_ref temp_remapcon_hp16_nest_to_hp16_nest_ref temp_remapcon_hp32_nest_to_global_5_ref \
temp_remapdis_global_2_to_hp16_nest_ref temp_remapdis_hp16_nest_to_hp16_nest_ref temp_remapdis_hp32_nest_to_global_5_ref \
temp_remapnn_global_2_to_hp16_nest_ref temp_remapnn_hp16_nest_to_hp16_nest_ref temp_remapnn_hp32_nest_to_global_5_ref
......
File added
File added
CDO=cdo
LEVELS=99000,98400,92500,85000,50000,20000,10000,2.3,1
$CDO -v ap2pl,${LEVELS} -selname,ps,ta,pfull ap_l90.nc rta.nc
$CDO -v ap2pl,${LEVELS} -selname,ps,wa,phalf ap_l90.nc rwa.nc
$CDO -v intlevel,level=${LEVELS},zvarname=pfull -selname,ps,ta,pfull ap_l90.nc rta2.nc
$CDO -v intlevel,level=${LEVELS},zvarname=phalf -selname,ps,wa,phalf ap_l90.nc rwa2.nc
$CDO diffn,abslim=0.001 rta.nc rta2.nc
$CDO diffn,abslim=0.001 rwa.nc rwa2.nc
......@@ -97,6 +97,21 @@ else:
t.clean(OFILE)
test_module.add(t)
# ===============================================
OPERATOR="ap2pl"
if (not HAS_NETCDF):
test_module.add_skip("NetCDF not enabled")
else:
IFILE=f'{DATAPATH}/ap_l90.nc'
RFILE=f'{DATAPATH}/{OPERATOR}_l90_ref'
OFILE=f'{OPERATOR}_l90_res'
t=TAPTest(OPERATOR)
t.add(f'{CDO} {OPERATOR},92500,85000,50000,20000 {IFILE} {OFILE}')
t.add(f'{CDO} diff,abslim=0.004 {OFILE} {RFILE}')
t.clean(OFILE)
test_module.add(t)
# ===============================================
OPERATORS=["gh2hl","gh2hlx"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment