Changes
Page history
Update Data treatment
authored
Dec 30, 2021
by
Marie Brunel
Hide whitespace changes
Inline
Side-by-side
Data-treatment.md
View page @
570aa89a
...
@@ -37,10 +37,9 @@ for pt in pts :
...
@@ -37,10 +37,9 @@ for pt in pts :
```
```
# Cell fraction to area
# Cell fraction to area
```
```
grid_surface = np.zeros((len(latitudes),len(longitudes))) # dim [30,33]
gridhectares = np.zeros((len(latitudes),len(longitudes)))
for lat,latitude in enumerate(latitudes) :
for lat,latitude in enumerate(latitudes) :
for lon,longitude in enumerate(longitudes) :
gridhectares[lat,:] = 110 * 110 * math.cos(math.pi*latitude/180) * 1/2 * 1/2 * 100
grid_surface[lat][lon] = 110 * 110 * math.cos(math.pi*latitude/180) * 1/2 * 1/2 * 100 #in ha
```
```
# Moving average
# Moving average
```
```
...
...
...
...