-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.rfeng
116 lines (100 loc) · 5.36 KB
/
README.rfeng
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
! =======
Input file:
ocean grid: /glade/scratch/ranfeng/cesm1_2_0/tools/mapping/gen_mapping_files/horiz_grid_plioenh_070820.ieeer8
gx1v6 kmt: /glade/scratch/ranfeng/cesm1_2_0/tools/mapping/gen_mapping_files/topography_plio_enh_gx1v6_190619.CESM2_modMed.ieeei4
! =======
! Begin generating coupler mapping file
!! ------------------------------
Step 1: create SCRIP mapping file
src1: !! uses myConvertPOPT to create SCRIP grid file
(NOTE: myConvertPOPT must be compiled with big_endian flag)
SrcDir for executable: /gpfs/fs1/p/cgd/ccr/people/ranfeng/plio_bnd/PlioMIP_enh/cpl_mapping/scrip1.4/grids/myconvertPOPT
RunDir: /glade/scratch/ranfeng/cesm1_2_0/tools/mapping/gen_mapping_files
src: mk_SCRIPgridplio_enh.csh
in1: nx, ny
in2: horiz_grid_wais_070820.ieeer8
in4: fv0.9x1.25_070727.nc !! default atm grid
in3: topography_plio_enh_gx1v6_190619.CESM2_modMed.ieeei4
out1: gx1v6plioenh_"date".nc (ocn SCRIP mapping file: center_lat, center_lon)
Step 2 :
SrcDir: /glade/scratch/ranfeng/cesm1_2_0/tools/mapping/gen_mapping_files
runDir: /glade/scratch/ranfeng/cesm1_2_0/tools/mapping/gen_mapping_files
src: ./gen_cesm_maps.sh !! do not modify!
Usage: ./gen_cesm_maps.sh -fatm /glade/p/cesm/cseg/mapping/grids/fv0.9x1.25_070727.nc -natm fv09_1.25 -focn /glade/scratch/ranfeng/cesm1_2_0/tools/mapping/gen_mapping_files/gx1v6plioenh_"date".nc -nocn gx1v6plioenh --nogridcheck
out2:
map_fv09_1.25_TO_gx1v6plioenh_aave."date".nc
map_fv09_1.25_TO_gx1v6plioenh_blin."date".nc
map_fv09_1.25_TO_gx1v6plioenh_patc."date".nc
map_gx1v6plioenh_TO_fv09_1.25_aave."date".nc
map_gx1v6plioenh_TO_fv09_1.25_blin."date".nc
!!! ======================
!!! gen_domain
!!! ======================
wkdir: /glade/scratch/ranfeng/cesm1_2_0/tools/mapping/gen_domain_files
./gen_domain -m ../gen_mapping_files/map_gx1v6plioenh_TO_fv19_25_aave."date".nc -o gx1v6plioenh -l fv1.9_2.5 -c plioenh -p 2
ofiles:
domain.ocn.gx1v6plioenh."date".nc
domain.lnd.fv09_1.25_gx1v6plioenh."date".nc ! 90 to 90
domain.ocn.fv09_1.25_gx1v6plioenh."date".nc
! ===============================
-- Runoff mapping
Step 1:
------------------------
wkdir: /glade/scratch/ranfeng/cesm1_2_0/tools/mapping/gen_mapping_files/runoff_to_ocn
vi runoff_map_r05_gx1v6_plioenh.nml
&input_nml
gridtype = 'rtm'
file_roff = '/glade/p/cesm/cseg/inputdata/lnd/clm2/rtmdata/rdirc.05.061026'
file_ocn = 'gx1v6plioenh_"date".nc'
file_nn = 'map_r05_to_gx1v6plioenh_nn_"date".nc '
file_smooth = 'map_gx1v6_to_gx1v6plioenh_sm_e1000r300_"date".nc '
file_new = 'map_r05_to_gx1v6plioenh_nnsm_e1000r300_"date".nc'
title = 'runoff map: r05 -> gx1v6, nearest neighbor and smoothed '
eFold = 1000000.0
rMax = 300000.0
step1 = .true.
step2 = .true.
step3 = .true.
/
% ln -s runoff_map_r05_gx1v6_plioenh.nml ./runoff_map.nml
% ./runoff_map < runoff_map.nml
out:
map_r05_to_gx1v6plioenh_nn_"date".nc
map_gx1v6_to_gx1v6plioenh_sm_e1000r300_"date".nc
map_r05_to_gx1v6plioenh_nnsm_e1000r300_"date".nc
; ======================================================================
; Runoff mapping Step 2: create ROF2OCN_FMAPNAME (aave) runoff mapping file
; ======================================================================
; ======================================================================
SrcDir: /glade/scratch/ranfeng/cesm1_2_0/tools/mapping/gen_mapping_files/gen_ESMF_mapping_file
runDir: /glade/scratch/ranfeng/cesm1_2_0/tools/mapping/gen_mapping_files/gen_ESMF_mapping_file
in1: /glade/p/cesm/cseg/mapping/grids/r05_nomask_070925.nc ! default 05x05 degree no-mask
in2: /glade/scratch/ranfeng/cesm1_2_0/tools/mapping/gen_mapping_files/gx1v6plioenh_"date".nc ! gx1 ocn grid
% Usage:
./create_ESMF_map.sh -fsrc /glade/p/cesm/cseg/mapping/grids/r05_nomask_070925.nc -nsrc r05_nomask -fdst ../gx1v6plioenh_"date".nc -ndst gx1v6plioenh -map aave
out: map_r05_nomask_TO_gx1v6plioenh_aave."date".nc ! runoff with no-mask land
! ----------------------
! ----------------------
!! END coupler mapping files
! ----------------------
! ----------------------
! ----------------------
! ----------------------
! BEGIN LAND MAPPING FILES
! ----------------------
input file:
/glade/scratch/ranfeng/cesm1_2_0/models/lnd/clm/tools/shared/mkmapgrids/mksrf_lanwat_plioenh_190801_new.nc
! ----------------------
1. Create SCRIP grid for land
wkdir: /glade/scratch/ranfeng/cesm1_2_0/models/lnd/clm/tools/shared/mkmapgrids/
src: mkscripgrid_plioenh.ncl
in1: mksrf_lanwat_plioenh_190801_new.nc
out: SCRIPclmgrid_plioenh_360x720."date".nc
2. Map the scripclmGRID to the CLM land
wkdir: /glade/scratch/ranfeng/cesm1_2_0/models/lnd/clm/tools/shared/mkmapdata/
runscript: regridbatch_plioenh.sh !! point to mkmapdata_plioenh.sh
src: mkmapdata_plioenh.sh !! point to SCRIPgrid_plioenh_360x720."date".nc
in1: SCRIPclmgrid_plioenh_360x720."date".nc
out: map_0.5x0.5_plioenh_to_0.9x1.25_nomask_aave_da_c"date".nc
usage: ./regridbatch_plioenh.sh
! ===============================