mirror of
https://github.com/Alex38Lyon/Synthese-PSM_LARRA.git
synced 2026-11-30 04:08:35 +00:00
Graphiques
This commit is contained in:
1 parent
df20b1826b
commit
9eedbbf059
14 files changed
+122
-14
No files matched your search
Binary file not shown.
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: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 - 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 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.
Binary file not shown.
|
After Width: | Height: | Size: 89 KiB |
@@ -2,10 +2,10 @@
|
|||||||
║ Calcul des statistiques par entrées d'une BD Therion *
|
║ Calcul des statistiques par entrées d'une BD Therion *
|
||||||
║ Script pyThStat par : alexandre.pont@yahoo.fr *
|
║ Script pyThStat par : alexandre.pont@yahoo.fr *
|
||||||
║ Version : 2026.10.27 *
|
║ Version : 2026.10.27 *
|
||||||
║ Fichier source : ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA.sql *
|
║ Fichier source : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql *
|
||||||
║ Dossier destination : ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA_Stats *
|
║ Dossier destination : ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats *
|
||||||
║ Date : 2026-10-27 09h35m07s *
|
║ Date : 2026-10-27 11h20m14s *
|
||||||
* Durée calcul : 02 (m) 45 (s) sans erreur *
|
* Durée calcul : 02 (m) 09 (s) sans erreur *
|
||||||
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝*
|
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝*
|
||||||
**Développement total centerline (m):** développement: 340527.49 , dupliqué: 15625.25 , surface: 8956.61
|
**Développement total centerline (m):** développement: 340527.49 , dupliqué: 15625.25 , surface: 8956.61
|
||||||
Toutes les stations sont comptabilisées et raccordées
|
Toutes les stations sont comptabilisées et raccordées
|
||||||
|
|||||||
|
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
+27
-4
@@ -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 |
|
| 2026 | 257,03 | 340 527,49 | 0,00 | 15 625,25 | 0,00 | 8 956,61 |
|
||||||
|
|
||||||
|
|
||||||
|
--------------
|
||||||
|
### Graphiques
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
<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
|
### Mise à jour
|
||||||
| | |
|
| | |
|
||||||
| :---------------- | :--- |
|
| :---------------- | :--- |
|
||||||
| Script pyThStat par | alexandre.pont@yahoo.fr |
|
| Script pyThStat par | alexandre.pont@yahoo.fr |
|
||||||
| Version | 2026.10.27 |
|
| Version | 2026.10.27 |
|
||||||
| Fichier source | ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA.sql |
|
| Fichier source | ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA.sql |
|
||||||
| Dossier destination | ~/Synthese-PSM_LARRA/Outputs/DB_Synthese-PSM_LARRA_Stats |
|
| Dossier destination | ~\Synthese-PSM_LARRA\Outputs\DB_Synthese-PSM_LARRA_Stats |
|
||||||
| Date | 2026-10-27 09h35m07s |
|
| Date | 2026-10-27 11h20m14s |
|
||||||
| Durée calcul |02 (m) 45 (s) sans erreur |
|
| Durée calcul |02 (m) 09 (s) sans erreur |
|
||||||
|
|
||||||
--------------
|
--------------
|
||||||
+2
@@ -26,6 +26,7 @@
|
|||||||
"inverseses",
|
"inverseses",
|
||||||
"isolees",
|
"isolees",
|
||||||
"jonctionnées",
|
"jonctionnées",
|
||||||
|
"LARRA",
|
||||||
"lastrowid",
|
"lastrowid",
|
||||||
"Lenght",
|
"Lenght",
|
||||||
"LENGHT",
|
"LENGHT",
|
||||||
@@ -52,6 +53,7 @@
|
|||||||
"Sornin",
|
"Sornin",
|
||||||
"sqlite",
|
"sqlite",
|
||||||
"suprimmees",
|
"suprimmees",
|
||||||
|
"Synthese",
|
||||||
"tempplot",
|
"tempplot",
|
||||||
"Tete",
|
"Tete",
|
||||||
"thconfig",
|
"thconfig",
|
||||||
|
|||||||
@@ -1545,6 +1545,29 @@ def calcul_stats(output_file_csv, output_file_md, filename="None"):
|
|||||||
formatted_row = [str(v) for v in _row]
|
formatted_row = [str(v) for v in _row]
|
||||||
output_file_ligne_md.append("| " + " | ".join(formatted_row) + " |\n")
|
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"\n\n" # type: ignore
|
||||||
|
f"\n\n" # type: ignore
|
||||||
|
f"\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.append("\n\n--------------\n")
|
||||||
|
|
||||||
output_file_ligne_md.extend(
|
output_file_ligne_md.extend(
|
||||||
@@ -2011,7 +2034,7 @@ def sql_bilan_reseaux():
|
|||||||
global error_count
|
global error_count
|
||||||
global _largeurColTete
|
global _largeurColTete
|
||||||
retour_totaux = []
|
retour_totaux = []
|
||||||
retour_entrees = []
|
# retour_entrees = []
|
||||||
retour_reseaux = []
|
retour_reseaux = []
|
||||||
retour_visee = []
|
retour_visee = []
|
||||||
retour_sans = []
|
retour_sans = []
|
||||||
@@ -2976,7 +2999,8 @@ def Rose(graph_name, bins=72):
|
|||||||
ax.bar(e[:-1], h, align="edge", width=e[1] - e[0])
|
ax.bar(e[:-1], h, align="edge", width=e[1] - e[0])
|
||||||
|
|
||||||
# Save the rose diagram
|
# Save the rose diagram
|
||||||
plt.savefig(graph_name)
|
plt.savefig(graph_name + ".pdf")
|
||||||
|
plt.savefig(graph_name + ".png")
|
||||||
# Close the graph
|
# Close the graph
|
||||||
plt.close(plt.figure(1))
|
plt.close(plt.figure(1))
|
||||||
|
|
||||||
@@ -3009,7 +3033,8 @@ def Shot_lengths_histogram(graph_name, bins=72, log=None):
|
|||||||
plt.yscale("log")
|
plt.yscale("log")
|
||||||
|
|
||||||
# save
|
# save
|
||||||
plt.savefig(graph_name)
|
plt.savefig(graph_name + ".pdf")
|
||||||
|
plt.savefig(graph_name + ".png")
|
||||||
plt.close(plt.figure(1))
|
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)")
|
plt.ylabel("Longueur topographiée (m)")
|
||||||
# Save the histogram
|
# Save the histogram
|
||||||
plt.savefig(graph_name + ".pdf")
|
plt.savefig(graph_name + ".pdf")
|
||||||
|
plt.savefig(graph_name + ".png")
|
||||||
plt.close(plt.figure(1))
|
plt.close(plt.figure(1))
|
||||||
|
|
||||||
# plot the cumulative histogram since the first survey
|
# 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.xlabel("Année")
|
||||||
plt.ylabel("Longueur topographiée cumulée (km)")
|
plt.ylabel("Longueur topographiée cumulée (km)")
|
||||||
# Save the cumulative histogram
|
# 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))
|
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_log = outputfolder + input_file[:-4] + "_log.log"
|
||||||
output_file_name = outputfolder + input_file[:-4] + "_stats"
|
output_file_name = outputfolder + input_file[:-4] + "_stats"
|
||||||
output_file_name_rose = outputfolder + input_file[:-4] + "_rose.pdf"
|
output_file_name_rose = outputfolder + input_file[:-4] + "_rose"
|
||||||
output_file_name_histo = outputfolder + input_file[:-4] + "_histo.pdf"
|
output_file_name_histo = outputfolder + input_file[:-4] + "_histo"
|
||||||
output_file_name_year = outputfolder + input_file[:-4] + "_year"
|
output_file_name_year = outputfolder + input_file[:-4] + "_year"
|
||||||
imported_database = outputfolder + input_file[:-4] + "_stats.db"
|
imported_database = outputfolder + input_file[:-4] + "_stats.db"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user