Ignore:
Timestamp:
03/29/18 17:17:16 (3 years ago)
Author:
omamce
Message:

O.M. : compute and use ocean coastal points

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/MOSAIX/CreateWeightsMask.bash

    r3719 r3723  
    111111esac 
    112112 
     113case ${OCE} in 
     114    ( ORCA2.3*         ) OcePerio=4 ;; 
     115    ( ORCA1* | eORCA1* ) OcePerio=6 ;; 
     116esac 
    113117# 
    114118# Format for OASIS files : should be NetCDF3 classic or NetCDF3 64 bits 
     
    117121 
    118122 
    119 cp ${SUBMIT_DIR}/bin/interpol.exe                 . 
    120 cp ${SUBMIT_DIR}/update_xml.py                    . 
     123cp ${SUBMIT_DIR}/bin/interpol.exe    . 
     124cp ${SUBMIT_DIR}/*.py                . 
    121125 
    122126## 
     
    182186 
    183187ncks --alphabetize --history --append --variable OceMask dia_t${oce}_to_t${atm}_1storder_false_mask.nc   ${ATM}_grid_maskFrom_${OCE}.nc 
    184 #rm dia_t${oce}_to_t${atm}_1storder_false_mask.nc 
    185  
    186 ## 
    187 ## Creates mask of coastal ATM point 
     188rm dia_t${oce}_to_t${atm}_1storder_false_mask.nc 
     189 
     190## 
     191## Creates mask of coastal OCE points 
     192## =========================================================================== 
     193python ComputeNemoCoast.py  -n ${OcePerio} -i oce_grid.nc 
     194 
     195## 
     196## Creates mask of coastal ATM points 
    188197## =========================================================================== 
    189198cat <<EOF > coastal.nco 
     
    293302    python update_xml.py -i iodef.xml -n 'context[@id="interpol_read"]/file_definition/file[@id="file_src"]'                         -k name  -v ${ATM}_grid_maskFrom_${OCE} 
    294303    python update_xml.py -i iodef.xml -n 'context[@id="interpol_read"]/file_definition/file[@id="file_src"]/field[@id="mask_src"]'   -k name  -v AtmCoastal 
     304    python update_xml.py -i iodef.xml -n 'context[@id="interpol_read"]/file_definition/file[@id="file_dst"]/field[@id="mask_dst"]'   -k name  -v OceCoastal 
    295305    python update_xml.py -i iodef.xml -n 'context[@id="interpol_run"]/file_definition/file[@id="dia"]'                               -k name  -v dia_c${atm}_to_t${oce}_1storder_${normalize} 
    296306    python update_xml.py -i iodef.xml -n 'context[@id="interpol_run"]/domain_definition/domain[@id="domain_dst"]/interpolate_domain' -k weight_filename -v rmp_c${atm}_to_t${oce}_1storder_${normalize}.nc 
Note: See TracChangeset for help on using the changeset viewer.