source: TOOLS/MOZAIC/chk_friver.jnl @ 3740

Last change on this file since 3740 was 3326, checked in by omamce, 7 years ago

O.M. : Utility to generate interpolatio weights for OASIS-MCT

File size: 1.2 KB
Line 
1DEFINE SYMBOL MyDir "/ccc/scratch/cont003/gencmip6/p86caub/RUN_DIR/CM5A2-BILAN_NEWOASIS01"
2
3GO use_and_define da   ($MyDir)/COLIQRUN_LMDZ_25.nc
4GO use_and_define do   ($MyDir)/O_Runoff_oceanx_25.nc
5GO use_and_define dgo  /ccc/work/cont003/dsm/p86mart/GRAF/DATA/orca2.3.nc
6GO use_and_define drmp ($MyDir)/rmp_tlmd_to_torc_MOSAIC_rivflu.nc
7
8LET runoff_srf      = O_Runoff[D=($do)]*e1t[d=($dgo)]*e2t[D=($dgo)]*maskper[D=($dgo)]
9LET runoff_srf_full = O_Runoff[D=($do)]*e1t[d=($dgo)]*e2t[D=($dgo)]
10
11LET bilo   = runoff_srf[I=@SUM,J=@SUM]/1000.0
12LET bilo_f = runoff_srf_full[I=@SUM,J=@SUM]/1000.0
13LET bila   = coliqrun[D=($da),I=@SUM,J=@SUM]
14
15LET srf_atm = RESHAPE ( src_grid_area[D=($drmp)], coliqrun[D=($da)] )
16LET srf_oce = RESHAPE ( dst_grid_area[D=($drmp)], O_Runoff[D=($do)] ) * maskper[D=($dgo)]
17
18LIST/K=1:17 bila, bilo, bilo_f, bilo/bila, (bilo-bila)/bila, bilo_f/bila, (bilo_f-bila)/bila
19
20SET WINDOW 1 ; GO page_new -i 1 2
21SET VIEW 1 ; SHADE reshape ( src_grid_imask[D=($drmp)], coliqrun[D=($da)] )
22SET VIEW 2 ; SHADE reshape ( dst_grid_imask[D=($drmp)], O_Runoff[D=($do)] )
23
24
25SET WINDOW 2 ; GO page_new -il 1 1
26SET VIEW 1
27LET xx = IF O_Runoff GT 0 THEN O_Runoff
28SHADE xx[D=($do),K=2]
Note: See TracBrowser for help on using the repository browser.