Ignore:
Timestamp:
02/11/14 18:41:24 (10 years ago)
Author:
pinsard
Message:

fix thanks to coding rules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/docs_dev/source/guides/updatedata/updatedata_20130725.rst

    r202 r203  
    4545:file:`${PROJECT}/adm/website/data_access.rst` 
    4646:file:`${PROJECT}/adm/website/overview.rst` 
    47 :file:`${PROJECT}/adm/website/Readme.rst`  
     47:file:`${PROJECT}/adm/website/Readme.rst` 
    4848:file:`${PROJECT}/adm/website/_templates/layout.html` 
    4949 
     
    5555.. parsed-literal:: 
    5656 
    57    $ datemodif="20130725" 
    58  
    59    $ export datemodif 
    60    $ cd /usr/lodyc/incas/fplod/tropflux_d/ 
    61    $ mkdir obsolete_${datemodif} 
    62  
    63 .. parsed-literal:: 
    64  
    65    $ mv Readme.rst obsolete_${datemodif} 
    66    $ mv ./daily obsolete_${datemodif} 
    67    $ mv ./monthly obsolete_${datemodif} 
     57   datemodif="20130725" 
     58 
     59   export datemodif 
     60   cd /usr/lodyc/incas/fplod/tropflux_d/ 
     61   mkdir obsolete_${datemodif} 
     62 
     63.. parsed-literal:: 
     64 
     65   mv Readme.rst obsolete_${datemodif} 
     66   mv ./daily obsolete_${datemodif} 
     67   mv ./monthly obsolete_${datemodif} 
    6868 
    6969.. _copynew1_20130725: 
     
    7474.. parsed-literal:: 
    7575 
    76    $ mkdir /usr/lodyc/incas/fplod/tropflux_d/to_be_published 
    77    $ newdir='/net/adonis/usr/adonis/varclim/tropflux_v2' 
    78    $ export newdir 
     76   mkdir /usr/lodyc/incas/fplod/tropflux_d/to_be_published 
     77   newdir='/net/adonis/usr/adonis/varclim/tropflux_v2' 
     78   export newdir 
    7979 
    8080Is there enought space ? 
    8181 
    82 :: 
    83  
    84    $ du -sh ${newdir}/daily 
     82.. parsed-literal:: 
     83 
     84   du -sh ${newdir}/daily 
    8585   12G     /net/adonis/usr/adonis/varclim/tropflux_v2/daily 
    86    $ du -sh ${newdir}/monthly 
     86   du -sh ${newdir}/monthly 
    8787   396M    /net/adonis/usr/adonis/varclim/tropflux_v2/monthly 
    88    $ df -h /usr/lodyc/incas/fplod/tropflux_d/to_be_published 
     88   df -h /usr/lodyc/incas/fplod/tropflux_d/to_be_published 
    8989   Filesystem            Size  Used Avail Use% Mounted on 
    9090   fslodyc:/usr/.lodyc   1.6T  1.6T   20G  99% /.autofs/lodyc 
     
    929220GB vs 12.4 GB = yes 
    9393 
    94 then, copy :: 
    95  
    96    $ cp ${PROJECT}/adm/website/Readme.rst /usr/lodyc/incas/fplod/tropflux_d/to_be_published/Readme.rst 
    97    $ cp -r ${newdir}/daily /usr/lodyc/incas/fplod/tropflux_d/to_be_published 
    98    $ cp -r ${newdir}/monthly /usr/lodyc/incas/fplod/tropflux_d/to_be_published 
     94then, copy : 
     95 
     96.. parsed-literal:: 
     97 
     98   cp ${PROJECT}/adm/website/Readme.rst /usr/lodyc/incas/fplod/tropflux_d/to_be_published/Readme.rst 
     99   cp -r ${newdir}/daily /usr/lodyc/incas/fplod/tropflux_d/to_be_published 
     100   cp -r ${newdir}/monthly /usr/lodyc/incas/fplod/tropflux_d/to_be_published 
    99101 
    100102.. _compareversion_20130725: 
     
    108110see draft tool :ref:`compare.sh` 
    109111 
    110 :: 
     112.. parsed-literal:: 
    111113 
    112114   log=${PROJECT_LOG}/compare.log 
     
    119121First check expected equality for data: 
    120122 
    121 :: 
     123.. parsed-literal:: 
    122124 
    123125   grep "records differ" ${log} 
     
    130132On creation_date 
    131133 
    132 :: 
     134.. parsed-literal:: 
    133135 
    134136   grep "^>" ${log} | grep creation_date 
     
    138140It is what happened in this 20130725 data update, so: 
    139141 
    140 :: 
     142.. parsed-literal:: 
    141143 
    142144   change_creation_date.sh -d /usr/lodyc/incas/fplod/tropflux_d/to_be_published/ -c 20130725 
     
    145147 
    146148On time_range 
    147 :: 
     149 
     150.. parsed-literal:: 
    148151 
    149152   grep "^>" ${log} | grep time_range 
    150153 
     154 
     155 
    151156If nothing appears, you must modified this attributes. see :ref:`change_time_range.sh` 
    152157 
    153 It is what happened in this 20130725 data update, so:: 
     158It is what happened in this 20130725 data update, so: 
     159 
     160.. parsed-literal:: 
    154161 
    155162   change_time_range.sh -d /usr/lodyc/incas/fplod/tropflux_d/to_be_published/ -b 19790101 -e 20130331 
     163 
    156164   tlogd.sh change_time_range 
    157165 
    158 Clean comparison log file:: 
     166Clean comparison log file: 
     167 
     168.. parsed-literal:: 
    159169 
    160170   rm ${log} 
     
    162172Correct terminology if still necessary: 
    163173 
    164 :: 
    165  
    166   correct_terminology.sh -d /usr/lodyc/incas/fplod/tropflux_d/to_be_published/ -good "1979_2013" -bad "1979_march2013" 
    167   tlogd.sh correct_terminology 
     174.. parsed-literal:: 
     175 
     176   correct_terminology.sh -d /usr/lodyc/incas/fplod/tropflux_d/to_be_published/ -good "1979_2013" -bad "1979_march2013" 
     177   tlogd.sh correct_terminology 
    168178 
    169179If modifications has been made, re-run comparison (go back to 
     
    181191.. parsed-literal:: 
    182192 
    183    $ cd /usr/lodyc/incas/fplod/tropflux_d/ 
    184    $ mv ./to_be_published/Readme.rst . 
    185    $ mv ./to_be_published/daily ./ 
    186    $ mv ./to_be_published/monthly ./ 
    187    $ ln -sf $(pwd)/Readme.rst daily/ 
    188    $ ln -sf $(pwd)/Readme.rst monthly/ 
    189  
     193   cd /usr/lodyc/incas/fplod/tropflux_d/ 
     194   mv ./to_be_published/Readme.rst . 
     195   mv ./to_be_published/daily ./ 
     196   mv ./to_be_published/monthly ./ 
     197   ln -sf $(pwd)/Readme.rst daily/ 
     198   ln -sf $(pwd)/Readme.rst monthly/ 
    190199 
    191200.. _desinstalldata_20130725: 
     
    242251 
    243252 
    244 Files in :file:`${PROJECT}/adm/website/` have been modified to tell the new time coverage so  
     253Files in :file:`${PROJECT}/adm/website/` have been modified to tell the new time coverage so 
    245254see also :ref:`builddoc` to synchronize dataset and documentation 
    246255 
Note: See TracChangeset for help on using the changeset viewer.