# Courbes de niveau légères, une par altitude, pour l'animation d'ouverture (du plus haut au plus bas). import json, math import numpy as np import contourpy from pnr import rdp, f c = json.load(open('carte.json', encoding='utf-8')) LAT0, LAT1, LON0, LON1 = 44.66, 45.31, 5.12, 5.82 H, W = 1560, 1200 z = np.fromfile('mnt.bil', '= 2: d += 'M' + 'L'.join(f'{f(x)} {f(y)}' for x, y in s) if d: niveaux.append([t, d]) json.dump(niveaux, open('intro.json', 'w')) print(len(niveaux), 'niveaux', sum(len(d) for _, d in niveaux) // 1024, 'Ko')