Graphiques

This commit is contained in:
Alex38Lyon committed 2026-10-27 11:26:17 +01:00
1 parent df20b1826b
commit 9eedbbf059
14 files changed
+122 -14

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@@ -3943,3 +3943,59 @@ on 31932: 2026-10-27 09:36:43,814 - INFO - Jonction à la Station_ID: 25259 ent
2026-10-27 09:37:32,146 - INFO - Table des STATION entrée et fix, nbre: 200
2026-10-27 09:37:53,481 - INFO - Phase 5: Fin de traitement en 02 (m) 45 (s), résultats enregistrés dans ~/Outputs/DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_stats
2026-10-27 09:37:53,481 - INFO - Execution terminée sans erreur en 02(m)45(s)
2026-10-27 10:57:53,118 - INFO - ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
2026-10-27 10:57:53,119 - INFO - ║ Calcul des statistiques par entrées d'une BD Therion ║
2026-10-27 10:57:53,120 - INFO - ║ Script pyThStat par : alexandre.pont@yahoo.fr ║
2026-10-27 10:57:53,120 - INFO - ║ Version : 2026.10.27 ║
2026-10-27 10:57:53,121 - INFO - ║ Fichier source : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql ║
2026-10-27 10:57:53,121 - INFO - ║ Dossier destination : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats ║
2026-10-27 10:57:53,122 - INFO - ║ Date : 2026-10-27 10h57m53s ║
2026-10-27 10:57:53,122 - INFO - ║ Mode : update ║
2026-10-27 10:57:53,123 - INFO - ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
2026-10-27 10:57:53,126 - INFO - Phase 5: Écriture des statistiques dans le fichier: ~\Synthese-PSM_LARRA\Outputs\readme.md
2026-10-27 10:57:53,133 - INFO - Table des CENTRELINE, longueur: [(340527.49, 15625.25, 8956.61)]
2026-10-27 10:59:19,717 - INFO - Table des STATION entrée et fix, nbre: 200
2026-10-27 11:00:28,193 - INFO - Phase 5: Fin de traitement en 02 (m) 35 (s), résultats enregistrés dans ~\Outputs\DB_Synthese-PSM_LARRA_Stats\DB_Synthese-PSM_LARRA_stats
2026-10-27 11:00:28,195 - INFO - Execution terminée sans erreur en 02(m)35(s)
2026-10-27 11:04:42,412 - INFO - ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
2026-10-27 11:04:42,413 - INFO - ║ Calcul des statistiques par entrées d'une BD Therion ║
2026-10-27 11:04:42,417 - INFO - ║ Script pyThStat par : alexandre.pont@yahoo.fr ║
2026-10-27 11:04:42,417 - INFO - ║ Version : 2026.10.27 ║
2026-10-27 11:04:42,418 - INFO - ║ Fichier source : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql ║
2026-10-27 11:04:42,418 - INFO - ║ Dossier destination : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats ║
2026-10-27 11:04:42,418 - INFO - ║ Date : 2026-10-27 11h04m42s ║
2026-10-27 11:04:42,418 - INFO - ║ Mode : update ║
2026-10-27 11:04:42,419 - INFO - ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
2026-10-27 11:04:42,420 - INFO - Phase 5: Écriture des statistiques dans le fichier: ~\Synthese-PSM_LARRA\Outputs\readme.md
2026-10-27 11:04:42,423 - INFO - Table des CENTRELINE, longueur: [(340527.49, 15625.25, 8956.61)]
2026-10-27 11:05:52,867 - INFO - Table des STATION entrée et fix, nbre: 200
2026-10-27 11:06:49,692 - INFO - Phase 5: Fin de traitement en 02 (m) 07 (s), résultats enregistrés dans ~\Outputs\DB_Synthese-PSM_LARRA_Stats\DB_Synthese-PSM_LARRA_stats
2026-10-27 11:06:49,694 - INFO - Execution terminée sans erreur en 02(m)07(s)
2026-10-27 11:11:48,713 - INFO - ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
2026-10-27 11:11:48,714 - INFO - ║ Calcul des statistiques par entrées d'une BD Therion ║
2026-10-27 11:11:48,714 - INFO - ║ Script pyThStat par : alexandre.pont@yahoo.fr ║
2026-10-27 11:11:48,714 - INFO - ║ Version : 2026.10.27 ║
2026-10-27 11:11:48,714 - INFO - ║ Fichier source : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql ║
2026-10-27 11:11:48,714 - INFO - ║ Dossier destination : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats ║
2026-10-27 11:11:48,715 - INFO - ║ Date : 2026-10-27 11h11m48s ║
2026-10-27 11:11:48,715 - INFO - ║ Mode : update ║
2026-10-27 11:11:48,715 - INFO - ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
2026-10-27 11:11:48,716 - INFO - Phase 5: Écriture des statistiques dans le fichier: ~\Synthese-PSM_LARRA\Outputs\readme.md
2026-10-27 11:11:48,718 - INFO - Table des CENTRELINE, longueur: [(340527.49, 15625.25, 8956.61)]
2026-10-27 11:13:17,662 - INFO - Table des STATION entrée et fix, nbre: 200
2026-10-27 11:14:26,811 - INFO - Phase 5: Fin de traitement en 02 (m) 38 (s), résultats enregistrés dans ~\Outputs\DB_Synthese-PSM_LARRA_Stats\DB_Synthese-PSM_LARRA_stats
2026-10-27 11:14:26,813 - INFO - Execution terminée sans erreur en 02(m)38(s)
2026-10-27 11:20:14,106 - INFO - ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
2026-10-27 11:20:14,106 - INFO - ║ Calcul des statistiques par entrées d'une BD Therion ║
2026-10-27 11:20:14,106 - INFO - ║ Script pyThStat par : alexandre.pont@yahoo.fr ║
2026-10-27 11:20:14,107 - INFO - ║ Version : 2026.10.27 ║
2026-10-27 11:20:14,107 - INFO - ║ Fichier source : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql ║
2026-10-27 11:20:14,107 - INFO - ║ Dossier destination : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats ║
2026-10-27 11:20:14,107 - INFO - ║ Date : 2026-10-27 11h20m14s ║
2026-10-27 11:20:14,107 - INFO - ║ Mode : update ║
2026-10-27 11:20:14,108 - INFO - ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
2026-10-27 11:20:14,109 - INFO - Phase 5: Écriture des statistiques dans le fichier: ~\Synthese-PSM_LARRA\Outputs\readme.md
2026-10-27 11:20:14,111 - INFO - Table des CENTRELINE, longueur: [(340527.49, 15625.25, 8956.61)]
2026-10-27 11:21:21,103 - INFO - Table des STATION entrée et fix, nbre: 200
2026-10-27 11:22:23,216 - INFO - Phase 5: Fin de traitement en 02 (m) 09 (s), résultats enregistrés dans ~\Outputs\DB_Synthese-PSM_LARRA_Stats\DB_Synthese-PSM_LARRA_stats
2026-10-27 11:22:23,218 - INFO - Execution terminée sans erreur en 02(m)09(s)
Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

@@ -2,10 +2,10 @@
║ Calcul des statistiques par entrées d'une BD Therion *
║ Script pyThStat par : alexandre.pont@yahoo.fr *
║ Version : 2026.10.27 *
║ Fichier source : ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA.sql *
║ Dossier destination : ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA_Stats *
║ Date : 2026-10-27 09h35m07s *
* Durée calcul : 02 (m) 45 (s) sans erreur *
║ Fichier source : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql *
║ Dossier destination : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats *
║ Date : 2026-10-27 11h20m14s *
* Durée calcul : 02 (m) 09 (s) sans erreur *
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝*
**Développement total centerline (m):** développement: 340527.49 , dupliqué: 15625.25 , surface: 8956.61
Toutes les stations sont comptabilisées et raccordées
1 ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗*
2 ║ Calcul des statistiques par entrées d'une BD Therion *
3 ║ Script pyThStat par : alexandre.pont@yahoo.fr *
4 ║ Version : 2026.10.27 *
5 ║ Fichier source : ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA.sql * ║ Fichier source : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql *
6 ║ Dossier destination : ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA_Stats * ║ Dossier destination : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats *
7 ║ Date : 2026-10-27 09h35m07s * ║ Date : 2026-10-27 11h20m14s *
8 * Durée calcul : 02 (m) 45 (s) sans erreur * * Durée calcul : 02 (m) 09 (s) sans erreur *
9 ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝*
10 **Développement total centerline (m):** développement: 340527.49 , dupliqué: 15625.25 , surface: 8956.61
11 Toutes les stations sont comptabilisées et raccordées
Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

+27 -4
View File
@@ -252,15 +252,38 @@ Toutes les stations sont comptabilisées et raccordées
| 2026 | 257,03 | 340 527,49 | 0,00 | 15 625,25 | 0,00 | 8 956,61 |
--------------
### Graphiques
![Répartition des directions](./DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_rose.png)
![Développement par années](./DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year.png)
![Développement cumulé](./DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year_Cum.png)
<p align="center">
<img src="./DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_rose.png" alt="Répartition des directions" width="100%">
</p>
<p align="center">
<img src="./DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year.png" alt="Développement par années" width="100%">
</p>
<p align="center">
<img src="./DB_Synthese-PSM_LARRA_Stats/DB_Synthese-PSM_LARRA_year_Cum.png" alt="Développement cumulé" width="100%">
</p>
--------------
### Mise à jour
| | |
| :---------------- | :--- |
| Script pyThStat par | alexandre.pont@yahoo.fr |
| Version | 2026.10.27 |
| Fichier source | ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA.sql |
| Dossier destination | ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA_Stats |
| Date | 2026-10-27 09h35m07s |
| Durée calcul |02 (m) 45 (s) sans erreur |
| Fichier source | ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql |
| Dossier destination | ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats |
| Date | 2026-10-27 11h20m14s |
| Durée calcul |02 (m) 09 (s) sans erreur |
--------------
+2
View File
@@ -26,6 +26,7 @@
"inverseses",
"isolees",
"jonctionnées",
"LARRA",
"lastrowid",
"Lenght",
"LENGHT",
@@ -52,6 +53,7 @@
"Sornin",
"sqlite",
"suprimmees",
"Synthese",
"tempplot",
"Tete",
"thconfig",
+33 -6
View File
@@ -1545,6 +1545,29 @@ def calcul_stats(output_file_csv, output_file_md, filename="None"):
formatted_row = [str(v) for v in _row]
output_file_ligne_md.append("| " + " | ".join(formatted_row) + " |\n")
output_file_ligne_md.append("\n\n--------------\n")
output_file_ligne_md.append(
"### Graphiques\n\n"
f"![Répartition des directions]({output_file_name_rose}.png)\n\n" # type: ignore
f"![Développement par années]({output_file_name_year}.png)\n\n" # type: ignore
f"![Développement cumulé]({output_file_name_year}_Cum.png)\n\n" # type: ignore
f"""
<p align="center">
<img src="{output_file_name_rose}.png" alt="Répartition des directions" width="100%">
</p>
"""
f"""
<p align="center">
<img src="{output_file_name_year}.png" alt="Développement par années" width="100%">
</p>
"""
f"""
<p align="center">
<img src="{output_file_name_year}_Cum.png" alt="Développement cumulé" width="100%">
</p>
"""
)
output_file_ligne_md.append("\n\n--------------\n")
output_file_ligne_md.extend(
@@ -2011,7 +2034,7 @@ def sql_bilan_reseaux():
global error_count
global _largeurColTete
retour_totaux = []
retour_entrees = []
# retour_entrees = []
retour_reseaux = []
retour_visee = []
retour_sans = []
@@ -2976,7 +2999,8 @@ def Rose(graph_name, bins=72):
ax.bar(e[:-1], h, align="edge", width=e[1] - e[0])
# Save the rose diagram
plt.savefig(graph_name)
plt.savefig(graph_name + ".pdf")
plt.savefig(graph_name + ".png")
# Close the graph
plt.close(plt.figure(1))
@@ -3009,7 +3033,8 @@ def Shot_lengths_histogram(graph_name, bins=72, log=None):
plt.yscale("log")
# save
plt.savefig(graph_name)
plt.savefig(graph_name + ".pdf")
plt.savefig(graph_name + ".png")
plt.close(plt.figure(1))
@@ -3152,6 +3177,7 @@ def PlotExploYears(graph_name, rangeyear=[1959, datetime.now().year], systems=No
plt.ylabel("Longueur topographiée (m)")
# Save the histogram
plt.savefig(graph_name + ".pdf")
plt.savefig(graph_name + ".png")
plt.close(plt.figure(1))
# plot the cumulative histogram since the first survey
@@ -3159,7 +3185,8 @@ def PlotExploYears(graph_name, rangeyear=[1959, datetime.now().year], systems=No
plt.xlabel("Année")
plt.ylabel("Longueur topographiée cumulée (km)")
# Save the cumulative histogram
plt.savefig(graph_name + "Cum.pdf")
plt.savefig(graph_name + "_Cum.pdf")
plt.savefig(graph_name + "_Cum.png")
plt.close(plt.figure(1))
@@ -3257,8 +3284,8 @@ if __name__ == "__main__":
output_file_name_log = outputfolder + input_file[:-4] + "_log.log"
output_file_name = outputfolder + input_file[:-4] + "_stats"
output_file_name_rose = outputfolder + input_file[:-4] + "_rose.pdf"
output_file_name_histo = outputfolder + input_file[:-4] + "_histo.pdf"
output_file_name_rose = outputfolder + input_file[:-4] + "_rose"
output_file_name_histo = outputfolder + input_file[:-4] + "_histo"
output_file_name_year = outputfolder + input_file[:-4] + "_year"
imported_database = outputfolder + input_file[:-4] + "_stats.db"