source: trunk/docs/docs_dev/source/guides/updatedata/updatedata_20130725.rst

Last change on this file was 204, checked in by pinsard, 10 years ago

fix thanks to coding rules; typo

  • Property svn:keywords set to Id URL
File size: 5.5 KB
RevLine 
[115]1.. +
2..
3.. DESCRIPTION
4.. ===========
5..
[201]6.. procedure to update data on website 20130725
[115]7..
[117]8.. SEE ALSO
9.. ========
[148]10..
[117]11.. ref:`updatedata`
12..
[115]13.. TODO
14.. =====
15..
16.. EVOLUTIONS
17.. ==========
18..
19.. $Id$
20..
21.. $URL$
22..
[201]23.. - fplod 20130725T141747Z cratos.locean-ipsl.upmc.fr (Linux)
[196]24..
[201]25..   * creation
[196]26..
[115]27.. -
28
29.. |project| replace:: TROPFLUX
30.. |project_id| replace:: tropflux
31
[201]32.. _updatedata_20130725:
[115]33
[201]34Update data 20130725
35====================
[115]36
[201]37Here are details tasks for the update data 20130725 derived from :ref:`updatedata`.
[115]38
[201]39.. _newversion_20130725:
[115]40
[201]41Only time coverage extension from July 2012 to March 2013
[115]42
[202]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`
[203]47:file:`${PROJECT}/adm/website/Readme.rst`
[202]48:file:`${PROJECT}/adm/website/_templates/layout.html`
[115]49
50.. _saveold:
51
52Save old version
53----------------
54
55.. parsed-literal::
56
[203]57   datemodif="20130725"
[192]58
[203]59   export datemodif
60   cd /usr/lodyc/incas/fplod/tropflux_d/
61   mkdir obsolete_${datemodif}
[115]62
63.. parsed-literal::
64
[203]65   mv Readme.rst obsolete_${datemodif}
66   mv ./daily obsolete_${datemodif}
67   mv ./monthly obsolete_${datemodif}
[115]68
[201]69.. _copynew1_20130725:
[115]70
71Copy new version (phase 1)
72--------------------------
73
74.. parsed-literal::
75
[203]76   mkdir /usr/lodyc/incas/fplod/tropflux_d/to_be_published
77   newdir='/net/adonis/usr/adonis/varclim/tropflux_v2'
78   export newdir
[201]79
[204]80Is there enough space ?
[202]81
[203]82.. parsed-literal::
[202]83
[203]84   du -sh ${newdir}/daily
[201]85   12G     /net/adonis/usr/adonis/varclim/tropflux_v2/daily
[203]86   du -sh ${newdir}/monthly
[201]87   396M    /net/adonis/usr/adonis/varclim/tropflux_v2/monthly
[203]88   df -h /usr/lodyc/incas/fplod/tropflux_d/to_be_published
[201]89   Filesystem            Size  Used Avail Use% Mounted on
90   fslodyc:/usr/.lodyc   1.6T  1.6T   20G  99% /.autofs/lodyc
91
9220GB vs 12.4 GB = yes
93
[203]94then, copy :
[202]95
[203]96.. parsed-literal::
[115]97
[203]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
101
[201]102.. _compareversion_20130725:
[115]103
104Compare versions
105----------------
106
107A set of tools must be run to compare obsolete and new versions
108
109
[202]110see draft tool :ref:`compare.sh`
[115]111
[203]112.. parsed-literal::
[115]113
[201]114   log=${PROJECT_LOG}/compare.log
[202]115   script ${log}
[201]116   compare.sh
117   exit
118
119Check for results.
120
121First check expected equality for data:
122
[203]123.. parsed-literal::
[201]124
125   grep "records differ" ${log}
[202]126
[201]127If only "0 of" begin all lines, its ok. Otherwise look inside the log file to
128locate troubles.
129
130Second, check for differences on global attributes
131
[202]132On creation_date
133
[203]134.. parsed-literal::
[201]135
136   grep "^>" ${log} | grep creation_date
137
[202]138If nothing appears, you must modified this attributes. see :ref:`change_creation_date.sh`.
[201]139
[202]140It is what happened in this 20130725 data update, so:
[201]141
[203]142.. parsed-literal::
[202]143
144   change_creation_date.sh -d /usr/lodyc/incas/fplod/tropflux_d/to_be_published/ -c 20130725
145   tlogd.sh change_creation_date
146
147
148On time_range
149
[203]150.. parsed-literal::
151
[201]152   grep "^>" ${log} | grep time_range
153
[203]154
155
[202]156If nothing appears, you must modified this attributes. see :ref:`change_time_range.sh`
[201]157
[203]158It is what happened in this 20130725 data update, so:
[201]159
[203]160.. parsed-literal::
161
[202]162   change_time_range.sh -d /usr/lodyc/incas/fplod/tropflux_d/to_be_published/ -b 19790101 -e 20130331
[203]163
[202]164   tlogd.sh change_time_range
165
[203]166Clean comparison log file:
[202]167
[203]168.. parsed-literal::
169
[201]170   rm ${log}
171
[202]172Correct terminology if still necessary:
[201]173
[203]174.. parsed-literal::
[202]175
[203]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
[202]178
179If modifications has been made, re-run comparison (go back to
180:ref:`compareversion_20130725`)
181before next step
182
[115]183Once comparison is done and PI happy,
[204]184++ cleaning or modify newdir
[115]185
[201]186.. _copynew2_20130725:
[115]187
188Copy new version (phase 2)
189--------------------------
190
191.. parsed-literal::
192
[203]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/
[115]199
[201]200.. _desinstalldata_20130725:
[115]201
202Remove old version from the website
203-----------------------------------
204
205To avoid confusion, old version has to be removed from the website:
206
[202]207.. warning::
208
[204]209   This sequence do not work  on cratos because no ftp command on this platform.
210   It has been launched on cerbere.locean-ipsl.upmc.fr
[202]211
[115]212.. parsed-literal::
213
[202]214   ftp www.locean-ipsl.upmc.fr
215   cd |project_id|/data/
216   mdelete daily/*
217   mdelete monthly/*
218   bye
[115]219
[201]220.. _installdata_20130725:
[115]221
222Installation of the new version
223-------------------------------
224
225L'installation se fait ainsi:
226
[202]227.. warning::
[115]228
[204]229   This sequence do not work  on cratos because no ftp command on this platform.
230   It has been launched on cerbere.locean-ipsl.upmc.fr
[115]231
[202]232.. parsed-literal::
[116]233
[202]234   cd /usr/lodyc/incas/fplod/tropflux_d/
235   ftp www.locean-ipsl.upmc.fr
236   cd |project_id|/data/
237   put Readme.rst
238   cd daily
239   lcd daily
240   mput \*.nc
241   put ../Readme.rst
242   cd ../monthly
243   lcd ../monthly
244   put ../Readme.rst
245   mput \*.nc
246   bye
[115]247
248
[202]249Update news of website
250----------------------
[116]251
[115]252
[203]253Files in :file:`${PROJECT}/adm/website/` have been modified to tell the new time coverage so
[202]254see also :ref:`builddoc` to synchronize dataset and documentation
[115]255
[202]256Update svn repository
257---------------------
[115]258
[202]259svn commit pour tous les fichiers modifiés lors de cette mise à jour
[115]260
[204]261Cleaning
[202]262---------
[115]263
[201]264rm /usr/lodyc/incas/fplod/tropflux_d/to_be_published/
265
Note: See TracBrowser for help on using the repository browser.