An error occurred while loading the file. Please try again.
-
Pierre-Antoine Rouby authored2de2c8e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"""
ZS was extracted from a netcdf file
"""
import numpy as np
ZS = """[ 300. 600. 900. 1200. 1500. 1800. 2100. 2400. 2700. 3000. 3300. 300.
600. 900. 1200. 1500. 1800. 2100. 2400. 2700. 3000. 300. 600. 900.
1200. 1500. 1800. 2100. 2400. 2700. 3000. 3300. 3600. 3900. 4200. 4500.
4800. 0. 300. 600. 900. 1200. 1500. 1800. 2100. 2400. 300. 600.
900. 1200. 1500. 1800. 2100. 2400. 2700. 3000. 600. 900. 1200. 1500.
1800. 2100. 2400. 2700. 3000. 3300. 3600. 3900. 0. 300. 600. 900.
1200. 1500. 1800. 2100. 0. 300. 600. 900. 1200. 1500. 1800. 2100.
2400. 2700. 3000. 0. 300. 600. 900. 1200. 1500. 1800. 2100. 2400.
2700. 3000. 3300. 300. 600. 900. 1200. 1500. 1800. 2100. 2400. 2700.
3000. 3300. 3600. 3900. 900. 1200. 1500. 1800. 2100. 2400. 2700. 3000.
3300. 3600. 3900. 600. 900. 1200. 1500. 1800. 2100. 2400. 2700. 3000.
3300. 3600. 900. 1200. 1500. 1800. 2100. 2400. 2700. 3000. 3300. 0.
300. 600. 900. 1200. 1500. 1800. 2100. 2400. 0. 300. 600. 900.
1200. 1500. 1800. 2100. 2400. 2700. 3000. 3300. 3600. 3900. 4200. 900.
1200. 1500. 1800. 2100. 2400. 2700. 3000. 3300. 3600. 3900. 4200. 900.
1200. 1500. 1800. 2100. 2400. 2700. 3000. 3300. 300. 600. 900. 1200.
1500. 1800. 2100. 2400. 2700. 3000. 600. 900. 1200. 1500. 1800. 2100.
2400. 2700. 3000. 3300. 3600. 600. 900. 1200. 1500. 1800. 2100. 2400.
2700. 3000. 3300. 600. 900. 1200. 1500. 1800. 2100. 2400. 2700. 3000.
3300. 3600. 0. 300. 600. 900. 1200. 1500. 1800. 2100. 2400. 2700.
3000. 3300. 300. 600. 900. 1200. 1500. 1800. 2100. 2400. 2700. 3000.
3300. 300. 600. 900. 1200. 1500. 1800. 2100. 2400. 2700. 3000.]"""
ZS_INT = [int(float(e)) for e in ZS[1:-1].split()]
ALTITUDES = sorted(set(ZS_INT))
# Create a ZS_INT with only the 23 first massifs
ZS_INT_23 = ZS_INT[:-10].copy()
# Create a ZS_INT with np.nan all altitudes corresponding to the 24th massif
ZS_INT_MASK = np.array(ZS_INT)
ZS_INT_MASK[-10:] = np.nan