-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproc_data
167 lines (112 loc) · 10.9 KB
/
proc_data
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
#!/bin/bash
read -p "Enter year to process: " year
echo "You've chosen "$year""
echo "Processing surface meteorology stream (pa) from "$year"":
# Process LSM
#/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*0101T0000Z_Peninsula_4km_hindcast_pa000.pp -o /data/mac/ellgil82/hindcast/orog.nc -f 0
# Process orography
#/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*0101T0000Z_Peninsula_4km_hindcast_pa000.pp -o /data/mac/ellgil82/hindcast/orog.nc -f 1
echo "Processing u wind"
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pa000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_u_10m.nc -f 2
#echo "Processing v wind"
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pa000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_v_10m.nc -f 3
echo "Processing FF"
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pa000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_FF_10m.nc -f 4
# Process Tair 1.5m
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pa000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_Tair_1p5m.nc -f 5
# Process RH 1.5m
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pa000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_RH_1p5m.nc -f 6
# Process MSLP
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pa000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_MSLP.nc -f 7
# Process Ts
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pa000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_Ts.nc -f 8
# Process BL depth
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pa000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_BL_depth.nc -f 9
# Process SIC
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pa000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_SIC.nc -f 10
# Process sfc P
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pa000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_sfc_P.nc -f 11
# Process max 10 m FF
#/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pa000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_FF_10m_max.nc -f 12
# Process Tmax
#/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pa000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_Tmax.nc -f 13
# Process Tmin
#/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pa000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_Tmin.nc -f 14
echo "Processing cloud stream (pb) from "$year"":
# Process cloud fraction
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pb000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_cl_frac.nc -f 0
# Process total column liquid
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pb000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_total_column_liquid.nc -f 1
# Process total column ice
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pb000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_total_column_ice.nc -f 2
# Process total column vapour
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pb000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_total_column_vapour.nc -f 3
# Process QCF
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pb000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_QCF.nc -f 4
# Process QCL
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pb000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_QCL.nc -f 5
echo "Processing surface energy balance stream (pc) from "$year"":
# Process SWnet
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pc000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_surface_SW_net.nc -f 0
# Process TOA SWin
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pc000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_TOA_incoming_SW.nc -f 1
# Process HS
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pc000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_sensible_heat.nc -f 2
# Process HL
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pc000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_latent_heat.nc -f 3
# Process TOA OSR
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pc000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_TOA_outgoing_SW.nc -f 4
# Process SWdown
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pc000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_surface_SW_down.nc -f 5
# Process LWnet
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pc000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_surface_LW_net.nc -f 6
# Process TOA OLR
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pc000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_TOA_outgoing_LW.nc -f 7
# Process LWdown
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pc000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_surface_LW_down.nc -f 8
echo "Processing surface mass balance stream (pd) from "$year"":
# Process evaporation
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_evaporation_rate.nc -f 0
# Process sublimation
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_sublimation_rate.nc -f 1 &
# Process land mean potential evaporation
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_potential_evaporation_rate.nc -f 2 &
# Process snow melt amnt
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_land_snow_melt_amnt.nc -f 3 &
# Process snow melt flux
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_land_snow_melt_flux.nc -f 4 &
# Process snow melt rate
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_land_snow_melt_rate.nc -f 5 &
# Process surface runoff rate
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_surface_runoff_rate.nc -f 6 &
# Process subsurface runoff rate
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_subsurface_runoff_rate.nc -f 7 &
# Process tiled snow mass balance
#/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_tiled_snow_mass_balance.nc -f 8
# Process tiled snow melt rate
#/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_tiled_snow_melt_rate.nc -f 9
# Process tiled snow refreeze rate
#/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_tiled_snow_refreeze_rate.nc -f 10
# Process tiled snow solid mass change
#/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_tiled_snow_solid_mass_change.nc -f 11
# Process tiled snow liquid mass change
#/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_tiled_snow_liquid_mass_change.nc -f 12
# Process tiled snow net runoff
#/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pd000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_tiled_snow_net_runoff.nc -f 13
echo "Processing profiles stream (pe) from "$year"":
# Process u wind P levs
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pe000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_u_wind_P_levs.nc -f 0 &
# Process v wind P levs
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pe000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_v_wind_P_levs.nc -f 1 &
# Process Tair P levs
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pe000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_Tair_P_levs.nc -f 2 &
# Process heavyside P levs
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pe000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_heavyside_func_P_levs.nc -f 3 &
# Process u wind profile
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pe000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_u_wind_full_profile.nc -f 4 &
# Process v wind profile
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pe000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_v_wind_full_profile.nc -f 5 &
# Process theta profile
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pe000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_theta_full_profile.nc -f 6 &
# Process q profile
/users/toil/bin/conv2nc.tcl -i /data/mac/ellgil82/hindcast/output/"$year"/rerun/*hindcast*_pe000.pp -o /data/mac/ellgil82/hindcast/output/"$year"/rerun/"$year"_q_full_profile.nc -f 7 &