Changeset 47
- Timestamp:
- 02/04/14 14:39:22 (10 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/adm/makefile
r45 r47 95 95 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \ 96 96 -e "s+\.sh+.sh.pdf+g") 97 98 RST2MAN = \99 rst2man.py100 101 RST2HTML = \102 rst2html.py103 104 RST2LATEX = \105 rst2latex.py106 97 107 98 .PHONY : \ … … 118 109 man_troff \ 119 110 man_html \ 120 man_html_many \121 111 man_html_sphinx \ 122 112 man_pdf \ 123 man_pdf_many \124 113 man_pdf_sphinx 125 114 … … 143 132 before : 144 133 @mkdir -p $(DIRWWW)/manuals/man/man1/ 145 @mkdir -p $(DIRWWW)/manuals/html/many/146 @mkdir -p $(DIRWWW)/manuals/pdf/many/147 134 @mkdir -p $(DIRWWW)/manuals/pdf/sphinx/ 148 135 @mkdir -p $(DIRTMP)/sphinx_tmpdir/doctrees/ … … 168 155 -@rm -f $(DIRTMP)/*.rst 169 156 -@rm -f $(DIRTMP)/*.tex 170 -@rm -f $(DIRWWW)/manuals/pdf/many/*.aux171 -@rm -f $(DIRWWW)/manuals/pdf/many/*.log172 -@rm -f $(DIRWWW)/manuals/pdf/many/*.out173 157 -@rm -fr $(DIRTMP)/sphinx_tmpdir/ 174 158 -@rm -f $(DIRTMP)/sphinx_*.log … … 190 174 191 175 all : \ 192 man_troff \193 176 man_html \ 194 177 man_pdf … … 198 181 199 182 man_html : \ 200 man_html_many \201 183 man_html_sphinx 202 203 man_html_many : \204 $(DIRWWW)/manuals/html/many/index.html \205 $(LIST_SRCSH_HTML)206 184 207 185 man_html_sphinx : \ … … 217 195 218 196 man_pdf : \ 219 man_pdf_many \220 197 man_pdf_sphinx 221 222 man_pdf_many : \223 $(LIST_SRCSH_PDF)224 198 225 199 man_pdf_sphinx : \ … … 237 211 $(DIRWWW)/manuals/pdf/sphinx/ 238 212 239 $(DIRWWW)/manuals/html/many/index.html : \240 $(DIRTMP)/index.rst241 @$(RST2HTML) --input-encoding=ISO-8859-15 --strict \242 $< $@243 244 $(DIRTMP)/index.rst :245 @echo "$(PRODUCTNAME) manuals" | tr [:print:] = > $@246 @echo "$(PRODUCTNAME) manuals" >> $@247 @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@248 @echo " " >> $@249 @echo "Shell scripts" >> $@250 @echo "Shell scripts" | tr [:print:] = >> $@251 @for file in $(LIST_SRCSH); do echo " ";echo "$$(basename $${file})_"; echo " "; echo ".. _$$(basename $${file}) : $$(basename $${file}).html"; done >> $@252 253 @echo " " >> $@254 255 213 $(DIRTMP)/sphinx_tmpdir/index.rst : 256 214 @echo ".. _index:" > $@ … … 276 234 @echo " " >> $@ 277 235 278 $(DIRWWW)/manuals/man/man1/%.1:$(DIRTMP)/%.rst279 @$(RST2MAN) --input-encoding=ISO-8859-15 --strict \280 $< $@281 282 $(DIRWWW)/manuals/html/many/%.html:$(DIRTMP)/%.rst283 @$(RST2HTML) --input-encoding=ISO-8859-15 --strict \284 $< $@285 286 $(DIRWWW)/manuals/pdf/many/%.pdf : $(DIRTMP)/%.tex287 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $<288 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $<289 290 $(DIRTMP)/%.tex : $(DIRTMP)/%.rst291 @$(RST2LATEX) $(RST2LATEX_OPTIONS_MANY) --input-encoding=ISO-8859-15 --strict \292 $< $@293 294 236 $(DIRTMP)/%.sh.rst : $(DIRSRC)/%.sh 295 237 @$(DIRADM)/extract_rst.sh -i $< -l sh -o $@ -
trunk/detectbarotropicmode.sh
r46 r47 2 2 # 3 3 #+ 4 # 5 # .. _detectbarotropicmode.sh: 4 6 # 5 7 # ======================= … … 14 16 # ======== 15 17 # 16 # ::17 # 18 # $detectbarotropicmode.sh -l list -r resolution -exp experience -g grid \19 # -latmin latmin -latmax latmax -longmin longmin -longmax longmax18 # .. code-blcok:: bash 19 # 20 # detectbarotropicmode.sh -l list -r resolution -exp experience -g grid \ 21 # -latmin latmin -latmax latmax -longmin longmin -longmax longmax 20 22 # 21 23 # DESCRIPTION … … 28 30 # For detection on DRAKKAR G42 experiment with ORCA025 resolution on T points 29 31 # in the box [-50,30] [295,335]: 30 # :: 31 # 32 # $ detectbarotropicmode.sh -l ${GEOMAG_OD}/list_G42 -r ORCA025 -exp G42 -g gridT \ 33 # -latmin -50 -latmax -30 -longmin 295 -longmax 335 32 # 33 # .. code-block :: bash 34 # 35 # detectbarotropicmode.sh -l ${GEOMAG_OD}/list_G42 -r ORCA025 -exp G42 -g gridT \ 36 # -latmin -50 -latmax -30 -longmin 295 -longmax 335 34 37 # 35 38 # EVOLUTIONS … … 42 45 # - reee522 2007-11-26T11:33:42Z rhodes (IRIX64) 43 46 # 44 # * externalization of 47 # * externalization of copy of data file in getmodelout.sh 45 48 # 46 49 # - reee522 2007-11-26T10:55:44Z rhodes (IRIX64) … … 162 165 # extract ssh and create a new set of files 163 166 list_ssh="" 164 for file in 167 for file in `cat ${list}` 165 168 do 166 169 echo "iii : extraction from ${file}" # ++ voir seulement si debug demandé … … 178 181 fi 179 182 done 180 line=`head -n 1 183 line=`head -n 1 ${list}` 181 184 bfile=`basename ${line}` 182 185 datemin=`echo ${bfile} | awk -F "_" '{print $2}'` 183 line=`tail -n 1 186 line=`tail -n 1 ${list}` 184 187 bfile=`basename ${line}` 185 188 datemax=`echo ${bfile} | awk -F "_" '{print $2}'` … … 187 190 # concatenation 188 191 filetot=${GEOMAG_OD}/${orcares}-${drakkar_exp}_${datemin}_${datemax}_${grid}_ssh.nc 189 rm -f 192 rm -f ${filetot} 2> /dev/null 190 193 ncrcat ${list_ssh} ${filetot} 191 194 status_ncrcat=${?} -
trunk/geomag_profile.sh
r46 r47 2 2 # 3 3 #+ 4 # .. _geomag_profile.sh: 5 # 4 6 # ================= 5 7 # geomag_profile.sh … … 13 15 # ======== 14 16 # 15 # Online usage:: 16 # 17 # $ . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 18 # 19 # In ${HOME}/.profile, add the following line:: 20 # 21 # . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 17 # Online usage 18 # 19 # .. code-block:: bash 20 # 21 # . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 22 # 23 # In :file:`${HOME}/.profile`, add the following line: 24 # 25 # .. code-block:: bash 26 # 27 # . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 22 28 # 23 29 # DESCRIPTION 24 30 # =========== 25 31 # 32 # .. option:: -d <directory> 33 # .. option:: -i <indir> 34 # .. option:: -o <outdir> 35 # .. option:: -t <tempdir> 36 # 26 37 # define GEOMAG environment 27 38 # 28 39 # ${GEOMAG} is the base directory of tools. 29 40 # 30 # ${GEOMAG_LOG} is the directory where log files 41 # ${GEOMAG_LOG} is the directory where log files will be written. 31 42 # 32 43 # ${GEOMAG_ID} is the directory where input files must be. … … 39 50 # ======== 40 51 # 41 # For fplod, on aedon.locean-ipsl.upmc.fr:: 42 # 43 # $ cd /usr/home/fplod/incas/geomag/geomag_ws 44 # $ . geomag_profile.sh -d /usr/home/fplod/incas/geomag/geomag_ws/ -i ${HOME}/geomag_d/ -o ${HOME}/geomag_d/ -t /usr/temp/${LOGNAME}/log/ 45 # 46 # For reee522 on rhodes.idris.fr:: 47 # 48 # $ cd ${HOME}/incas/geomag/geomag_ws/ 49 # $ . geomag_profile.sh -d ${HOME}/incas/geomag/geomag_ws/ -i ${HOMEGAYA}/geomag_d/ -o ${HOMEGAYA}/geomag_d/ -t /tmp/${LOGNAME}/log/ 52 # For fplod, on aedon.locean-ipsl.upmc.fr: 53 # 54 # .. code-block:: bash 55 # 56 # cd /usr/home/fplod/incas/geomag/geomag_ws 57 # . geomag_profile.sh -d /usr/home/fplod/incas/geomag/geomag_ws/ -i ${HOME}/geomag_d/ -o ${HOME}/geomag_d/ -t /usr/temp/${LOGNAME}/log/ 58 # 59 # For reee522 on rhodes.idris.fr: 60 # 61 # .. code-block:: bash 62 # 63 # cd ${HOME}/incas/geomag/geomag_ws/ 64 # . geomag_profile.sh -d ${HOME}/incas/geomag/geomag_ws/ -i ${HOMEGAYA}/geomag_d/ -o ${HOMEGAYA}/geomag_d/ -t /tmp/${LOGNAME}/log/ 50 65 # 51 66 # TODO … … 85 100 # - fplod 2007-03-13T16:12:41Z zeus.locean-ipsl.upmc.fr (Linux) 86 101 # 87 # * add creation of $ GEOMAG_ID and $GEOMAG_ODif they don't exist102 # * add creation of ${GEOMAG_ID} and ${GEOMAG_OD} if they don't exist 88 103 # 89 104 # - reee522 2006-11-23T11:41:41Z rhodes (IRIX64) -
trunk/getmodelout.sh
r46 r47 2 2 # 3 3 #+ 4 # .. _getmodelout.sh: 5 # 4 6 # ============== 5 7 # getmodelout.sh … … 13 15 # ======== 14 16 # 15 # ::17 # .. code-block:: bash 16 18 # 17 # $getmodelout.sh -r orcares -exp drakkar_exp -g grid -yearmin yyyy -yearmax yyyy -o list19 # getmodelout.sh -r orcares -exp drakkar_exp -g grid -yearmin yyyy -yearmax yyyy -o list 18 20 # 19 21 # DESCRIPTION … … 25 27 # ======== 26 28 # 27 # To get DRAKKAR G42 experiment output on grid T points beteween year 9 and 10: :29 # To get DRAKKAR G42 experiment output on grid T points beteween year 9 and 10: 28 30 # 29 # $ getmodelout.sh -r ORCA025 -exp G42 -g gridT -yearmin 9 -yearmax 10 -o ${GEOMAG_OD}/list_G42 31 # .. code-block:: bash 32 # 33 # getmodelout.sh -r ORCA025 -exp G42 -g gridT -yearmin 9 -yearmax 10 -o ${GEOMAG_OD}/list_G42 30 34 # 31 35 # EVOLUTIONS -
trunk/step2_diff.sh
r46 r47 2 2 # 3 3 #+ 4 # 5 # .. _step2_diff.sh: 4 6 # 5 7 # ============= … … 14 16 # ======== 15 17 # 16 # ::18 # .. code-blcok:: bash 17 19 # 18 # $step2_diff.sh -y year20 # step2_diff.sh -y year 19 21 # 20 22 # EXAMPLES 21 23 # ======== 22 24 # 23 # For test on year 1994: :25 # For test on year 1994: 24 26 # 25 # $ ./step2_diff.sh -y 1994 27 # .. code-blcok:: bash 28 # 29 # ./step2_diff.sh -y 1994 26 30 # 27 31 # EVOLUTIONS
Note: See TracChangeset
for help on using the changeset viewer.