Changeset 633 for trunk/docs
- Timestamp:
- 02/11/14 18:12:25 (10 years ago)
- Location:
- trunk/docs/docs_dev/source
- Files:
-
- 2 deleted
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/docs_dev/source/conf.py
r532 r633 70 70 #extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig'] 71 71 extensions = ['sphinx.ext.autodoc', 72 73 74 75 76 77 78 79 80 72 'sphinx.ext.doctest', 73 'sphinx.ext.todo', 74 'sphinx.ext.intersphinx', 75 'sphinx.ext.coverage', 76 'sphinx.ext.pngmath', 77 'sphinx.ext.ifconfig', 78 'sphinx.ext.viewcode', 79 'sphinx.ext.graphviz', 80 'sphinx.ext.inheritance_diagram' ] 81 81 82 82 # Add any paths that contain templates here, relative to this directory. … … 287 287 # intersphinx with saxo 288 288 intersphinx_mapping = {'saxo': ('http://forge.ipsl.jussieu.fr/saxo/download/idldoc_html_output/','saxo.inv'), 289 289 'fptools' : ('http://www.locean-ipsl.upmc.fr/~fplod/fptools/fptools_ws/doc/html/', None)} -
trunk/docs/docs_dev/source/guides/bibliography.rst
r443 r633 14 14 .. 15 15 .. - fplod 20111007T075307Z aedon.locean-ipsl.upmc.fr (Darwin) 16 .. 16 .. 17 17 .. * add [HirdMDermit:RSE:2009] 18 18 .. -
trunk/docs/docs_dev/source/guides/builddoc.rst
r517 r633 8 8 .. doxygen 9 9 .. 10 .. idldoc 10 .. idldoc 11 11 .. 12 12 .. wiki 13 13 .. 14 14 .. checklink 15 .. 15 .. 16 16 .. EVOLUTIONS 17 17 .. ========== … … 42 42 Documentation |project| 43 43 ~~~~~~~~~~~~~~~~~~~~~~~ 44 La documentation est construite à partir des fichiers ReStructuredText_ 45 dans :file:`${PROJECT}/adm/` et des commentaires dans les sources 44 La documentation est construite à partir des fichiers ReStructuredText_ 45 dans :file:`${PROJECT}/adm/` et des commentaires dans les sources 46 46 sous :file:`${PROJECT}/src/`. 47 47 … … 54 54 .. parsed-literal:: 55 55 56 $cd ${|project|}/adm/57 $make clean58 $make before59 $make html_dev56 cd ${|project|}/adm/ 57 make clean 58 make before 59 make html_dev 60 60 61 61 et regarder le résultat dans :file:`../doc/html/sphinx/index.html`. 62 62 63 Si le résultat est convainquant, on peut produire les autres formats de 63 Si le résultat est convainquant, on peut produire les autres formats de 64 64 documentations (HTML single, PDF et troff): 65 65 66 66 .. parsed-literal:: 67 67 68 $make all68 make all 69 69 70 70 Install Documentation |project| … … 80 80 .. parsed-literal:: 81 81 82 $make install_all82 make install_all -
trunk/docs/docs_dev/source/guides/contact.rst
r443 r633 13 13 .. - fplod 20100603T100421Z aedon.locean-ipsl.upmc.fr (Darwin) 14 14 .. 15 .. * creation 15 .. * creation 16 16 .. thanks to http://tops.berlios.de/ for the toc and ReSt files 17 17 .. -
trunk/docs/docs_dev/source/guides/contents.rst
r443 r633 8 8 .. - fplod 20100603T100421Z aedon.locean-ipsl.upmc.fr (Darwin) 9 9 .. 10 .. * creation 10 .. * creation 11 11 .. thanks to http://tops.berlios.de/ for the toc and ReSt files 12 12 .. … … 25 25 :maxdepth: 1 26 26 :glob: 27 27 28 28 requirements 29 29 installing -
trunk/docs/docs_dev/source/guides/contributing.rst
r443 r633 37 37 See :ref:`Contact <contact>` to ask for login or any trouble on your forge.ipsl.jussieu.fr account. 38 38 39 You will find in 39 You will find in 40 40 :ref:`svn Basic Commands <svnbasiccommands>` how to commit your change 41 41 -
trunk/docs/docs_dev/source/guides/data_content.rst
r545 r633 177 177 178 178 Here is a recipe to isolate latitude(y), longitude (x) and attribute an unique 179 ID for each point for QGIS:: 180 181 $ for filetxt in /net/zeus/usr/zeus/incas/mousson/LAI/laisen????_float.txt 179 ID for each point for QGIS: 180 181 .. code-block:: bash 182 183 for filetxt in /net/zeus/usr/zeus/incas/mousson/LAI/laisen????_float.txt 182 184 do 183 185 bfile=$(basename ${filetxt}) … … 707 709 708 710 .. warning:: 711 709 712 need to belong to ``amma_eu`` group on climserv. 710 713 … … 846 849 This file has been provided by Laurence Eymard. 847 850 848 Following instruction load this file to arrays **Xgco** and **Ygco**:: 849 850 octave> load('cmgco_traitdecote.mat','Xgco','Ygco'); 851 852 Plot of the whole world (black dots) can be done like this:: 853 854 octave> plot(Xgco,Ygco,'k.','MarkerSize',1) 851 Following instruction load this file to arrays **Xgco** and **Ygco**: 852 853 .. code-block:: matlab 854 855 load('cmgco_traitdecote.mat','Xgco','Ygco'); 856 857 Plot of the whole world (black dots) can be done like this: 858 859 .. code-block:: matlab 860 861 plot(Xgco,Ygco,'k.','MarkerSize',1) 855 862 856 863 .. _zones: -
trunk/docs/docs_dev/source/guides/glossary.rst
r443 r633 69 69 Global alliance for standard Multi-Purpose Land Cover data production 70 70 http://www.glcn.org/index_en.jsp 71 72 CSE 71 72 CSE 73 73 Centre de suivi écologique 74 74 75 FAO 75 FAO 76 76 Food and Agriculture organization of United Nations 77 77 -
trunk/docs/docs_dev/source/guides/installing.rst
r443 r633 22 22 :ref:`required software <requirements>` on your system. 23 23 24 You will find in 24 You will find in 25 25 :ref:`svn Basic Commands <svnbasiccommands>` how to download 26 26 VARAMMA. -
trunk/docs/docs_dev/source/guides/read_me.rst
r443 r633 38 38 programme :ref:`readERA.m`: 39 39 40 :: 40 .. code-block:: matlab 41 41 42 >>file='CAT.r.2005.2007.6TU.nc';43 >>z_deb=[ -30 -30 datenum(2005,1,1) 350];44 >>z_fin=[ 40 40 datenum(2007,12,1) 350];42 file='CAT.r.2005.2007.6TU.nc'; 43 z_deb=[ -30 -30 datenum(2005,1,1) 350]; 44 z_fin=[ 40 40 datenum(2007,12,1) 350]; 45 45 46 46 zone définie par les paramètres début et fin, pour le niveau, il fait la moyenne entre les deux niveaux définis 47 47 48 :: 48 .. code-block:: matlab 49 49 50 >>chemin='/homedata/eymard/OPERA_Trop/';51 >>nom_var='r';52 >>[mat_3D,lat ,lon,date,niveau]=readERA(file,z_deb, z_fin, nom_var,chemin);53 >>[EOF2D,PC]=affiche_EOF_PC_3D(mat_3D,date,lon,lat);50 chemin='/homedata/eymard/OPERA_Trop/'; 51 nom_var='r'; 52 [mat_3D,lat ,lon,date,niveau]=readERA(file,z_deb, z_fin, nom_var,chemin); 53 [EOF2D,PC]=affiche_EOF_PC_3D(mat_3D,date,lon,lat); 54 54 55 55 options:choix des eof affichés: par défaut 1,2,3 sinon, ajouter [2 3 4] pour les trois suivants … … 57 57 pour changer d'autres paramètres (titre, par ex, regarder :ref:`affiche_eofpc_3Drev.m` pour identifier les variables à ajouter (le titre est le dixième ou à peu près) 58 58 59 Pour sauvegarder la figure en format png: :59 Pour sauvegarder la figure en format png: 60 60 61 >> print -dpng figures/nomfig.png 61 .. code-block:: matlab 62 63 print -dpng figures/nomfig.png 62 64 63 65 AMSU 64 66 ---- 65 67 66 Avec :ref:`readAMSU.m`, on lit le fichier 2000-2007 par défaut, sinon 68 Avec :ref:`readAMSU.m`, on lit le fichier 2000-2007 par défaut, sinon 67 69 déclarer le chemin. 68 70 69 on peut aussi définir z_deb et z_fin pour le choix de la zone et la période (en julien comme pour :ref:`readERA.m`): :71 on peut aussi définir z_deb et z_fin pour le choix de la zone et la période (en julien comme pour :ref:`readERA.m`): 70 72 71 >> z_deb=[ -30 -30 datenum(2005,1,1)]; 72 >> z_fin=[ 40 40 datenum(2008,1,1)]; 73 >> nom_var='b3'; 74 >> file='b3.2000_2007.nc'; 75 >> [mat_3D,jours,latitude ,longitude]=readAMSU(file,z_deb,z_fin); 73 .. code-block:: matlab 76 74 77 puis lancer:: 75 z_deb=[ -30 -30 datenum(2005,1,1)]; 76 z_fin=[ 40 40 datenum(2008,1,1)]; 77 nom_var='b3'; 78 file='b3.2000_2007.nc'; 79 [mat_3D,jours,latitude ,longitude]=readAMSU(file,z_deb,z_fin); 78 80 79 >> [EOF2D,PC]=affiche_EOF_PC_3D(mat_3D,jours,longitude,latitude); 81 puis lancer: 82 83 .. code-block:: matlab 84 85 [EOF2D,PC]=affiche_EOF_PC_3D(mat_3D,jours,longitude,latitude); 80 86 81 87 Concernant b5, le problême vient du fait que dans ce canal, il y a des NaN … … 83 89 important dans la région du golfe persique. 84 90 85 Il faut donc refaire une interpolation pour boucher les trous restants : :91 Il faut donc refaire une interpolation pour boucher les trous restants : 86 92 87 >> mat_3D_b=boucheNaN_3D(mat_3D); 93 .. code-block:: matlab 88 94 89 puis refaire le calcul d'eof avec la nouvelle matrice:: 95 mat_3D_b=boucheNaN_3D(mat_3D); 90 96 91 >> [EOF2D,PC]=affiche_EOF_PC_3D(mat_3D_b,jours,longitude,latitude); 97 puis refaire le calcul d'eof avec la nouvelle matrice: 92 98 93 pour calculer des eofs sur une partie de l'année, chaque année, utiliser la fonction :ref:`choix_mois.m`:: 99 .. code-block:: matlab 94 100 95 >> [mat_3D_s, jours_s]=choix_mois(mat_3D,jours,mois_deb,mois_fin ); 101 [EOF2D,PC]=affiche_EOF_PC_3D(mat_3D_b,jours,longitude,latitude); 102 103 pour calculer des eofs sur une partie de l'année, chaque année, utiliser la fonction :ref:`choix_mois.m`: 104 105 .. code-block:: matlab 106 107 [mat_3D_s, jours_s]=choix_mois(mat_3D,jours,mois_deb,mois_fin ); 96 108 97 109 puis refaire tourner eof2d avec la bonne entrée. … … 102 114 ex: pour prendre d'avril à août, on choisit mois_deb=4,mois_fin=8 , de décembre a février: mois_deb=12,mois_fin=2, toute l'année (par défaut): mois_deb=1,mois_fin=12 103 115 104 Calcul des eof sans le cycle annuel : fonction: :116 Calcul des eof sans le cycle annuel : fonction: 105 117 106 >> [EOF2D,PC]=affiche_EOF_PC_3Dsscycle(mat3D_s,jours,longitude,latitude,titre_fig); 118 .. code-block:: matlab 107 119 120 [EOF2D,PC]=affiche_EOF_PC_3Dsscycle(mat3D_s,jours,longitude,latitude,titre_fig); 121 -
trunk/docs/docs_dev/source/guides/requirements.rst
r443 r633 77 77 .. _Matlab: http://www.mathworks.com/ 78 78 79 Matlab should be use as an alternative to octave. 79 Matlab should be use as an alternative to octave. 80 80 81 81 Matlab to be completed by NetCDF toolbox/package. -
trunk/docs/docs_dev/source/guides/rundemotest.rst
r630 r633 4 4 .. ===== 5 5 .. 6 .. scons 6 .. scons 7 7 .. 8 8 .. dependencies … … 46 46 .. note:: 47 47 48 We do not know yet how to handle source files dependencies so it is 48 We do not know yet how to handle source files dependencies so it is 49 49 up to contributors to define test sequences. 50 50 51 51 Python 52 52 ~~~~~~ 53 ::54 53 55 $ cd ${PROJECT}/src 56 $ nosetests --with-doctest -v *.py 54 .. code-block:: bash 57 55 58 or:: 56 cd ${PROJECT}/src 57 nosetests --with-doctest -v *.py 59 58 60 $ cd ${PROJECT}/src 61 $ coverage -rm -o *.py 59 or 60 61 .. code-block:: bash 62 63 cd ${PROJECT}/src 64 coverage -rm -o *.py 62 65 63 66 octave 64 67 ~~~~~~ 65 68 66 All demos can be launched with one octave command: :69 All demos can be launched with one octave command: 67 70 68 $ cd ${PROJECT}/src 69 $ octave 70 octave> varamma_startup 71 .. code-block:: bash 71 72 72 .. parsed-literal:: 73 cd ${PROJECT}/src 74 octave 73 75 74 $ cd ${PROJECT}/src 75 $ octave 76 octave> demo('module_to_be_demonstrated') 77 octave> test('module_to_be_tested') 76 .. code-block:: matlab 78 77 79 MATLAB 78 varamma_startup 79 80 .. code-block:: bash 81 82 cd ${PROJECT}/src 83 octave 84 85 .. code-block:: matlab 86 87 demo('module_to_be_demonstrated') 88 test('module_to_be_tested') 89 90 MATLAB 80 91 ~~~~~~ 81 92 82 93 MATLAB do not understand doctest features like octave. 83 94 84 To run demo and tests, we need first extract doctests from source files: :95 To run demo and tests, we need first extract doctests from source files: 85 96 86 $ cd ${PROJECT}/adm 87 $ make clean 88 $ make before 89 $ make matlab_demo 90 $ make matlab_test 97 .. code-block:: bash 91 98 92 Then MATLAB codes for demo and tests are available in 99 cd ${PROJECT}/adm 100 make clean 101 make before 102 make matlab_demo 103 make matlab_test 104 105 Then MATLAB codes for demo and tests are available in 93 106 :file:`${PROJECT}/adm/demo` and :file:`${PROJECT}/adm/test`. 94 107 … … 98 111 like in octave ... so tests might not be significant. 99 112 100 To run them: :113 To run them: 101 114 102 $ cd ${PROJECT}/src 103 $ matlab -nodesktop 104 matlab> add_path('../adm/demo') 105 matlab> module_to_be_demonstrated_demo 106 matlab> add_path('../adm/test') 107 matlab> module_to_be_tested_test 115 116 .. code-block:: bash 117 118 cd ${PROJECT}/src 119 matlab -nodesktop 120 121 .. code-block:: matlab 122 123 add_path('../adm/demo') 124 module_to_be_demonstrated_demo 125 add_path('../adm/test') 126 module_to_be_tested_test 108 127 109 128 IDL -
trunk/docs/docs_dev/source/guides/using.rst
r443 r633 15 15 16 16 ===== 17 Using 17 Using 18 18 ===== 19 20 19 21 20 :ref:`compute EOF <read_me>` -
trunk/docs/docs_dev/source/index.rst
r518 r633 3 3 .. EVOLUTIONS 4 4 .. ========== 5 .. 5 .. 6 6 .. $Id$ 7 7 .. -
trunk/docs/docs_dev/source/index_guides.rst
r517 r633 42 42 guides/installing 43 43 guides/data_content 44 guides/coding_rules45 44 guides/rundemotest 46 45 guides/builddoc … … 49 48 guides/svnbasiccommands 50 49 guides/contact 50 51 see also 52 53 :ref:`coding_rules <fptools:coding_rules>` 54 :ref:`svnbasiccommands <fptools:svnbasiccommands>` -
trunk/docs/docs_dev/source/manuals/index.rst
r516 r633 5 5 .. 6 6 .. $Id$ 7 .. 7 .. 8 8 .. $URL$ 9 9 .. … … 15 15 16 16 .. manuals: 17 17 18 18 ================ 19 19 VARAMMA manuals 20 20 ================ 21 21 22 22 .. toctree:: 23 23 :maxdepth: 1
Note: See TracChangeset
for help on using the changeset viewer.