# Notes VISU
:warning: checker qu'on a les bons scripts python fournis par le prof !
Dans le fichier **RUNME_NC_KMZ.sh** on modifie les lignes :
- ligne 14 avec le nom du bon script python (script **donné par le prof**) :
```shell=
NomDuFichierMeteoFrance=`python PYTHON/RequeteArome.py $1 SP1`
```
- ligne 22-24 les dates/debut/fin du run (normalement on pourrait utiliser les mêmes fichiers à chaque fois mais à checker!!):
```shell=
DateDeLaPrevision=`python PYTHON/DateDeLaPrevisionAromeHD.py $1`
FinDeLaPrevision=`python PYTHON/FinDeLaPrevisionAromeHD.py $1`
DateDuRun=`python PYTHON/DateDuRunAromeHD.py $1`
```
- ligne 46 avec le path vers wgrib2 :
```shell=
/home/mathilde/Documents/VISU/wgrib2_execbin/wgrib2 DATA/$NomDuFichierMeteoFrance -match ":(UGRD|VGRD|TMP):" -netcdf DATA/$NomDuFichierMeteoFrance.nc
```
- ligne 73 avec le path vers pvpython ET le state.py généré par Paraview :
```shell=
/home/mathilde/Documents/VISU/ParaView-5.10.0-RC1-MPI-Linux-Python3.9-x86_64/bin/pvpython --force-offscreen-rendering PYTHON/new_state.py DATA/$NomDuFichierMeteoFrance.nc
```
-----
Dans **templateSpanKMZ_XXX.kml** on modifie les lignes :
```xml=
<LatLonBox>
<north>55.4</north>
<south>37.5</south>
<west>-12</west>
<east>16</east>
<rotation>0</rotation>
</LatLonBox>
```
Avec les données des tableaux
----
On modifie le fichier state.py généré via paraview :
- ligne 21 à 23 (où on trouve ses data déjà ??):
```python=
MonEchelle = 0.5 # REGLAGE DE LA TAILLE DE L IMAGE FINALE AromeHD = 0.5
tailleLongitudeAromeHD = 801 # A ADAPTER A LA GRILLE DE DONNEES (Arome, AromeHD, Arpege, ArpegeHD) 2801 = AromeHD / Arome = 801
tailleLatitudeAromeHD = 601 #1791 = AromeHD Arome = 600
```
- lignes 28 à 31 (qu'on trouve dans le tableau):
```python=
minLatitude = 37.5 # A ADAPTER A LA GRILLE DE DONNEES (Arome, AromeHD, Arpege, ArpegeHD)
maxLatitude = 55.4
minLongitude = -12.
maxLongitude = 16.
```
- on a changé des renderView lignes 41 à 68 :
```python=
#renderView1.CenterOfRotation = [2., 46.45, 0.0]
#renderView1.CameraPosition = [2., 46.45, 60.]
#renderView1.CameraFocalPoint = [2., 46.45, 0.0]
renderView1.CenterOfRotation = [centreLongitude, centreLatitude, 0.0]
renderView1.CameraPosition = [centreLongitude, centreLatitude, 60.]
renderView1.CameraFocalPoint = [centreLongitude, centreLatitude, 0.0]
#renderView1.CameraParallelScale = 9.
renderView1.CameraParallelScale = centreLatitude - minLatitude
renderView1.CameraParallelProjection = 1
renderView1.Background = [1.0, 1.0, 1.0]
"""
renderView1.ViewSize = [1262, 759]
renderView1.InteractionMode = '2D'
renderView1.AxesGrid = 'GridAxes3DActor'
renderView1.OrientationAxesVisibility = 0
renderView1.CenterOfRotation = [1.999999999987267, 46.45, 0.0]
renderView1.StereoType = 'Crystal Eyes'
renderView1.CameraPosition = [9.268277117968035, 46.71270881149333, 10000.0]
renderView1.CameraFocalPoint = [9.268277117968035, 46.71270881149333, 0.0]
renderView1.CameraFocalDisk = 1.0
renderView1.CameraParallelScale = 16.616332326949994
renderView1.BackEnd = 'OSPRay raycaster'
renderView1.OSPRayMaterialLibrary = materialLibrary1
"""
```
Ligne 78 dans le state : commenter la ligne
```python=
#layout1.SetSize(1262, 759)
```
----
Résultats : Arome à mettre à l'échelle !
:arrow_right: où est-ce qu'on met les ° ??
---
Tâches :
- [ ] carte de couleurs : les 4 types avec la température comme variable
- [ ] courbe iso valeurs : les 4 en fonction de la
- [ ] lignes de courant : des vecteurs en fct du vents