Read CDO-COSMOS meeting text version

CDO-COSMOS meeting

Gregor Knorr 03/11/2009

Commands of General Interest

· cdo map file #have a look at the file

· cdo gtc, 0.5 ifile ofile #change a fractional mask to 0/1 mask · cdo setcindexbox,c,idx1,idx2,idy1,idy2, ifile ofile #change specific values · cdo griddes T31GR30_jan_surf.nc > Test # have a look at the grid

How to deal with the HD Model procedure? · · jan_surf.nc Grid Description File: HD_Grid

gridtype : lonlat xsize : 720 ysize : 360 xfirst : -179.75 xinc : 0.5 yfirst : 89.75 yinc : -0.5

How to deal with the HD Model procedure? Example HD_conversion.job:

cdo selvar,OROMEA jan_surf.nc jan_surf_OROMEA.nc cdo selvar,SLM jan_surf.nc jan_surf_SLM.nc cdo selvar,GLAC jan_surf.nc jan_surf_GLAC.nc # !select variable Mean Orography, Sea Level Mask, Glacier Mask ########### cdo remapcon,HD_grid jan_surf_OROMEA.nc jan_surf_OROMEA_HD.nc cdo remapcon,HD_grid jan_surf_SLM.nc jan_surf_SLM_HD.nc cdo remapcon,HD_grid jan_surf_GLAC.nc jan_surf_GLAC_HD.nc # !Interpolate T31 nach HD_grid

How to deal with the HD Model procedure?

############ cdo gtc,0.5 jan_surf_SLM_HD.nc jan_surf_SLM_HD_gtc.nc cdo gtc,0.5 jan_surf_GLAC_HD.nc jan_surf_GLAC_HD_gtc.nc #! create a 1/0 mask from the fractional mask ############ #mv jan_surf_GLAC_HD_gtc.nc jan_surf_GLAC_HD.nc #mv jan_surf_SLM_HD_gtc.nc jan_surf_SLM_HD.nc

How to deal with the HD Model procedure? Send the files to:

[email protected]

After receiving the files convert srv format to nc format via:

cdo -f ext copy hdpara.srv hdpara.ext cdo delcode,707 hdpara.ext hdpara_2.ext cdo -f nc setgrid,r720x360 hdpara_2.ext hdpara.nc cdo splitcode hdpara.ext code cdo -f nc setgrid,r1x360 code707.ext hdpara_707.nc cdo merge hdpara.nc hdpara_707.nc hdpara_combined.nc cdo chname,var172,FLAG hdpara_combined.nc hdpara_combined_1.nc cdo chname,var701,FDIR hdpara_combined_1.nc hdpara_combined.nc cdo chname,var702,ALF_K hdpara_combined.nc hdpara_combined_1.nc cdo chname,var703,ALF_N hdpara_combined_1.nc hdpara_combined.nc cdo chname,var704,ARF_K hdpara_combined.nc hdpara_combined_1.nc cdo chname,var705,ARF_N hdpara_combined_1.nc hdpara_combined.nc cdo chname,var706,AGF_K hdpara_combined.nc hdpara_combined_1.nc cdo chname,var707,AREA hdpara_combined_1.nc hdpara_combined.nc

How to Perform a Continental Drift?

· Requirement: Grid Description file manipulation

ORIGINAL GRID gridtype = gaussian gridsize = 4608 xname = lon xlongname = longitude xunits = degrees_E yname = lat ylongname = Gaussian latitude yunits = degrees_N xsize = 96 ysize = 48 xfirst = 0 Xinc = 3.75 Yvals = 87.1590946 83.4789367 79.7770457 76.0702445 72.361581 68.6520168 64.9419495 61.2315732 57.5209938 53.810274 50.0994534 46.3885581 42.6776062 38.9666105 35.2555805 31.5445233 27.8334445 24.1223483 20.4112384 16.7001177 12.9889886 9.27785325 5.56671363 1.85557149 -1.85557149 -5.56671363 -9.27785325 -12.9889886 -16.7001177 -20.4112384 -24.1223483 -27.8334445 -31.5445233 -35.2555805 -38.9666105 -42.6776062 -46.3885581 -50.0994534 -53.810274 -57.5209938 -61.2315732 -64.9419495 -68.6520168 -72.361581 -76.0702445 -79.7770457 -83.4789367 -87.1590946

How to Perform a Continental Drift?

MANIPULATED Shifted Grid gridtype = gaussian gridsize = 4608 xname = lon xlongname = longitude xunits = degrees_E yname = lat ylongname = Gaussian latitude yunits = degrees_N xsize = 96 ysize = 48 xfirst = 0 xinc = 3.75 yvals = 94.507100 90.8430000 87.1590946 83.4789367 79.7770457 76.0702445 72.361581 68.6520168 64.9419495 61.2315732 57.5209938 53.810274 50.0994534 46.3885581 42.6776062 38.9666105 35.2555805 31.5445233 27.8334445 24.1223483 20.4112384 16.7001177 12.9889886 9.27785325 5.56671363 1.85557149 -1.85557149 -5.56671363 -9.27785325 -12.9889886 -16.7001177 -20.4112384 -24.1223483 -27.8334445 -31.5445233 -35.2555805 -38.9666105 -42.6776062 -46.3885581 -50.0994534 -53.810274 -57.5209938 -61.2315732 -64.9419495 -68.6520168 -72.361581 -76.0702445 -79.7770457

Example: Continental_drift.job

cdo setgrid,tort_surf_original_LSM_shift.grid tort_surf_original_LSM_1.nc tort_surf_original_LSM_new_grid_1.nc cdo sellonlatbox,0,360,-90,90 tort_surf_original_LSM_new_grid_1.nc #cut off the first two rows tort_surf_original_LSM_new_grid_2.nc

cdo enlarge,t31grid tort_surf_original_LSM_new_grid_2.nc tort_surf_original_LSM_new_grid_3.nc #add two rows at the end cdo setgrid,tort_surf_original_LSM_orig.grid tort_surf_original_LSM_new_grid_3.nc tort_surf_original_LSM_new_grid_4.nc #northward shifted SLM with original grid description information cdo maskindexbox,20,45,27,40 tort_surf_original_LSM_new_grid_4.nc #cut off all grid points apart from Australia in the northward shifted SLM cdo setmisstoc,0 tort_surf_original_LSM_new_grid_5.nc #change missing value to 0 tort_surf_original_LSM_new_grid_5.nc

tort_surf_original_LSM_new_grid_6.nc

cdo setcindexbox,0,20,45,27,40 tort_surf_original_LSM_1.nc #change Australia in the original file to 0 cdo add tort_surf_original_LSM_new_grid.nc #add both files

tort_surf_original_LSM_new_grid.nc tort_surf_original_LSM_new_combi.nc

tort_surf_original_LSM_new_grid_6.nc

How to Change the Land-Sea Mask for Paleo-Timeslices?

·

·

Use the MPIOM SST output:

Example: SST_OUT_TO_LSM.job

cdo selcode,2 -sellevel,6 EXAMPLE_mpiom_08000101_08001231.grb EXAMPLE_mpiom_08000101_08001231_temp.grb cdo yearavg EXAMPLE_mpiom_08000101_08001231_temp.grb EXAMPLE_mpiom_08000101_08001231_temp_avg.grb cdo div EXAMPLE_mpiom_08000101_08001231_temp_avg.grb EXAMPLE_mpiom_08000101_08001231_temp_avg.grb mask cdo setmisstoc,0 mask mask_1 # up to here created a mask cdo -f nc setgrid,GR30s.nc -selindexbox,2,121,1,101 -setgrid,r122x101 mask_1 mask.nc cdo mulc,-1 -addc,-1 mask.nc lsm.nc #up to here created a mask of 1 (Land) & 0 (Ocean) cdo remapcon,t31grid lsm.nc lsm_t31.nc cdo setmisstoc,1 lsm_t31.nc lsm_t31_1.nc cdo chvar,var2,SLM lsm_t31_1.nc lsm_t31_1_SLM.nc

How to do the Atmosphere Forcing Interpolation, using a different Land-sea mask?

· · ·

The core command is: change_e5slm, You have to perform the adaptation for all files that contain the SLM i.e. : Jan_surface, vegetation ratio and leaf area index

cdo change_e5slm,NEW-LSM

ifile

ofile

! Don't work with CDO versions older than 1.3.2 Make sure that you enable scripwr and gridswr in the run-script, while you disable the use of the initial tar-files.

Information

CDO-COSMOS meeting

12 pages

Find more like this

Report File (DMCA)

Our content is added by our users. We aim to remove reported files within 1 working day. Please use this link to notify us:

Report this file as copyright or inappropriate

215781