Changeset 14 for trunk


Ignore:
Timestamp:
03/16/14 21:15:57 (10 years ago)
Author:
pinsard
Message:

fix thanks to coding rules; utf8

Location:
trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/adm/guides/contact.rst

    r12 r14  
    2222======= 
    2323 
    24 Marina Lévy pour la science 
     24Marina Lévy pour la science 
    2525 
    26 Françoise Pinsard pour la gestion du projet sous trac et svn 
     26Françoise Pinsard pour la gestion du projet sous trac et svn 
    2727 
    28 Marina Lévy, Françoise Pinsard et Anne-Charlotte Peter pour les développments 
     28Marina Lévy, Françoise Pinsard et Anne-Charlotte Peter pour les développments 
  • trunk/adm/guides/data_content.rst

    r13 r14  
    2424----------- 
    2525 
    26 résolution temporelle 
     26résolution temporelle 
    2727   +todo+ 
    2828 
     
    3030   +tooo+ 
    3131 
    32 résolution spatiale 
     32résolution spatiale 
    3333   +todo+ 
    3434 
     
    4141~~~~~~~~~~~~~~~ 
    4242 
    43 given by Marina Lévy 
     43given by Marina Lévy 
    4444 
    4545 - :file:`mld_prieur_P1L1.prn` 
     
    8888~~~~~~~~~~~~ 
    8989 
    90 résolution temporelle 
     90résolution temporelle 
    9191  +todo+ 
    9292 
     
    9797:caution: wrong time axe. first date is 20000927. 
    9898 
    99 résolution spatiale 
     99résolution spatiale 
    100100  +todo+ 
    101101 
     
    108108~~~~~~~~~~~~~~~ 
    109109 
    110 given by Marina Lévy 
     110given by Marina Lévy 
    111111 
    112112 - :file:`eddy_mld.nc` 
     
    137137-------------------------- 
    138138 
    139 given by Marina Lévy (using copy/paste of POMME website)++ 
     139given by Marina Lévy (using copy/paste of POMME website)++ 
    140140 
    141141 - :file:`sta.P1L1.asc` 
  • trunk/adm/guides/glossary.rst

    r13 r14  
    2525 
    2626   POMME 
    27       Programme Océan Multidisciplinaire Méso Échelle 
     27      Programme Océan Multidisciplinaire Méso Échelle 
    2828 
    2929   MLD 
  • trunk/adm/index.rst

    r13 r14  
    1717==================== 
    1818 
    19 Comparaison données in-situ/modèle de hauteurs de couche de mélange 
     19Comparaison données in-situ/modÚle de hauteurs de couche de mélange 
    2020 
    2121.. toctree:: 
  • trunk/src/fig_mld.pro

    r13 r14  
    1313; - read mld insitu data and metadata 
    1414; - compute daily mean insitu mld data 
    15 ; - compute daily mean modeled data in boxes of 1/2° and 1° around insitu 
     15; - compute daily mean modeled data in boxes of 1/2° and 1° around insitu 
    1616;   measurement location 
    1717; - plot +todo+ 
     
    2727;   * insitu daily mean of MLD critere 10 
    2828;   * insitu daily mean of MLD critere melch 
    29 ;   * model 1 mean of MLD in the box latidude+-0.5°,longitude+-.5° 
    30 ;   * model 2 mean of MLD in the box latidude+-0.5°,longitude+-.5° 
    31 ;   * model 1 stddev of MLD in the box latidude+-0.5°,longitude+-.5° 
    32 ;   * model 2 stddev of MLD in the box latidude+-0.5°,longitude+-.5° 
    33 ;   * model 1 mean of MLD in the box latidude+-1°,longitude+1° 
    34 ;   * model 2 mean of MLD in the box latidude+-1°,longitude+1° 
    35 ;   * model 1 stddev of MLD in the box latidude+-1°,longitude+1° 
    36 ;   * model 2 stddev of MLD in the box latidude+-1°,longitude+1° 
     29;   * model 1 mean of MLD in the box latidude+-0.5°,longitude+-.5° 
     30;   * model 2 mean of MLD in the box latidude+-0.5°,longitude+-.5° 
     31;   * model 1 stddev of MLD in the box latidude+-0.5°,longitude+-.5° 
     32;   * model 2 stddev of MLD in the box latidude+-0.5°,longitude+-.5° 
     33;   * model 1 mean of MLD in the box latidude+-1°,longitude+1° 
     34;   * model 2 mean of MLD in the box latidude+-1°,longitude+1° 
     35;   * model 1 stddev of MLD in the box latidude+-1°,longitude+1° 
     36;   * model 2 stddev of MLD in the box latidude+-1°,longitude+1° 
    3737; 
    3838; .. only:: man 
     
    133133; superposer plot latitude et longitude 
    134134; 
    135 ; mettre les labels et le titre des Y du plot longitude à droite 
     135; mettre les labels et le titre des Y du plot longitude à droite 
    136136; see x recipe http://www.dfanning.com/graphics_tips/xattop.html 
    137137; 
     
    194194    data_insitu = join_dmean_asc(data_dmean,data_asc) 
    195195    ; 
    196     ; temps des données insitu 
     196    ; temps des données insitu 
    197197    time_insitu = data_insitu.doy 
    198198    ; 
     
    312312    fullfilename = project_od_env+'fig_mld.txt' 
    313313    OPENW, lun, fullfilename, /GET_LUN 
    314     ;++ hanlde error 
     314    ;++ handle error 
    315315    ; 
    316316    header='jt xlon xlat mld1 mld2 mld3 mld4 mld5 mymldm_0 mymldr_0 myvarm_0 myvarr_0 mymldm_1 mymldr_1 myvarm_1 myvarr_1' 
  • trunk/src/file_asc_long2mem.pro

    r13 r14  
    2626;    result = file_asc_long2mem(filename) 
    2727; 
    28 ; impression de contrôle : structure, 1re station, toutes les stations : 
     28; impression de contrÃŽle : structure, 1re station, toutes les stations : 
    2929; 
    3030; .. code-block:: idl 
     
    124124    ; open file 
    125125    OPENR, lun, filename, /GET_LUN 
    126     ;++ hanlde error 
     126    ;++ handle error 
    127127    ; 
    128128    ; read header 
  • trunk/src/file_asc_p1l1_to_mem.pro

    r13 r14  
    2626;    result = file_asc_p1l1_to_mem(filename) 
    2727; 
    28 ; impression de contrôle : 1re station, toutes les stations : 
     28; impression de contrÃŽle : 1re station, toutes les stations : 
    2929; 
    3030; .. code-block:: idl 
     
    114114    ; open file 
    115115    OPENR, lun, filename, /GET_LUN 
    116     ;++ hanlde error 
     116    ;++ handle error 
    117117    ; 
    118118    ; read header 
  • trunk/src/file_asc_p2l1_to_mem.pro

    r13 r14  
    124124    ; open file 
    125125    OPENR, lun, filename, /GET_LUN 
    126     ;++ hanlde error 
     126    ;++ handle error 
    127127    ; 
    128128    ; read header 
  • trunk/src/file_asc_p2l2_to_mem.pro

    r13 r14  
    2727;    result = file_asc_p2l2_to_mem(filename) 
    2828; 
    29 ; impression de contrôle : 1re station, toutes les stations: 
     29; impression de contrÃŽle : 1re station, toutes les stations: 
    3030; 
    3131; .. code-block:: idl 
     
    121121    ; open file 
    122122    OPENR, lun, filename, /GET_LUN 
    123     ;++ hanlde error 
     123    ;++ handle error 
    124124    ; 
    125125    ; read header 
  • trunk/src/file_prn2mem.pro

    r13 r14  
    1010; 
    1111; nb : mld float to handle NaN in file 
    12 ; ++ NaN dans les colonnes entier transformés en 0 par la lecture 
     12; ++ NaN dans les colonnes entier transformés en 0 par la lecture 
    1313; 
    1414;    :param filename: filename to be read 
     
    130130    ; open file 
    131131    OPENR, lun, filename, /GET_LUN 
    132     ;++ hanlde error 
     132    ;++ handle error 
    133133    ; 
    134134    ; read header 
  • trunk/src/file_prn_to_mem.pro

    r13 r14  
    4343; learn how to concatenate array of structure (and avoid loop) 
    4444; 
    45 ; réparer lien sphinx à fig_mld 
     45; réparer lien sphinx à fig_mld 
    4646; 
    4747; :history: 
  • trunk/src/init_pom.pro

    r13 r14  
    88; 
    99; Define : 
    10 ;  - ++ 
    11 ;  - ++ 
    12 ;  - ++ 
     10; 
     11; - ++ 
     12; - ++ 
     13; - ++ 
    1314; 
    1415; Read :file:`${PROJECT_ID}/meshmak.nc`. 
     
    4041; SAXO sans compatibility (common) 
    4142; 
    42 ; réparer le lien sphinx sur common.pro 
     43; réparer le lien sphinx sur common.pro 
    4344; 
    4445; conflict with project_init.pro and init.pro 
  • trunk/src/join_dmean_asc.pro

    r13 r14  
    6868; check doy in prn files vs computed julianday 
    6969; now (20101124) differences due to either bad calculation here or bad 
    70 ; doy calculion in .prn file or difference choice between begin, end, 
     70; doy calculation in .prn file or difference choice between begin, end, 
    7171; middle time. 
    7272; 
  • trunk/src/project_profile.sh

    r13 r14  
    104104# ++ besoin de posix 
    105105# 
    106 # ++ pas de MANPATH defini par défaut sur cratos et cerbere 
     106# ++ pas de MANPATH defini par défaut sur cratos et cerbere 
    107107# 
    108108# EVOLUTIONS 
     
    140140usage=" Usage : ${command} -d directory -i indir -o outdir -t tempdir -s saxo_dir" 
    141141# 
    142 while [ ${#} -gt 0 ] 
    143 do 
    144     case ${1} in 
    145         -d) 
    146             # directory for application choosen by user 
    147             # (see svn checkout command used) 
    148             directory=${2} 
    149             shift 
    150         ;; 
    151         -i) 
    152             # directory for inputs choosen by user 
    153             indir=${2} 
    154             shift 
    155         ;; 
    156         -o) 
    157             # directory for outputs choosen by user 
    158             outdir=${2} 
    159             shift 
    160         ;; 
    161         -t) 
    162             # directory for temporary outputs choosen by user 
    163             tempdir=${2} 
    164             shift 
    165         ;; 
    166         -s) 
    167             saxo_dir=${2} 
    168             shift 
    169         ;; 
    170         *) 
    171             # other choice 
    172             echo "eee : unknown option ${1}" 
    173             echo "${usage}" 
    174             # nb : no exit because this file should be launched 
    175             # by login process 
    176         ;; 
    177     esac 
    178     # next flag 
    179     shift 
    180 done 
    181 unset usage 
    182 # 
    183 # check for ${directory} 
    184 if [ ! -d ${directory} ] 
     142pb=0 
     143# 
     144minargcount=10 
     145maxargcount=10 
     146narg=${#} 
     147# 
     148if [ ${narg} -lt ${minargcount} ] 
    185149then 
    186     echo " eee : ${directory} not found" 
     150    echo "eee : not enought arguments (${narg} vs ${minargcount})" 
     151    echo "${usage}" 
    187152    # nb : no exit because this file should be launched by login process 
     153    pb=1 
    188154fi 
    189 # 
    190 # check for permission on directory 
    191 if [ ! -x ${directory} ] 
     155unset minargcount 
     156# 
     157if [ ${narg} -gt ${maxargcount} ] 
    192158then 
    193     echo " eee : ${directory} not reachable" 
     159    echo "eee : too many arguments (${narg} vs ${maxargcount})" 
     160    echo "${usage}" 
    194161    # nb : no exit because this file should be launched by login process 
     162    pb=1 
    195163fi 
    196 # 
    197 PROJECT=${directory} 
    198 export PROJECT 
    199 unset drectory 
    200 # 
    201 # add PROJECT tools to PATH 
    202 # if not already done 
    203 suppath=$(echo ${PROJECT}/src | tr -s "/") 
    204 echo ${PATH} | grep -q "${suppath}:" 
    205 test_path=${?} 
    206 if [ ${test_path} -ne 0 ] 
     164unset maxargcount 
     165unset narg 
     166# 
     167if [ ${pb} -eq 0 ] 
    207168then 
    208     PATH=${suppath}:${PATH} 
    209     export PATH 
    210 else 
    211     # option bavarde oui/non pas encore implantée ++ 
    212     echo "${command} : iii : ${suppath} already in \${PATH}" 
     169    while [ ${#} -gt 0 ] 
     170    do 
     171        case ${1} in 
     172            -d) 
     173                # directory for application choosen by user 
     174                # (see svn checkout command used) 
     175                directory=${2} 
     176                shift 
     177            ;; 
     178            -i) 
     179                # directory for inputs choosen by user 
     180                indir=${2} 
     181                shift 
     182            ;; 
     183            -o) 
     184                # directory for outputs choosen by user 
     185                outdir=${2} 
     186                shift 
     187            ;; 
     188            -t) 
     189                # directory for temporary outputs choosen by user 
     190                tempdir=${2} 
     191                shift 
     192            ;; 
     193            -s) 
     194                saxo_dir=${2} 
     195                shift 
     196            ;; 
     197            *) 
     198                # other choice 
     199                echo "eee : unknown option ${1}" 
     200                echo "${usage}" 
     201                # nb : no exit because this file should be launched 
     202                # by login process 
     203            ;; 
     204        esac 
     205        # next flag 
     206        shift 
     207    done 
     208    unset usage 
    213209fi 
    214 unset test_path 
    215 # 
    216 # add PROJECT manuals to MANPATH 
    217 # if not already done 
    218 suppath=$(echo ${PROJECT}/doc/man | tr -s "/") 
    219 echo ${MANPATH} | grep -q "${suppath}:" 
    220 test_manpath=${?} 
    221 if [ ${test_manpath} -ne 0 ] 
     210# 
     211if [ ${pb} -eq 0 ] 
    222212then 
    223     MANPATH=${suppath}:${MANPATH} 
    224     export MANPATH 
    225 else 
    226     # option bavarde oui/non pas encore implantée ++ 
    227     echo "${command} : iii : ${suppath} already in \${MANPATH}" 
     213    # check for ${directory} 
     214    if [ ! -d ${directory} ] 
     215    then 
     216        echo " eee : ${directory} not found" 
     217        # nb : no exit because this file should be launched by login process 
     218    fi 
     219    # 
     220    # check for permission on directory 
     221    if [ ! -x ${directory} ] 
     222    then 
     223        echo " eee : ${directory} not reachable" 
     224        # nb : no exit because this file should be launched by login process 
     225    fi 
     226    # 
     227    PROJECT=${directory} 
     228    export PROJECT 
     229    unset directory 
     230    # 
     231    # add PROJECT tools to PATH 
     232    # if not already done 
     233    suppath=$(echo ${PROJECT}/src | tr -s "/") 
     234    echo ${PATH} | grep -q "${suppath}:" 
     235    test_path=${?} 
     236    if [ ${test_path} -ne 0 ] 
     237    then 
     238        PATH=${suppath}:${PATH} 
     239        export PATH 
     240    else 
     241        # option bavarde oui/non pas encore implantée ++ 
     242        echo "${command} : iii : ${suppath} already in \${PATH}" 
     243    fi 
     244    unset test_path 
     245    # 
     246    # add PROJECT manuals to MANPATH 
     247    # if not already done 
     248    suppath=$(echo ${PROJECT}/doc/man | tr -s "/") 
     249    echo ${MANPATH} | grep -q "${suppath}:" 
     250    test_manpath=${?} 
     251    if [ ${test_manpath} -ne 0 ] 
     252    then 
     253        MANPATH=${suppath}:${MANPATH} 
     254        export MANPATH 
     255    else 
     256        # option bavarde oui/non pas encore implantée ++ 
     257        echo "${command} : iii : ${suppath} already in \${MANPATH}" 
     258    fi 
     259    unset test_manpath 
     260    unset suppath 
     261    # 
     262    PROJECT_LOG=${tempdir} 
     263    export PROJECT_LOG 
     264    unset tempdir 
     265    if [ ! -d ${PROJECT_LOG} ] 
     266    then 
     267        mkdir -p ${PROJECT_LOG} 
     268        status=${?} 
     269        if [ ${status} -ne 0 ] 
     270        then 
     271            echo "${command} : eee : can not create \${POMME_LOG}" 
     272            # nb : no exit because this file should be launched by login process 
     273        else 
     274            echo "${command} : iii : creation of \${PROJECT_LOG}" 
     275        fi 
     276        unset status 
     277    fi 
     278    # check for permission on PROJECT_LOG 
     279    if [ ! -x ${PROJECT_LOG} ] 
     280    then 
     281        echo " eee : ${PROJECT_LOG} not reachable" 
     282        # nb : no exit because this file should be launched by login process 
     283    fi 
     284    # 
     285    # check for permission on PROJECT_LOG 
     286    if [ ! -w ${PROJECT_LOG} ] 
     287    then 
     288        echo " eee : ${PROJECT_LOG} not writable" 
     289        # nb : no exit because this file should reachable be launched 
     290        # by login process 
     291    fi 
     292    # 
     293    EDITOR=vi 
     294    export EDITOR 
     295    # 
     296    # io directories 
     297    PROJECT_ID=${indir} 
     298    export PROJECT_ID 
     299    unset indir 
     300    if [ ! -d ${PROJECT_ID} ] 
     301    then 
     302        mkdir -p ${PROJECT_ID} 
     303        echo "${command} : iii : creation of \${PROJECT_ID}" 
     304    fi 
     305    # check for permission on PROJECT_ID 
     306    if [ ! -x ${PROJECT_ID} ] 
     307    then 
     308        echo " eee : ${PROJECT_ID} not reachable" 
     309        # nb : no exit because this file should be launched by login process 
     310    fi 
     311    # 
     312    PROJECT_OD=${outdir} 
     313    export PROJECT_OD 
     314    unset outdir 
     315    if [ ! -d ${PROJECT_OD} ] 
     316    then 
     317        mkdir -p ${PROJECT_OD} 
     318        echo "${command} : iii : creation of \${PROJECT_OD}" 
     319    fi 
     320    # check for permission on PROJECT_OD 
     321    if [ ! -x ${PROJECT_OD} ] 
     322    then 
     323        echo " eee : ${PROJECT_OD} not reachable" 
     324        # nb : no exit because this file should be launched by login process 
     325    fi 
     326    if [ ! -w ${PROJECT_OD} ] 
     327    then 
     328        echo " eee : ${PROJECT_OD} not writable" 
     329        # nb : no exit because this file should be launched by login process 
     330    fi 
     331    # 
     332    SAXO_DIR=${saxo_dir} 
     333    export SAXO_DIR 
     334    # 
     335    # IDL startup 
     336    IDL_STARTUP=${PROJECT}/src/project_init.pro 
     337    export IDL_STARTUP 
    228338fi 
    229 unset test_manpath 
    230 unset suppath 
    231 # 
    232 PROJECT_LOG=${tempdir} 
    233 export PROJECT_LOG 
    234 unset tempdir 
    235 if [ ! -d ${PROJECT_LOG} ] 
    236 then 
    237     mkdir -p ${PROJECT_LOG} 
    238     status=${?} 
    239     if [ ${status} -ne 0 ] 
    240     then 
    241         echo "${command} : eee : can not create \${POMME_LOG}" 
    242         # nb : no exit because this file should be launched by login process 
    243     else 
    244         echo "${command} : iii : creation of \${PROJECT_LOG}" 
    245     fi 
    246     unset status 
    247 fi 
    248 # check for permission on PROJECT_LOG 
    249 if [ ! -x ${PROJECT_LOG} ] 
    250 then 
    251     echo " eee : ${PROJECT_LOG} not reachable" 
    252     # nb : no exit because this file should be launched by login process 
    253 fi 
    254 # 
    255 # check for permission on PROJECT_LOG 
    256 if [ ! -w ${PROJECT_LOG} ] 
    257 then 
    258     echo " eee : ${PROJECT_LOG} not writable" 
    259     # nb : no exit because this file should reachable be launched 
    260     # by login process 
    261 fi 
    262 # 
    263 EDITOR=vi 
    264 export EDITOR 
    265 # 
    266 # io directories 
    267 PROJECT_ID=${indir} 
    268 export PROJECT_ID 
    269 unset indir 
    270 if [ ! -d ${PROJECT_ID} ] 
    271 then 
    272     mkdir -p ${PROJECT_ID} 
    273     echo "${command} : iii : creation of \${PROJECT_ID}" 
    274 fi 
    275 # check for permission on PROJECT_ID 
    276 if [ ! -x ${PROJECT_ID} ] 
    277 then 
    278     echo " eee : ${PROJECT_ID} not reachable" 
    279     # nb : no exit because this file should be launched by login process 
    280 fi 
    281 # 
    282 PROJECT_OD=${outdir} 
    283 export PROJECT_OD 
    284 unset outdir 
    285 if [ ! -d ${PROJECT_OD} ] 
    286 then 
    287     mkdir -p ${PROJECT_OD} 
    288     echo "${command} : iii : creation of \${PROJECT_OD}" 
    289 fi 
    290 # check for permission on PROJECT_OD 
    291 if [ ! -x ${PROJECT_OD} ] 
    292 then 
    293     echo " eee : ${PROJECT_OD} not reachable" 
    294     # nb : no exit because this file should be launched by login process 
    295 fi 
    296 if [ ! -w ${PROJECT_OD} ] 
    297 then 
    298     echo " eee : ${PROJECT_OD} not writable" 
    299     # nb : no exit because this file should be launched by login process 
    300 fi 
    301 # 
    302 SAXO_DIR=${saxo_dir} 
    303 export SAXO_DIR 
    304 # 
    305 # IDL startup 
    306 IDL_STARTUP=${PROJECT}/src/project_init.pro 
    307 export IDL_STARTUP 
     339unset pb 
    308340# end 
    309341unset command 
Note: See TracChangeset for help on using the changeset viewer.