Skip to content
Snippets Groups Projects
Commit 55b9da95 authored by Martin Schupfner's avatar Martin Schupfner
Browse files

Added mapping and diag/cmor fragments for vilma

parent 0f83a920
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ echammonplev19 : interpolation = True
echammonafter : afterburner = True
jsbachdecfx : input = True
echamdecfx : input = True
vilmadecfx : input = slm # only for SLM runs (i.e. incl vilma)
mpiom : basin = False # basin file does not exist for GR30
mpiom : basin = slice: first_step
mpiom : gridfile = True
......@@ -47,6 +48,7 @@ Ofx : areacello = True
#################
# Ocean
#################
Odec : sftof = slm # only for SLM runs (i.e. incl vilma)
#Ofx : deptho = False # variable has decadal or annual frequency
#Ofx : sftof = False # variable has decadal or annual frequency
#Ofx : thkcello = False # variable has monthly frequency (uppermost layer)
......@@ -74,4 +76,11 @@ wetlandFrac : Emon = False # variable only for MPI-ESM1-2-CR-CH4
termiteCH4 : Emon = False # variable only for MPI-ESM1-2-CR-CH4
fVegFireCH4 : Emon = False # variable only for MPI-ESM1-2-CR-CH4
herbivoreCH4 : Emon = False # variable only for MPI-ESM1-2-CR-CH4
##################
# solidLand
##################
SLdec : SLdec = slm # only for SLM runs (i.e. incl vilma)
##################
IdecAnt : IdecAnt = ism # only for ISM runs (i.e. incl mPISM)
IdecGre : IdecGre = ism # only for ISM runs (i.e. incl mPISM)
#<---- Specify your settings for Experiment AllExp here
################################
# VILMA ########################
################################
{ (if_requested $member $slmod vilmadecfx input $chunk "$vilma_input_dec_chunk" && {
# Create decadal "fx"-variables
ifile_topo=$input_file_topo
ifile_glac=$input_file_glac
#-- orog
$cdo setname,orog $input_file_topo $sdir/out_aggr/orog_SLdec_$period.nc || echo ERROR
#-- glac
$cdo setname,glac $input_file_glac $sdir/out_aggr/glac_SLdec_$period.nc || echo ERROR
}; )&; }>$err.vilmadecfx.input 2>&1
###########################################################################################################
wait
#-- CMOR-rewrite for vilma (ESM: MPI-ESM1-2) SLdec
cn='glac orog'
for var in $cn; do
{ (if_requested $member $slmod SLdec $var $chunk '${slmod_dec_chunk}' || continue
mkdir -p $dr/$submodel/SLdec_${var}
find_file "$sdir" "SLdec_${var}_${period}*.nc" ifile >> $err.find_file.SLdec 2>&1
echo $cdo cmor,SLdec,i=$it,mt=$mt,dr=$dr/$submodel/SLdec_${var},vd=$vd,cn=$var,ta=cmip,di=$di ${cdochain-} $ifile
$cdo cmor,SLdec,i=$it,mt=$mt,dr=$dr/$submodel/SLdec_${var},vd=$vd,cn=$var,ta=cmip,di=$di ${cdochain-} $ifile || echo ERROR
)&; }>>$err.$var.SLdec 2>&1
done
#-- CMOR-rewrite for vilma (ESM: MPI-ESM1-2) SLdec
cn='rslc'
for var in $cn; do
{ (if_requested $member $slmod SLdec $var $chunk '${slmod_dec_chunk}' || continue
mkdir -p $dr/$submodel/SLdec_${var}
ifile=${sdir}/out_diag/SLdec_${var}_$period.nc
echo $cdo cmor,SLdec,i=$it,mt=$mt,dr=$dr/$submodel/SLdec_${var},vd=$vd,cn=$var,ta=cmip,di=$di ${cdochain-} $ifile
$cdo cmor,SLdec,i=$it,mt=$mt,dr=$dr/$submodel/SLdec_${var},vd=$vd,cn=$var,ta=cmip,di=$di ${cdochain-} $ifile || echo ERROR
)&; }>>$err.$var.SLdec 2>&1
done
#-- CMOR-rewrite for vilma (ESM: MPI-ESM1-2) fx
cn='areacellsl'
for var in $cn; do
{ (if_requested $member $slmod fx $var $chunk || continue
mkdir -p $dr/$submodel/fx_${var}
ifile=${sdir}/out_diag/fx_${var}_$period.nc
echo $cdo cmor,fx,i=$it,mt=$mt,dr=$dr/$submodel/fx_${var},vd=$vd,cn=$var,ta=cmip,di=$di $ifile
$cdo cmor,fx,i=$it,mt=$mt,dr=$dr/$submodel/fx_${var},vd=$vd,cn=$var,ta=cmip,di=$di $ifile || echo ERROR
)&; }>>$err.$var.fx 2>&1
done
#-- Diagnostic for vilma (ESM: MPI-ESM1-2) variable rslc / table SLdec
{ (if_requested $member $slmod SLdec rslc $chunk '${slmod_dec_chunk}' && {
find_file -e "$sdir" "rsl_${period}*.nc" ifile
echo "$cdo -f nc -O \
-expr,'rslc=rsl/10.;' \
-settaxis,'${periodbk}-07-01,00:00:00' \
-settunits,'days' \
$ifile ${sdir}/out_diag/SLdec_rslc_${periodbk}.nc"
$cdo -f nc -O \
-expr,'rslc=rsl/10.;' \
-settaxis,'${periodbk}-07-01,00:00:00' \
-settunits,'days' \
$ifile ${sdir}/out_diag/SLdec_rslc_${periodbk}.nc || echo ERROR
}; )&; }>$err.rslc.SLdec 2>&1
#-- Diagnostic for vilma (ESM: MPI-ESM1-2) variable areacellsl / table fx
{ (if_requested $member $slmod fx areacellsl $chunk && {
find_file -e "$sdir" "SLdec_glac_${periodbk}.nc" ifile
$cdo -f nc -O \
expr,'areacellsl=gridarea(glac);' \
$ifile ${sdir}/out_diag/fx_areacellsl_$period.nc || echo ERROR
}; )&; }>$err.areacellsl.fx 2>&1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Automatically created Variable-Mapping-Table for VILMA
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Creation Date: 2024-07-31 10:52:14.021843 UTC
! Data Request Version: 00.00.03
! $URL$
! $Rev$ $Date$
!----------------------------------------------------------------------------------------
! This table contains information that has to be provided in order to use the CDO cmor operator.
! E.g. if your data files are GRIB formatted, the code number of the variable which
! corresponds to the target variable indicated by the short (CMOR) name (cmor_name=)
! needs to be given (with keyword 'code').
! The table format:
! Each line has to start with '&parameter '
! Comments start with an exclamation sign
! The order of keyword assignments does not matter
! There must be at least 1 space between assignments
! Any keyword value may be written with double-quotes
! If a keyword value contains spaces, it must be delimited by double-quotes
! Keywords interpreted by cdo cmor,... are :
!
! Entry Type Description
!----------------------------------------------------------------------------------------
! name STRING Name of the variable in a NetCDF model output file
! code STRING 1 to 3-digit variable code (for GRIB files)
! cmor_name WORD CMIP/CMOR name of the target variable
! (this is not necessarily the output variable name!)
! character_axis STRING Standard (CMOR) name of a character axis
! param STRING GRIB parameter (GRIB1: code[.tabnum]; GRIB2: num[.cat[.dis]])
! units STRING Units (UDUNITS!) of the variable
! positive WORD 'u' or 'd' for 'up' and 'down' flux direction
! variable_comment STRING Information concerning the target variable that will be
! transformed into a variable NetCDF attribute
! cell_methods WORD Information about the time:cell_methods of the target variable
! project_mip_table WORD MIP-table name of the target variable
! z-axis WORD vertical axis name of the target variable
!
! OtherAdditional keywords are allowed; they will be ignored by the cmor operator.
!
!----------------------------------------------------------------------------------------
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Diagnosed Variables listed in the following: !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
&parameter cmor_name="areacellsl" project_mip_table="fx" units="m2" cell_methods="n" /
&parameter cmor_name="glac" project_mip_table="SLdec" units="1" cell_methods="m" /
&parameter cmor_name="orog" project_mip_table="SLdec" units="m" cell_methods="m" /
&parameter cmor_name="rslc" project_mip_table="SLdec" units="m year-1" cell_methods="m" /
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