Changeset 202 for trunk/docs/docs_dev
- Timestamp:
- 07/26/13 20:19:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/docs_dev/source/guides/updatedata/updatedata_20130725.rst
r201 r202 41 41 Only time coverage extension from July 2012 to March 2013 42 42 43 :file:`${PROJECT}/website/data/changes.rst` and :file:`${PROJECT}/adm/website/Readme.rst` are updated. 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` 44 49 45 50 .. _saveold: … … 74 79 75 80 Is there enought space ? 81 82 :: 83 76 84 $ du -sh ${newdir}/daily 77 85 12G /net/adonis/usr/adonis/varclim/tropflux_v2/daily … … 84 92 20GB vs 12.4 GB = yes 85 93 94 then, copy :: 95 86 96 $ cp ${PROJECT}/adm/website/Readme.rst /usr/lodyc/incas/fplod/tropflux_d/to_be_published/Readme.rst 87 97 $ cp -r ${newdir}/daily /usr/lodyc/incas/fplod/tropflux_d/to_be_published … … 95 105 A set of tools must be run to compare obsolete and new versions 96 106 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 108 see draft tool :ref:`compare.sh` 109 110 :: 143 111 144 112 log=${PROJECT_LOG}/compare.log 145 script ${ PROJECT_LOG}/compare.log113 script ${log} 146 114 compare.sh 147 115 exit … … 154 122 155 123 grep "records differ" ${log} 156 124 157 125 If only "0 of" begin all lines, its ok. Otherwise look inside the log file to 158 126 locate troubles. … … 160 128 Second, check for differences on global attributes 161 129 130 On creation_date 131 162 132 :: 163 133 164 134 grep "^>" ${log} | grep creation_date 165 135 166 If nothing appears, you must modified this attributes. see :ref:`change_creation_date.sh` ++ 167 136 If nothing appears, you must modified this attributes. see :ref:`change_creation_date.sh`. 137 138 It 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 146 On time_range 147 :: 168 148 169 149 grep "^>" ${log} | grep time_range 170 150 171 If nothing appears, you must modified this attributes. see :ref:`change_timerange.sh` ++ 172 173 Clean log file:: 151 If nothing appears, you must modified this attributes. see :ref:`change_time_range.sh` 152 153 It 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 158 Clean comparison log file:: 174 159 175 160 rm ${log} 176 161 177 If modifications has been made, re-run comparaison before next step 162 Correct 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 169 If modifications has been made, re-run comparison (go back to 170 :ref:`compareversion_20130725`) 171 before next step 178 172 179 173 Once comparison is done and PI happy, … … 202 196 To avoid confusion, old version has to be removed from the website: 203 197 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 210 210 211 211 .. _installdata_20130725: … … 216 216 L'installation se fait ainsi: 217 217 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 240 Update news of website 241 ---------------------- 242 243 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 246 247 Update svn repository 248 --------------------- 249 250 svn commit pour tous les fichiers modifiés lors de cette mise à jour 251 252 Cleanning 253 --------- 254 253 255 rm /usr/lodyc/incas/fplod/tropflux_d/to_be_published/ 254 256
Note: See TracChangeset
for help on using the changeset viewer.