Changeset 5157 for TOOLS


Ignore:
Timestamp:
09/18/20 17:02:09 (4 years ago)
Author:
omamce
Message:

O.M. CreateRestartAtm4Oasis.bash correct problem on dimensions in nco script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/CPLRESTART/CreateRestartAtm4Oasis.bash

    r5155 r5157  
    112112    IsUnstructured=yes 
    113113    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/\..*//' ) 
    115115    ATM=ICO${ico_nbp} 
    116116    ncrename --history --dimension cell,y flxat_fields_notime.nc 
     
    188188COTOTSNO[y,x] = double(snow)           ;  //  Solid precipitation 
    189189COTOTEVA[y,x] = double(evap_oce*fract_oce_norm + evap_sic*fract_sic_norm) ; 
    190 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 
     190COICEVAP[y,x] = double(evap_sic)       ; // Evaporation on sea ice 
     191COQSRMIX[y,x] = double(sols)           ; // Heat flux short wave 
     192COQNSMIX[y,x] = double(soll)           ; // Heat flux minus short wave 
     193COSHFICE[y,x] = double(sols)           ; // Heat flux short wave over sea ice 
     194CONSFICE[y,x] = double(soll)           ; // Heat flux minus short wave over sea ice 
    195195CODFLXDT[y,x] = -20.0d       ; // W/m2 - dQ/dt 
    196196COCALVIN[y,x] =   0.0d       ; // Calving of icebergs, solid 
    197197COLIQRUN[y,x] =   0.0d       ; // River run-off , liquid 
    198 COWINDSP[y,x] = double( wind10m(:,:) ) ; // Wind speed at 10m high 
     198COWINDSP[y,x] = double( wind10m )      ; // Wind speed at 10m high 
    199199COTAUMOD[y,x] =   0.0d                 ; // Wind stress modulus 
    200200// Wind stress 
     
    204204// Wind stress, from east/north components to geocentric 
    205205*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(:,:)) ) ; 
     206COTAUXXU[y,x] = double( -tau_x * sin(rad * lon) - tau_y * sin(rad * lat) * cos(rad * lon) );  
     207COTAUYYU[y,x] = double(  tau_x * cos(rad * lon) - tau_y * sin(rad * lat) * sin(rad * lon) ); 
     208COTAUZZU[y,x] = double(  tau_y * cos(rad * lat) ) ; 
    209209// Value at North Pole 
    210210#include "lonlat2xyz.nco" 
    211211// 
    212 COTAUXXV[y,x] = COTAUXXU(:,:) ; 
    213 COTAUYYV[y,x] = COTAUYYU(:,:) ; 
    214 COTAUZZV[y,x] = COTAUZZU(:,:) ; 
     212COTAUXXV[y,x] = COTAUXXU ; 
     213COTAUYYV[y,x] = COTAUYYU ; 
     214COTAUZZV[y,x] = COTAUZZU ; 
    215215// 
    216216EOF 
Note: See TracChangeset for help on using the changeset viewer.