Changeset 202 for trunk/docs/docs_dev


Ignore:
Timestamp:
07/26/13 20:19:25 (11 years ago)
Author:
pinsard
Message:

end of 20130725 update data

File:
1 edited

Legend:

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

    r201 r202  
    4141Only time coverage extension from July 2012 to March 2013 
    4242 
    43 :file:`${PROJECT}/website/data/changes.rst` and :file:`${PROJECT}/adm/website/Readme.rst` are updated.  
     43Following files are updated : 
     44:file:`${PROJECT}/adm/website/data/changes.rst` 
     45:file:`${PROJECT}/adm/website/data_access.rst` 
     46:file:`${PROJECT}/adm/website/overview.rst` 
     47:file:`${PROJECT}/adm/website/Readme.rst`  
     48:file:`${PROJECT}/adm/website/_templates/layout.html` 
    4449 
    4550.. _saveold: 
     
    7479 
    7580Is there enought space ? 
     81 
     82:: 
     83 
    7684   $ du -sh ${newdir}/daily 
    7785   12G     /net/adonis/usr/adonis/varclim/tropflux_v2/daily 
     
    849220GB vs 12.4 GB = yes 
    8593 
     94then, copy :: 
     95 
    8696   $ cp ${PROJECT}/adm/website/Readme.rst /usr/lodyc/incas/fplod/tropflux_d/to_be_published/Readme.rst 
    8797   $ cp -r ${newdir}/daily /usr/lodyc/incas/fplod/tropflux_d/to_be_published 
     
    95105A set of tools must be run to compare obsolete and new versions 
    96106 
    97 TDB 
    98  
    99 .. parsed-literal:: 
    100  
    101    $ ++compare.sh -o obsolete_${datemodif} -n /usr/lodyc/incas/fplod/tropflux_d/to_be_published 
    102  
    103    mkdir -p /usr/work/incas/fplod/tropflux_d//compare_update/ 
    104    varlist="lhf lwr netflux q2m shf swr t2m tau taux tauy ws" 
    105    period_list="daily monthly" 
    106    lastyear=2012 
    107    for var in $varlist 
    108    do 
    109       for period in ${period_list} 
    110       do  
    111          if [ "${period}" == "daily" ] 
    112          then  
    113             suffix=1d 
    114          else 
    115             suffix=1m 
    116          fi 
    117          newfile=/usr/lodyc/incas/fplod/tropflux_d/to_be_published/${period}/${var}_tropflux_${suffix}_1979_march2013.nc 
    118          newfile_oldtimecoverage=${PROJECT_ID}/compare_update/${var}_tropflux_${suffix}_1979_${lastdate}.nc 
    119          # extract old time coverage in the new file 
    120          nt=$(ncdump -h $oldfile | grep "time = UNLIMITED ;" | sed -e "s@\(time = UNLIMITED ; // (\)\(.*\)\( currently)\)@\2@") 
    121          slabtime=$(printf "time,0,%d" $((${nt} -1 ))) 
    122          ncks -d ${slabtime} -O -o ${newfile_oldtimecoverage} ${newfile} 
    123          oldfile=/usr/lodyc/incas/fplod/tropflux_d/obsolete_${datemodif}/${period}/${var}_tropflux_${suffix}_1979_${lastyear}.nc 
    124          oldfiledump=${PROJECT_ID}/compare_update/${var}_tropflux_${suffix}_1979_${lastyear}.nc_ncdump 
    125          cdo diff  ${newfile_oldtimecoverage} ${oldfile} 
    126          read a 
    127          # we must see "0 of $nt records differ" 
    128          ncdump -h ${newfile_oldtimecoverage} > ${newfile_oldtimecoverage}_ncdump 
    129          ncdump -h ${oldfile} > ${oldfiledump} 
    130          diff ${newfile_oldtimecoverage}_ncdump ${oldfiledump} 
    131          # we must see a difference in creation date and coverage 
    132          read a 
    133          rm ${newfile_oldtimecoverage}_ncdump 
    134          rm ${oldfiledump} 
    135          unset suffix 
    136       done 
    137       unset period 
    138       unset period_list 
    139    done 
    140    unset var 
    141    unset varlist 
    142    rm -rf /usr/work/incas/fplod/tropflux_d//compare_update/ 
     107 
     108see draft tool :ref:`compare.sh` 
     109 
     110:: 
    143111 
    144112   log=${PROJECT_LOG}/compare.log 
    145    script ${PROJECT_LOG}/compare.log 
     113   script ${log} 
    146114   compare.sh 
    147115   exit 
     
    154122 
    155123   grep "records differ" ${log} 
    156    
     124 
    157125If only "0 of" begin all lines, its ok. Otherwise look inside the log file to 
    158126locate troubles. 
     
    160128Second, check for differences on global attributes 
    161129 
     130On creation_date 
     131 
    162132:: 
    163133 
    164134   grep "^>" ${log} | grep creation_date 
    165135 
    166 If nothing appears, you must modified this attributes. see :ref:`change_creation_date.sh` ++ 
    167  
     136If nothing appears, you must modified this attributes. see :ref:`change_creation_date.sh`. 
     137 
     138It is what happened in this 20130725 data update, so: 
     139 
     140:: 
     141 
     142   change_creation_date.sh -d /usr/lodyc/incas/fplod/tropflux_d/to_be_published/ -c 20130725 
     143   tlogd.sh change_creation_date 
     144 
     145 
     146On time_range 
     147:: 
    168148 
    169149   grep "^>" ${log} | grep time_range 
    170150 
    171 If nothing appears, you must modified this attributes. see :ref:`change_timerange.sh` ++ 
    172  
    173 Clean log file:: 
     151If nothing appears, you must modified this attributes. see :ref:`change_time_range.sh` 
     152 
     153It is what happened in this 20130725 data update, so:: 
     154 
     155   change_time_range.sh -d /usr/lodyc/incas/fplod/tropflux_d/to_be_published/ -b 19790101 -e 20130331 
     156   tlogd.sh change_time_range 
     157 
     158Clean comparison log file:: 
    174159 
    175160   rm ${log} 
    176161 
    177 If modifications has been made, re-run comparaison before next step 
     162Correct terminology if still necessary: 
     163 
     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 
     168 
     169If modifications has been made, re-run comparison (go back to 
     170:ref:`compareversion_20130725`) 
     171before next step 
    178172 
    179173Once comparison is done and PI happy, 
     
    202196To avoid confusion, old version has to be removed from the website: 
    203197 
    204 .. parsed-literal:: 
    205  
    206    fplod@sonmac$ ftp www.locean-ipsl.upmc.fr 
    207    ftp> cd |project_id|/data/ 
    208    ftp> mdelete daily/* 
    209    ftp> mdelete monthly/* 
     198.. warning:: 
     199 
     200   This sequence do not work  on cratos because no ftp command on this plateform. 
     201   It has been launched on cerbere.locean-ipsl.upmmc.fr 
     202 
     203.. parsed-literal:: 
     204 
     205   ftp www.locean-ipsl.upmc.fr 
     206   cd |project_id|/data/ 
     207   mdelete daily/* 
     208   mdelete monthly/* 
     209   bye 
    210210 
    211211.. _installdata_20130725: 
     
    216216L'installation se fait ainsi: 
    217217 
    218 .. parsed-literal:: 
    219  
    220    fplod@sonmac$ cd /Volumes/Lcerbere/tropflux_d/ 
    221    fplod@sonmac$ ftp www.locean-ipsl.upmc.fr 
    222    ftp> cd |project_id|/data/ 
    223    ftp> put Readme.rst 
    224    ftp> cd daily 
    225    ftp> lcd daily 
    226    ftp> mput \*.nc 
    227    ftp> put ../Readme.rst 
    228    ftp> cd ../monthly 
    229    ftp> lcd ../monthly 
    230    ftp> put ../Readme.rst 
    231    ftp> mput \*.nc 
    232  
    233  
    234 .. note:: 
    235  
    236    :file:`/Volumes/Lcerbere/tropflux_d/` is equivalent to file:`/usr/lodyc/incas/fplod/tropflux_d/` thanks to sshfs command. 
    237  
    238    .. parsed-literal:: 
    239  
    240       $ diskext="/Volumes/LCerbere" 
    241       $ mkdir ${diskext} 
    242       $ sshfs fplod@cerbere:/usr/lodyc/incas/fplod ${diskext} -odefer_permissions -o sshfs_debug 
    243  
    244  
    245  et template pour NEW 
    246  
    247 et build doc et install doc 
    248  
    249 (see also :ref:`builddoc` to synchronize dataset and documentation). 
    250  
    251  
    252 et svn commit ppur ce fichier et tous ceux mentionnes ici 
     218.. warning:: 
     219 
     220   This sequence do not work  on cratos because no ftp command on this plateform. 
     221   It has been launched on cerbere.locean-ipsl.upmmc.fr 
     222 
     223.. parsed-literal:: 
     224 
     225   cd /usr/lodyc/incas/fplod/tropflux_d/ 
     226   ftp www.locean-ipsl.upmc.fr 
     227   cd |project_id|/data/ 
     228   put Readme.rst 
     229   cd daily 
     230   lcd daily 
     231   mput \*.nc 
     232   put ../Readme.rst 
     233   cd ../monthly 
     234   lcd ../monthly 
     235   put ../Readme.rst 
     236   mput \*.nc 
     237   bye 
     238 
     239 
     240Update news of website 
     241---------------------- 
     242 
     243 
     244Files in :file:`${PROJECT}/adm/website/` have been modified to tell the new time coverage so  
     245see also :ref:`builddoc` to synchronize dataset and documentation 
     246 
     247Update svn repository 
     248--------------------- 
     249 
     250svn commit pour tous les fichiers modifiés lors de cette mise à jour 
     251 
     252Cleanning 
     253--------- 
     254 
    253255rm /usr/lodyc/incas/fplod/tropflux_d/to_be_published/ 
    254256 
Note: See TracChangeset for help on using the changeset viewer.