Etiqueteur: October labels for 8 stations; its folder moves to labeling/auto/etiqueteur/, analyses and scripts versioned (D-126)
Labels for CLARIDEN, FLORIDA, JUNGFRAU (gaps 06-20.10, 26.10-01.11), LENZSPITZE, NIEDERHORN, NORDEND, SNCF01, WILDSTRUBEL. Figures and tool outputs stay out of git. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2bba388290
commit
6fbd7510b7
112 files changed
+8951
-6
No files matched your search
@@ -0,0 +1,15 @@
|
||||
"""Planche de la zone basse de la scène (où passent les véhicules) à plusieurs heures. usage: scene.py NOM H1,H2,... (AAAAMMJJTHHMM)"""
|
||||
import sys, glob
|
||||
import matplotlib; matplotlib.use("Agg")
|
||||
import matplotlib.pyplot as plt, matplotlib.image as mpimg
|
||||
D="data/BREITHORN/images"; nom=sys.argv[1]; hs=sys.argv[2].split(",")
|
||||
X0,X1,Y0,Y1=[int(v) for v in (sys.argv[3] if len(sys.argv)>3 else "0,2700,950,1750").split(",")]
|
||||
n=len(hs); c=4; r=(n+c-1)//c
|
||||
fig,ax=plt.subplots(r,c,figsize=(5*c,3.4*r)); ax=ax.ravel()
|
||||
for a,h in zip(ax,hs):
|
||||
f=glob.glob(f"{D}/{h}Z_*.jpg"); a.axis("off")
|
||||
if not f: a.set_title(h+" : pas d'image"); continue
|
||||
im=mpimg.imread(f[0])[Y0:Y1,X0:X1]
|
||||
a.imshow(im,cmap="gray",vmin=0,vmax=90,extent=(X0,X1,Y1,Y0)); a.set_title(h+"Z",fontsize=9)
|
||||
for a in ax[n:]: a.axis("off")
|
||||
fig.tight_layout(); p=f"labeling/auto/etiqueteur/BREITHORN_2026-10-01/scene-{nom}.png"; fig.savefig(p,dpi=80); print(p)
|
||||
Reference in new issue
Block a user