- Timestamp:
- 06/12/18 17:08:05 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/MOSAIX/CreateWeightsMask.bash
r3901 r3912 147 147 # 148 148 # Creates OCEAN C grid : redundant point removed to compute proper integrals # A passer dans CreateWeights 149 # ---------------------------------------------------------------------------- 149 # -------------------------------------------------------------------------------------------------------- 150 150 cat <<EOF >add_c_grid.nco 151 151 nav_lon_grid_C = nav_lon_grid_T ; … … 153 153 bounds_lon_grid_C = bounds_lon_grid_T ; 154 154 bounds_lat_grid_C = bounds_lat_grid_T ; 155 mask_C = maskutil_T ; 155 156 area_grid_C = area_grid_T ; 156 mask_C = maskutil_T ;157 157 EOF 158 158 159 159 ncap2 --overwrite --history --script-file add_c_grid.nco ${OCE}_coordinates_mask.nc tmp_${OCE}_coordinates_mask.nc 160 ncks --overwrite --variable nav_lon_grid_C,nav_lat_grid_C,bounds_lon_grid_C,bounds_lat_grid_C,area_grid_C,mask_C tmp_${OCE}_coordinates_mask.nc C_${OCE}_coordinates_mask.nc 161 rm tmp_${OCE}_coordinates_mask_${FMT_OASIS}.nc 160 ncks --overwrite --variable nav_lon_grid_C,nav_lat_grid_C tmp_${OCE}_coordinates_mask.nc C_${OCE}_coordinates_mask.nc 161 ncks --append --variable bounds_lon_grid_C,bounds_lat_grid_C tmp_${OCE}_coordinates_mask.nc C_${OCE}_coordinates_mask.nc 162 #ncks --append --variable mask_C tmp_${OCE}_coordinates_mask.nc C_${OCE}_coordinates_mask.nc 163 ncks --append --variable area_grid_C tmp_${OCE}_coordinates_mask.nc C_${OCE}_coordinates_mask.nc 164 162 165 ncrename --dimension x_grid_T,x_grid_C C_${OCE}_coordinates_mask.nc 163 166 ncrename --dimension y_grid_T,y_grid_C C_${OCE}_coordinates_mask.nc … … 166 169 rm C_${OCE}_coordinates_mask.nc 167 170 168 ncks --overwrite --fl_fmt=${FMT_OASIS} --history {OCE}_coordinates_mask.nc ${OCE}_coordinates_mask_${FMT_OASIS}.nc171 ncks --overwrite --fl_fmt=${FMT_OASIS} --history ${OCE}_coordinates_mask.nc ${OCE}_coordinates_mask_${FMT_OASIS}.nc 169 172 170 173 ls -al
Note: See TracChangeset
for help on using the changeset viewer.