[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] | 34 | Update data 20130725 |
---|
| 35 | ==================== |
---|
[115] | 36 | |
---|
[201] | 37 | Here are details tasks for the update data 20130725 derived from :ref:`updatedata`. |
---|
[115] | 38 | |
---|
[201] | 39 | .. _newversion_20130725: |
---|
[115] | 40 | |
---|
[201] | 41 | Only time coverage extension from July 2012 to March 2013 |
---|
[115] | 42 | |
---|
[202] | 43 | Following 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` |
---|
[115] | 49 | |
---|
| 50 | .. _saveold: |
---|
| 51 | |
---|
| 52 | Save old version |
---|
| 53 | ---------------- |
---|
| 54 | |
---|
| 55 | .. parsed-literal:: |
---|
| 56 | |
---|
[201] | 57 | $ datemodif="20130725" |
---|
[192] | 58 | |
---|
[115] | 59 | $ export datemodif |
---|
| 60 | $ cd /usr/lodyc/incas/fplod/tropflux_d/ |
---|
| 61 | $ mkdir obsolete_${datemodif} |
---|
| 62 | |
---|
| 63 | .. parsed-literal:: |
---|
| 64 | |
---|
[160] | 65 | $ mv Readme.rst obsolete_${datemodif} |
---|
[115] | 66 | $ mv ./daily obsolete_${datemodif} |
---|
| 67 | $ mv ./monthly obsolete_${datemodif} |
---|
| 68 | |
---|
[201] | 69 | .. _copynew1_20130725: |
---|
[115] | 70 | |
---|
| 71 | Copy new version (phase 1) |
---|
| 72 | -------------------------- |
---|
| 73 | |
---|
| 74 | .. parsed-literal:: |
---|
| 75 | |
---|
[201] | 76 | $ mkdir /usr/lodyc/incas/fplod/tropflux_d/to_be_published |
---|
| 77 | $ newdir='/net/adonis/usr/adonis/varclim/tropflux_v2' |
---|
[115] | 78 | $ export newdir |
---|
[201] | 79 | |
---|
| 80 | Is there enought space ? |
---|
[202] | 81 | |
---|
| 82 | :: |
---|
| 83 | |
---|
[201] | 84 | $ du -sh ${newdir}/daily |
---|
| 85 | 12G /net/adonis/usr/adonis/varclim/tropflux_v2/daily |
---|
| 86 | $ du -sh ${newdir}/monthly |
---|
| 87 | 396M /net/adonis/usr/adonis/varclim/tropflux_v2/monthly |
---|
| 88 | $ df -h /usr/lodyc/incas/fplod/tropflux_d/to_be_published |
---|
| 89 | Filesystem Size Used Avail Use% Mounted on |
---|
| 90 | fslodyc:/usr/.lodyc 1.6T 1.6T 20G 99% /.autofs/lodyc |
---|
| 91 | |
---|
| 92 | 20GB vs 12.4 GB = yes |
---|
| 93 | |
---|
[202] | 94 | then, copy :: |
---|
| 95 | |
---|
[201] | 96 | $ cp ${PROJECT}/adm/website/Readme.rst /usr/lodyc/incas/fplod/tropflux_d/to_be_published/Readme.rst |
---|
[115] | 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 |
---|
| 99 | |
---|
[201] | 100 | .. _compareversion_20130725: |
---|
[115] | 101 | |
---|
| 102 | Compare versions |
---|
| 103 | ---------------- |
---|
| 104 | |
---|
| 105 | A set of tools must be run to compare obsolete and new versions |
---|
| 106 | |
---|
| 107 | |
---|
[202] | 108 | see draft tool :ref:`compare.sh` |
---|
[115] | 109 | |
---|
[202] | 110 | :: |
---|
[115] | 111 | |
---|
[201] | 112 | log=${PROJECT_LOG}/compare.log |
---|
[202] | 113 | script ${log} |
---|
[201] | 114 | compare.sh |
---|
| 115 | exit |
---|
| 116 | |
---|
| 117 | Check for results. |
---|
| 118 | |
---|
| 119 | First check expected equality for data: |
---|
| 120 | |
---|
| 121 | :: |
---|
| 122 | |
---|
| 123 | grep "records differ" ${log} |
---|
[202] | 124 | |
---|
[201] | 125 | If only "0 of" begin all lines, its ok. Otherwise look inside the log file to |
---|
| 126 | locate troubles. |
---|
| 127 | |
---|
| 128 | Second, check for differences on global attributes |
---|
| 129 | |
---|
[202] | 130 | On creation_date |
---|
| 131 | |
---|
[201] | 132 | :: |
---|
| 133 | |
---|
| 134 | grep "^>" ${log} | grep creation_date |
---|
| 135 | |
---|
[202] | 136 | If nothing appears, you must modified this attributes. see :ref:`change_creation_date.sh`. |
---|
[201] | 137 | |
---|
[202] | 138 | It is what happened in this 20130725 data update, so: |
---|
[201] | 139 | |
---|
[202] | 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 | |
---|
| 146 | On time_range |
---|
| 147 | :: |
---|
| 148 | |
---|
[201] | 149 | grep "^>" ${log} | grep time_range |
---|
| 150 | |
---|
[202] | 151 | If nothing appears, you must modified this attributes. see :ref:`change_time_range.sh` |
---|
[201] | 152 | |
---|
[202] | 153 | It is what happened in this 20130725 data update, so:: |
---|
[201] | 154 | |
---|
[202] | 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 | |
---|
| 158 | Clean comparison log file:: |
---|
| 159 | |
---|
[201] | 160 | rm ${log} |
---|
| 161 | |
---|
[202] | 162 | Correct terminology if still necessary: |
---|
[201] | 163 | |
---|
[202] | 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 | |
---|
| 169 | If modifications has been made, re-run comparison (go back to |
---|
| 170 | :ref:`compareversion_20130725`) |
---|
| 171 | before next step |
---|
| 172 | |
---|
[115] | 173 | Once comparison is done and PI happy, |
---|
| 174 | ++ cleanning or modify newdir |
---|
| 175 | |
---|
[201] | 176 | .. _copynew2_20130725: |
---|
[115] | 177 | |
---|
| 178 | Copy new version (phase 2) |
---|
| 179 | -------------------------- |
---|
| 180 | |
---|
| 181 | .. parsed-literal:: |
---|
| 182 | |
---|
| 183 | $ cd /usr/lodyc/incas/fplod/tropflux_d/ |
---|
[196] | 184 | $ mv ./to_be_published/Readme.rst . |
---|
| 185 | $ mv ./to_be_published/daily ./ |
---|
| 186 | $ mv ./to_be_published/monthly ./ |
---|
[160] | 187 | $ ln -sf $(pwd)/Readme.rst daily/ |
---|
| 188 | $ ln -sf $(pwd)/Readme.rst monthly/ |
---|
[115] | 189 | |
---|
| 190 | |
---|
[201] | 191 | .. _desinstalldata_20130725: |
---|
[115] | 192 | |
---|
| 193 | Remove old version from the website |
---|
| 194 | ----------------------------------- |
---|
| 195 | |
---|
| 196 | To avoid confusion, old version has to be removed from the website: |
---|
| 197 | |
---|
[202] | 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 | |
---|
[115] | 203 | .. parsed-literal:: |
---|
| 204 | |
---|
[202] | 205 | ftp www.locean-ipsl.upmc.fr |
---|
| 206 | cd |project_id|/data/ |
---|
| 207 | mdelete daily/* |
---|
| 208 | mdelete monthly/* |
---|
| 209 | bye |
---|
[115] | 210 | |
---|
[201] | 211 | .. _installdata_20130725: |
---|
[115] | 212 | |
---|
| 213 | Installation of the new version |
---|
| 214 | ------------------------------- |
---|
| 215 | |
---|
| 216 | L'installation se fait ainsi: |
---|
| 217 | |
---|
[202] | 218 | .. warning:: |
---|
[115] | 219 | |
---|
[202] | 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 |
---|
[115] | 222 | |
---|
[202] | 223 | .. parsed-literal:: |
---|
[116] | 224 | |
---|
[202] | 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 |
---|
[115] | 238 | |
---|
| 239 | |
---|
[202] | 240 | Update news of website |
---|
| 241 | ---------------------- |
---|
[116] | 242 | |
---|
[115] | 243 | |
---|
[202] | 244 | Files in :file:`${PROJECT}/adm/website/` have been modified to tell the new time coverage so |
---|
| 245 | see also :ref:`builddoc` to synchronize dataset and documentation |
---|
[115] | 246 | |
---|
[202] | 247 | Update svn repository |
---|
| 248 | --------------------- |
---|
[115] | 249 | |
---|
[202] | 250 | svn commit pour tous les fichiers modifiés lors de cette mise à jour |
---|
[115] | 251 | |
---|
[202] | 252 | Cleanning |
---|
| 253 | --------- |
---|
[115] | 254 | |
---|
[201] | 255 | rm /usr/lodyc/incas/fplod/tropflux_d/to_be_published/ |
---|
| 256 | |
---|