Ignore:
Timestamp:
08/26/15 12:28:19 (9 years ago)
Author:
sdipsl
Message:
  • metrics NEMO submission
  • enable NEMO_VertLevels group
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_metrics_NEMO

    r1224 r1225  
    142142# Rename variables 
    143143#================================== 
    144 ncrename -v votemper,t -v thetao,to -v vosaline,so -v somxl010,mldpt -v mldr10_1,mldpt -v sosstsst,tos -v sossheig,zos -v sosaline,sos -v sowaflup,wfo ${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc 
     144IGCM_sys_ncrename -v votemper,t -v thetao,to -v vosaline,so -v somxl010,mldpt -v mldr10_1,mldpt -v sosstsst,tos -v sossheig,zos -v sosaline,sos -v sowaflup,wfo ${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc 
    145145 
    146146#================================== 
    147147# Interpolate vertical levels 
    148148#================================== 
    149 cdo intlevel,50,100,250,500,1000 -selvar,to,so ${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc ${config_UserChoices_JobName}_SE_${YEARS}_1MVertLevels_grid_T.nc 
     149IGCM_sys_cdo intlevel,50,100,250,500,1000 -selvar,to,so ${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc ${config_UserChoices_JobName}_SE_${YEARS}_1MVertLevels_grid_T.nc 
    150150 
    151151#================================== 
     
    153153#================================== 
    154154if [ ${RESOL_ORCA} = 'eORCA1' ] ; then 
    155   orca_grid_file='/ccc/scratch/cont003/dsm/p86mart/ORCA1_BLD/DOMSK/eORCA1.0/IPSL.eORCA1.0_gridCF.nc' 
     155  orca_grid='/ccc/scratch/cont003/dsm/p86mart/ORCA1_BLD/DOMSK/eORCA1.0/IPSL.eORCA1.0_gridCF.nc' 
    156156elif [ ${RESOL_ORCA} = 'ORCA1' ] ; then 
    157   orca_grid_file='/ccc/work/cont003/dsm/p86ipsl/database/grids/NEMO1_grid.nc' 
     157  orca_grid='/ccc/work/cont003/dsm/p86ipsl/database/grids/NEMO1_grid.nc' 
    158158elif [ ${RESOL_ORCA} = 'ORCA2' ] ; then 
    159   orca_grid_file='/ccc/work/cont003/dsm/p86ipsl/database/grids/ORCA2_lon_lat_bounds_for_metrics.nc' 
     159  orca_grid='/ccc/work/cont003/dsm/p86ipsl/database/grids/ORCA2_lon_lat_bounds_for_metrics.nc' 
    160160fi 
    161161 
    162 ncks --append -v bounds_lat,bounds_lon ${orca_grid_file} ${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc 
    163 ncatted -O -a bounds,nav_lat,o,c,bounds_lat ${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc 
    164 ncatted -O -a bounds,nav_lon,o,c,bounds_lon ${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc 
    165  
    166 ncks --append -v bounds_lat,bounds_lon ${orca_grid_file} ${config_UserChoices_JobName}_SE_${YEARS}_1MVertLevels_grid_T.nc 
    167 ncatted -O -a bounds,nav_lat,o,c,bounds_lat ${config_UserChoices_JobName}_SE_${YEARS}_1MVertLevels_grid_T.nc 
    168 ncatted -O -a bounds,nav_lon,o,c,bounds_lon ${config_UserChoices_JobName}_SE_${YEARS}_1MVertLevels_grid_T.nc 
     162IGCM_sys_ncks --append -v bounds_lat,bounds_lon ${orca_grid} ${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc 
     163IGCM_sys_ncatted -O -a bounds,nav_lat,o,c,bounds_lat ${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc 
     164IGCM_sys_ncatted -O -a bounds,nav_lon,o,c,bounds_lon ${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc 
     165 
     166IGCM_sys_ncks --append -v bounds_lat,bounds_lon ${orca_grid} ${config_UserChoices_JobName}_SE_${YEARS}_1MVertLevels_grid_T.nc 
     167IGCM_sys_ncatted -O -a bounds,nav_lat,o,c,bounds_lat ${config_UserChoices_JobName}_SE_${YEARS}_1MVertLevels_grid_T.nc 
     168IGCM_sys_ncatted -O -a bounds,nav_lon,o,c,bounds_lon ${config_UserChoices_JobName}_SE_${YEARS}_1MVertLevels_grid_T.nc 
    169169 
    170170#================================== 
     
    176176# Group of metrics we will compute 
    177177#================================== 
    178 #GroupsOfMetrics='NEMO_PCMDI NEMO_LatBandsAndRegions NEMO_VertLevels' 
    179 GroupsOfMetrics='NEMO_PCMDI NEMO_LatBandsAndRegions' 
     178GroupsOfMetrics='NEMO_PCMDI NEMO_LatBandsAndRegions NEMO_VertLevels' 
    180179MP_Version=v2.12 
    181180 
     
    190189  # Configure template for grid_T.nc 
    191190  #================================== 
    192   IGCM_comp_modifyFile template.py path_and_filename \'./${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc\' 
    193   IGCM_comp_modifyFile template.py filename \'${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc\' 
     191 
     192  if [ ${metricsGroupName} != "NEMO_VertLevels" ] ; then 
     193    IGCM_comp_modifyFile template.py path_and_filename \'./${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc\' 
     194    IGCM_comp_modifyFile template.py filename \'${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc\' 
     195  else 
     196    IGCM_comp_modifyFile template.py path_and_filename \'./${config_UserChoices_JobName}_SE_${YEARS}_1MVertLevels_grid_T.nc\' 
     197    IGCM_comp_modifyFile template.py filename \'${config_UserChoices_JobName}_SE_${YEARS}_1MVertLevels_grid_T.nc\' 
     198  fi 
    194199  IGCM_comp_modifyFile template.py attributes_provided \'IPSL_Extended\' 
    195200  IGCM_comp_modifyFile template.py Login  \'${LOGIN}\' 
Note: See TracChangeset for help on using the changeset viewer.