- Timestamp:
- 09/18/20 17:02:09 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/CPLRESTART/CreateRestartAtm4Oasis.bash
r5155 r5157 112 112 IsUnstructured=yes 113 113 dim_cell=$(ncdump -h flxat_fields_notime.nc |& grep "cell *=" | awk '{print $3}' ) # Get nominal DYNAMICO resolution (nbp parameter) 114 ico_nbp=$( echo "sqrt(($dim_cell-2)/10) +1" | bc -l | sed 's/\..*//' )114 ico_nbp=$( echo "sqrt(($dim_cell-2)/10)" | bc -l | sed 's/\..*//' ) 115 115 ATM=ICO${ico_nbp} 116 116 ncrename --history --dimension cell,y flxat_fields_notime.nc … … 188 188 COTOTSNO[y,x] = double(snow) ; // Solid precipitation 189 189 COTOTEVA[y,x] = double(evap_oce*fract_oce_norm + evap_sic*fract_sic_norm) ; 190 COICEVAP[y,x] = double(evap_sic (:,:)); // Evaporation on sea ice191 COQSRMIX[y,x] = double(sols (:,:)); // Heat flux short wave192 COQNSMIX[y,x] = double(soll (:,:)); // Heat flux minus short wave193 COSHFICE[y,x] = double(sols (:,:)); // Heat flux short wave over sea ice194 CONSFICE[y,x] = double(soll (:,:)); // Heat flux minus short wave over sea ice190 COICEVAP[y,x] = double(evap_sic) ; // Evaporation on sea ice 191 COQSRMIX[y,x] = double(sols) ; // Heat flux short wave 192 COQNSMIX[y,x] = double(soll) ; // Heat flux minus short wave 193 COSHFICE[y,x] = double(sols) ; // Heat flux short wave over sea ice 194 CONSFICE[y,x] = double(soll) ; // Heat flux minus short wave over sea ice 195 195 CODFLXDT[y,x] = -20.0d ; // W/m2 - dQ/dt 196 196 COCALVIN[y,x] = 0.0d ; // Calving of icebergs, solid 197 197 COLIQRUN[y,x] = 0.0d ; // River run-off , liquid 198 COWINDSP[y,x] = double( wind10m (:,:) ); // Wind speed at 10m high198 COWINDSP[y,x] = double( wind10m ) ; // Wind speed at 10m high 199 199 COTAUMOD[y,x] = 0.0d ; // Wind stress modulus 200 200 // Wind stress … … 204 204 // Wind stress, from east/north components to geocentric 205 205 *rpi = acos (-1.0d) ; *rad = rpi / 180.0d ; 206 COTAUXXU[y,x] = double( -tau_x (:,:) * sin(rad * lon(:,:)) - tau_y(:,:) * sin(rad * lat(:,:)) * cos(rad * lon(:,:)) );207 COTAUYYU[y,x] = double( tau_x (:,:) * cos(rad * lon(:,:)) - tau_y(:,:) * sin(rad * lat(:,:)) * sin(rad * lon(:,:)) );208 COTAUZZU[y,x] = double( tau_y (:,:) * cos(rad * lat(:,:)) ) ;206 COTAUXXU[y,x] = double( -tau_x * sin(rad * lon) - tau_y * sin(rad * lat) * cos(rad * lon) ); 207 COTAUYYU[y,x] = double( tau_x * cos(rad * lon) - tau_y * sin(rad * lat) * sin(rad * lon) ); 208 COTAUZZU[y,x] = double( tau_y * cos(rad * lat) ) ; 209 209 // Value at North Pole 210 210 #include "lonlat2xyz.nco" 211 211 // 212 COTAUXXV[y,x] = COTAUXXU (:,:);213 COTAUYYV[y,x] = COTAUYYU (:,:);214 COTAUZZV[y,x] = COTAUZZU (:,:);212 COTAUXXV[y,x] = COTAUXXU ; 213 COTAUYYV[y,x] = COTAUYYU ; 214 COTAUZZV[y,x] = COTAUZZU ; 215 215 // 216 216 EOF
Note: See TracChangeset
for help on using the changeset viewer.