Changeset 3686 for TOOLS/MOSAIX/CreateRestartOce4Oasis.bash
- Timestamp:
- 03/23/18 10:55:23 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/MOSAIX/CreateRestartOce4Oasis.bash
r3665 r3686 104 104 ## Extract variables 105 105 ## =========================================================================== 106 ncks --overwrite --fl_fmt=${FL_FMT} --history -d time_counter,0,0 - v${IceVar} ${IceFile} sstoce_fields.nc107 ncks --overwrite --fl_fmt=${FL_FMT} --history -d time_counter,0,0 - vtos ${OceFile} oce_fields.nc106 ncks --overwrite --fl_fmt=${FL_FMT} --history -d time_counter,0,0 --variable ${IceVar} ${IceFile} sstoce_fields.nc 107 ncks --overwrite --fl_fmt=${FL_FMT} --history -d time_counter,0,0 --variable tos ${OceFile} oce_fields.nc 108 108 ncks --append --fl_fmt=${FL_FMT} --history oce_fields.nc sstoce_fields.nc 109 ncwa --overwrite --fl_fmt=${FL_FMT} --history - atime_counter sstoce_fields.nc sstoce_fields_notime.nc # Remove time dimension109 ncwa --overwrite --fl_fmt=${FL_FMT} --history --average time_counter sstoce_fields.nc sstoce_fields_notime.nc # Remove time dimension 110 110 ncatted --history --attribute history,global,d,c,"" sstoce_fields_notime.nc # Clean attributes 111 111 … … 126 126 127 127 cat <<EOF > create_sstoce.nco 128 OIceFr ac= double ( ${IceVar}(:,:) ) ;128 OIceFrc = double ( ${IceVar}(:,:) ) ; 129 129 //tos.simple_fill_miss(tos) ; 130 O_SSTSST[y,x] = double ( (tos (:,:) + 273.15d) * (1.0d-OIceFr ac) ) ;131 //O_AlbIce[y,x] = double ( ialb (:,:) * OIceFr ac(:,:) ) ;132 //O_TepIce[y,x] = double ( (tsice (:,:) + 273.15d) * OIceFr ac(:,:) ) ;133 O_AlbIce[y,x] = double ( 0.65d * OIceFr ac(:,:) ) ;134 O_TepIce[y,x] = double ( (-20.0d + 273.15d) * OIceFr ac(:,:) ) ;130 O_SSTSST[y,x] = double ( (tos (:,:) + 273.15d) * (1.0d-OIceFrc) ) ; 131 //O_AlbIce[y,x] = double ( ialb (:,:) * OIceFrc(:,:) ) ; 132 //O_TepIce[y,x] = double ( (tsice (:,:) + 273.15d) * OIceFrc(:,:) ) ; 133 O_AlbIce[y,x] = double ( 0.65d * OIceFrc(:,:) ) ; 134 O_TepIce[y,x] = double ( (-20.0d + 273.15d) * OIceFrc(:,:) ) ; 135 135 O_OCurx1[y,x] = 0.0d ; 136 136 O_OCury1[y,x] = 0.0d ; … … 138 138 EOF 139 139 140 ncap2 --overwrite --fl_fmt=${FL_FMT} --history - Screate_sstoce.nco sstoce_fields_notime.nc tmp_sstoc.nc140 ncap2 --overwrite --fl_fmt=${FL_FMT} --history --script-file create_sstoce.nco sstoce_fields_notime.nc tmp_sstoc.nc 141 141 142 ncks --fl_fmt=${FL_FMT} --overwrite --history - v OIceFrac,O_SSTSST,O_AlbIce,O_TepIce,O_OCurx1,O_OCury1,O_OCurz1 tmp_sstoc.nc sstoc.nc142 ncks --fl_fmt=${FL_FMT} --overwrite --history --variable OIceFrc,O_SSTSST,O_AlbIce,O_TepIce,O_OCurx1,O_OCury1,O_OCurz1 tmp_sstoc.nc sstoc.nc 143 143 144 144 ncatted --history --attribute comment,O_SSTSST,o,c,"SST weighted by fraction of open ocean" sstoc.nc
Note: See TracChangeset
for help on using the changeset viewer.