Changeset 3686 for TOOLS/MOSAIX/CreateRestartAtm4Oasis.bash
- Timestamp:
- 03/23/18 10:55:23 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/MOSAIX/CreateRestartAtm4Oasis.bash
r3665 r3686 100 100 ## Extract variables 101 101 ## =========================================================================== 102 ncks --overwrite --fl_fmt=${FL_FMT} --history - d time_counter,0,0 -vlon,lat,sols,soll,fract_oce,fract_sic,precip,snow,evap_sic,evap_oce,wind10m,taux_oce,tauy_oce,taux_sic,tauy_sic ${AtmFile} flxat_fields.nc103 ncwa --overwrite --fl_fmt=${FL_FMT} --history - atime_counter flxat_fields.nc flxat_fields_notime.nc # remove time dimension102 ncks --overwrite --fl_fmt=${FL_FMT} --history --dimension time_counter,0,0 --variable lon,lat,sols,soll,fract_oce,fract_sic,precip,snow,evap_sic,evap_oce,wind10m,taux_oce,tauy_oce,taux_sic,tauy_sic ${AtmFile} flxat_fields.nc 103 ncwa --overwrite --fl_fmt=${FL_FMT} --history --average time_counter flxat_fields.nc flxat_fields_notime.nc # remove time dimension 104 104 ncatted --history --attribute history,global,d,c,"" flxat_fields_notime.nc # cleaning of history attributes 105 105 … … 114 114 ico_nbp=$( echo "sqrt(($dim_cell-2)/10)+1" | bc -l | sed 's/\..*//' ) 115 115 ATM=ICO${ico_nbp} 116 ncrename --history - dcell,y flxat_fields_notime.nc116 ncrename --history --dimension cell,y flxat_fields_notime.nc 117 117 cat <<EOF > add_dim.nco 118 118 defdim("x",1) ; … … 133 133 tauy_sic [y,x] = tauy_sic ; 134 134 EOF 135 ncap2 --history --overwrite --fl_fmt=${FL_FMT} - Sadd_dim.nco flxat_fields_notime.nc tmp_flxat_fields_notime.nc135 ncap2 --history --overwrite --fl_fmt=${FL_FMT} --script-file add_dim.nco flxat_fields_notime.nc tmp_flxat_fields_notime.nc 136 136 mv tmp_flxat_fields_notime.nc flxat_fields_notime.nc 137 137 … … 147 147 dim_lat=$(ncdump -h flxat_fields_notime.nc | grep "lat *=" | awk '{print $3}' ) 148 148 dim_lon=$(ncdump -h flxat_fields_notime.nc | grep "lon *=" | awk '{print $3}' ) 149 ncrename --history - dlon,x flxat_fields_notime.nc150 ncrename --history - dlat,y flxat_fields_notime.nc149 ncrename --history --dimension lon,x flxat_fields_notime.nc 150 ncrename --history --dimension lat,y flxat_fields_notime.nc 151 151 cat <<EOF > add_dim.nco 152 152 lon[y,x] = lon ; 153 153 lat[y,x] = lat ; 154 154 EOF 155 ncap2 --history --overwrite --fl_fmt=${FL_FMT} - Sadd_dim.nco flxat_fields_notime.nc tmp_flxat_fields_notime.nc155 ncap2 --history --overwrite --fl_fmt=${FL_FMT} --script-file add_dim.nco flxat_fields_notime.nc tmp_flxat_fields_notime.nc 156 156 mv tmp_flxat_fields_notime.nc flxat_fields_notime.nc 157 157 (( dim_lat = dim_lat - 1 )) … … 216 216 // 217 217 EOF 218 ncap2 --overwrite --fl_fmt=${FL_FMT} - h -Screate_flxat.nco flxat_fields_notime.nc tmp_flxat.nc218 ncap2 --overwrite --fl_fmt=${FL_FMT} --history --script-file create_flxat.nco flxat_fields_notime.nc tmp_flxat.nc 219 219 220 ncks --fl_fmt=${FL_FMT} --overwrite - h -vlon,lat tmp_flxat.nc flxat.nc221 [[ ${IsUnstructured} = yes ]] && ncks --fl_fmt=${FL_FMT} -- append -vbounds_lon,bounds_lat tmp_flxat.nc flxat.nc222 ncks --fl_fmt=${FL_FMT} --append -h -vCOTAUXXU,COTAUYYU,COTAUZZU,COTAUXXV,COTAUYYV,COTAUZZV,COTOTRAI,COTOTSNO,COTOTEVA,COICEVAP,COQSRMIX,COQNSMIX,COSHFICE,CONSFICE,CODFLXDT,COCALVIN,COLIQRUN,COWINDSP,COTAUMOD tmp_flxat.nc flxat.nc220 ncks --fl_fmt=${FL_FMT} --overwrite --history --variable lon,lat tmp_flxat.nc flxat.nc 221 [[ ${IsUnstructured} = yes ]] && ncks --fl_fmt=${FL_FMT} --history --append --variable bounds_lon,bounds_lat tmp_flxat.nc flxat.nc 222 ncks --fl_fmt=${FL_FMT} --append --history --variable COTAUXXU,COTAUYYU,COTAUZZU,COTAUXXV,COTAUYYV,COTAUZZV,COTOTRAI,COTOTSNO,COTOTEVA,COICEVAP,COQSRMIX,COQNSMIX,COSHFICE,CONSFICE,CODFLXDT,COCALVIN,COLIQRUN,COWINDSP,COTAUMOD tmp_flxat.nc flxat.nc 223 223 224 224 ## … … 262 262 ## =========================================================================== 263 263 mv flxat.nc flxat_${ATM}_maskFrom_${OCE}.nc 264 ncks - vCOCALVIN flxat_${ATM}_maskFrom_${OCE}.nc icbrg_${ATM}_maskFrom_${OCE}.nc265 ncks - vCOCALVIN flxat_${ATM}_maskFrom_${OCE}.nc icshf_${ATM}_maskFrom_${OCE}.nc264 ncks --history --variable COCALVIN flxat_${ATM}_maskFrom_${OCE}.nc icbrg_${ATM}_maskFrom_${OCE}.nc 265 ncks --history --variable COCALVIN flxat_${ATM}_maskFrom_${OCE}.nc icshf_${ATM}_maskFrom_${OCE}.nc 266 266 267 267 ##
Note: See TracChangeset
for help on using the changeset viewer.