- Timestamp:
- 04/05/23 16:37:45 (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/MOSAIX/CreateWeightsMask.bash
r6190 r6360 6 6 #MSUB -T 7200 # Time limit (seconds) 7 7 #MSUB -Q normal 8 #MSUB -q skylake8 #MSUB -q rome 9 9 #MSUB -p devcmip6 10 10 #MSUB -m work,store,scratch … … 82 82 echo ${Titre}"Defines model"${Norm} 83 83 # ================================= 84 CplModel=ORCA2.3xLMD969584 #CplModel=ORCA2.3xLMD9695 85 85 #CplModel=ORCA2.3xICO30 86 86 #CplModel=ORCA2.3xICO40 … … 93 93 #CplModel=eORCA1.2xICO450 94 94 #CplModel=eORCA025.1xLMD256256 95 CplModel=eORCA1.4.2xICO80 95 96 96 97 #Version="v0" ; Comment="Fully tested in IPSLCM6 eORCA1.2 x LMD 144x142" 97 98 #Version="v1" ; Comment="Fully tested in IPSLCM6 eORCA1.2 x LMD 144x142" 98 99 #Version="NoSearchRadius" ; Comment="For testing new routing" 99 Version="v 2" ; Comment="Correction of ORCA masks to have a perfect conservation of run-off"100 Version="v3" ; Comment="Correction of ORCA masks to have a perfect conservation of run-off" 100 101 101 102 # If available, get model name from job name … … 291 292 module purge 292 293 source ${SUBMIT_DIR}/arch.env 293 module load nco /4.9.1294 module load cdo /1.9.5294 module load nco #/4.9.1 295 module load cdo #/1.9.5 295 296 module load python3 296 297 module load datadir/igcmg … … 441 442 ## =========================================================================== 442 443 cp dia_t${oce}_to_t${atm}_${FullName}.nc dia_t${oce}_to_t${atm}_${FullName}_mask.nc 443 ncks -- alphabetize--history --overwrite --variable OceFrac dia_t${oce}_to_t${atm}_${FullName}_mask.nc ${ATM}_grid_maskFrom_${OCE}.nc444 ncatted --history --attribute name,global,m,c,"${ATM}_grid_maskFrom_${OCE}.nc"${ATM}_grid_maskFrom_${OCE}.nc444 ncks --no_abc --history --overwrite --variable OceFrac dia_t${oce}_to_t${atm}_${FullName}_mask.nc ${ATM}_grid_maskFrom_${OCE}.nc 445 ncatted --history --attribute ,global,d,c, ${ATM}_grid_maskFrom_${OCE}.nc 445 446 446 447 cat <<EOF > creation_masque.nco … … 484 485 fi 485 486 486 ncks --history -- alphabetize--append --variable aire atm_grid.nc ${ATM}_grid_maskFrom_${OCE}.nc487 ncks --history --no_abc --append --variable aire atm_grid.nc ${ATM}_grid_maskFrom_${OCE}.nc 487 488 ncatted --history --attribute units,aire,m,c,"m^2" ${ATM}_grid_maskFrom_${OCE}.nc 488 489 489 [[ ${atm} = *ico* ]] && ncks -- alphabetize--history --append --variable bounds_lon,bounds_lat atm_grid.nc ${ATM}_grid_maskFrom_${OCE}.nc490 [[ ${atm} = *ico* ]] && ncks --no_abc --history --append --variable bounds_lon,bounds_lat atm_grid.nc ${ATM}_grid_maskFrom_${OCE}.nc 490 491 491 492 ## … … 627 628 # Duplicate with no global attribute to avoid erasing attributes in other files 628 629 cp ${ATM}_grid_maskFrom_${OCE}.nc ${ATM}_grid_maskFrom_${OCE}_noglobal.nc 629 ncatted --history --attribute ,global,d,c, ${ATM}_grid_maskFrom_${OCE}_noglobal.nc630 ncatted --history --attribute ,global,d,c, ${ATM}_grid_maskFrom_${OCE}_noglobal.nc 630 631 631 632 ## … … 747 748 if [[ ${o_to_a} = true ]] ; then 748 749 ncap2 --history --append --script-file add_varatm_$(basename ${rmpFile} .nc)_o_to_a.nco ${ATM}_grid_maskFrom_${OCE}_noglobal.nc ${rmpFile} 749 ncks -- alphabetize--history --overwrite --variable src_address,dst_address,remap_matrix,src_grid_dims,src_grid_center_lat,src_grid_center_lon,src_grid_corner_lon,src_grid_corner_lat,src_grid_area,src_grid_imask,dst_grid_dims,dst_grid_center_lat,dst_grid_center_lon,dst_grid_corner_lon,dst_grid_corner_lat,dst_grid_area,dst_grid_imask ${rmpFile} rmp_tmp.nc750 ncks --no_abc --history --overwrite --variable src_address,dst_address,remap_matrix,src_grid_dims,src_grid_center_lat,src_grid_center_lon,src_grid_corner_lon,src_grid_corner_lat,src_grid_area,src_grid_imask,dst_grid_dims,dst_grid_center_lat,dst_grid_center_lon,dst_grid_corner_lon,dst_grid_corner_lat,dst_grid_area,dst_grid_imask ${rmpFile} rmp_tmp.nc 750 751 mv rmp_tmp.nc ${rmpFile} 751 752 fi … … 755 756 if [[ ${a_to_o} = true ]] ; then 756 757 ncap2 --history --append --script-file add_varatm_$(basename ${rmpFile} .nc)_a_to_o.nco ${ATM}_grid_maskFrom_${OCE}_noglobal.nc ${rmpFile} 757 ncks -- alphabetize--history --overwrite --variable src_address,dst_address,remap_matrix,src_grid_dims,src_grid_center_lat,src_grid_center_lon,src_grid_corner_lon,src_grid_corner_lat,src_grid_area,src_grid_imask,dst_grid_dims,dst_grid_center_lat,dst_grid_center_lon,dst_grid_corner_lon,dst_grid_corner_lat,dst_grid_area,dst_grid_imask ${rmpFile} rmp_tmp.nc758 ncks --no_abc --history --overwrite --variable src_address,dst_address,remap_matrix,src_grid_dims,src_grid_center_lat,src_grid_center_lon,src_grid_corner_lon,src_grid_corner_lat,src_grid_area,src_grid_imask,dst_grid_dims,dst_grid_center_lat,dst_grid_center_lon,dst_grid_corner_lon,dst_grid_corner_lat,dst_grid_area,dst_grid_imask ${rmpFile} rmp_tmp.nc 758 759 mv rmp_tmp.nc ${rmpFile} 759 760 fi … … 791 792 if [[ ${o_to_a} = true ]] ; then 792 793 ncap2 --history --append --script-file add_varatm_$(basename ${rmpFile} .nc)_o_to_a.nco ${ATM}_grid_maskFrom_${OCE}_noglobal.nc ${rmpFile} 793 ncks -- alphabetize--history --overwrite --variable src_address,dst_address,remap_matrix,src_grid_dims,src_grid_center_lat,src_grid_center_lon,src_grid_corner_lon,src_grid_corner_lat,src_grid_area,src_grid_imask,dst_grid_dims,dst_grid_center_lat,dst_grid_center_lon,dst_grid_area,dst_grid_imask ${rmpFile} rmp_tmp.nc794 ncks --no_abc --history --overwrite --variable src_address,dst_address,remap_matrix,src_grid_dims,src_grid_center_lat,src_grid_center_lon,src_grid_corner_lon,src_grid_corner_lat,src_grid_area,src_grid_imask,dst_grid_dims,dst_grid_center_lat,dst_grid_center_lon,dst_grid_area,dst_grid_imask ${rmpFile} rmp_tmp.nc 794 795 mv rmp_tmp.nc ${rmpFile} 795 796 fi … … 799 800 if [[ ${a_to_o} = true ]] ; then 800 801 ncap2 --history --append --script-file add_varatm_$(basename ${rmpFile} .nc)_a_to_o.nco ${ATM}_grid_maskFrom_${OCE}_noglobal.nc ${rmpFile} 801 ncks -- alphabetize--history --overwrite --variable src_address,dst_address,remap_matrix,src_grid_dims,src_grid_center_lat,src_grid_center_lon,src_grid_area,src_grid_imask,dst_grid_dims,dst_grid_center_lat,dst_grid_center_lon,dst_grid_corner_lon,dst_grid_corner_lat,dst_grid_area,dst_grid_imask ${rmpFile} rmp_tmp.nc802 ncks --no_abc --history --overwrite --variable src_address,dst_address,remap_matrix,src_grid_dims,src_grid_center_lat,src_grid_center_lon,src_grid_area,src_grid_imask,dst_grid_dims,dst_grid_center_lat,dst_grid_center_lon,dst_grid_corner_lon,dst_grid_corner_lat,dst_grid_area,dst_grid_imask ${rmpFile} rmp_tmp.nc 802 803 mv rmp_tmp.nc ${rmpFile} 803 804 fi … … 845 846 ;; 846 847 847 ( eORCA1.2 | eORCA1.4 ) 848 cp ${R_IN}/OCE/NEMO/${OCE}/OPA/runoff-icb_DaiTrenberth_Depoorter_eORCA1_JD.nc . 848 ( eORCA1.2 | eORCA1.4 | eORCA1.4.2 ) 849 850 case ${OCE} in 851 ( eORCA1.2 | eORCA1.4 ) 852 cp ${R_IN}/OCE/NEMO/${OCE}/OPA/runoff-icb_DaiTrenberth_Depoorter_eORCA1_JD.nc . ;; 853 ( eORCA1.4.2 ) 854 cp ${R_IN}/OCE/NEMO/${OCE}/OPA/eORCA1.4.2_runoff-icb_DaiTrenberth_Depoorter.nc runoff-icb_DaiTrenberth_Depoorter_eORCA1_JD.nc ;; 855 esac 849 856 850 857 ${PyRun} python3 -u CalvingWeights.py --output=rmp_t${atm}_to_t${oce}_calving_nosouth.nc --fmt=${FMT_XIOS} \
Note: See TracChangeset
for help on using the changeset viewer.