1
Fork 0

Update README, plot

This commit is contained in:
Edgar P. Burkhart 2022-07-06 08:26:45 +02:00
parent d3358fa40d
commit f6ac178e86
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
2 changed files with 19 additions and 7 deletions

View File

@ -23,7 +23,7 @@ directement en modifiant le contenu de la variable `const`.
`orbitals.py` permet de tracer la trajectoire de la bouée lors du passage de la vague scélérate identifiée en 2 et 3
dimensions.
`python -m processing.orbitals [-c CONFIG] [-v]`
```python -m processing.orbitals [-c CONFIG] [-v]```
* `-c CONFIG` : choix d'un fichier de configuration (`.ini`)
* `-v` : verbose
@ -36,3 +36,20 @@ raw_ts : liste des chemins vers les fichiers de données brutes de la bouée
[out]
root : racine des fichiers de sortie
```
### Plot
`plot.py` permet de tracer la bathymétrie locale en 2 dimensions.
```python -m processing.plot [-c CONFIG] [-v]```
* `-c CONFIG` : choix d'un fichier de configuration (`.ini`)
* `-v` : verbose
```
[inp]
root : racine des fichiers d'entrée
[out]
root : racine des fichiers de sortie
sub : sous-domaine de bathymétrie, doit être généré avec subdomain
```

View File

@ -25,11 +25,6 @@ config.read(args.config)
inp_root = pathlib.Path(config.get("inp", "root"))
out_root = pathlib.Path(config.get("out", "root"))
bathy_inp = out_root.joinpath(config.get("out", "sub"))
hires_inp = inp_root.joinpath(config.get("inp", "hires"))
hstru_inp = inp_root.joinpath(config.get("inp", "hstru"))
poro_inp = inp_root.joinpath(config.get("inp", "poro"))
psize_inp = inp_root.joinpath(config.get("inp", "psize"))
bathy_out = inp_root.joinpath(config.get("out", "out"))
log.info(f"Loading bathymetry from {bathy_inp}")
bathy_curvi = np.load(bathy_inp)
@ -72,5 +67,5 @@ fig.colorbar(c, label="z (m)")
ax.set_aspect("equal")
ax.set_rasterization_zorder(1.5)
fig.savefig("bathy2d.pdf")
fig.savefig(out_root.joinpath("bathy2d.pdf"))
plt.show()