Changes
Page history
Update Morocco
authored
Nov 17, 2021
by
Marie Brunel
Show whitespace changes
Inline
Side-by-side
Morocco.md
View page @
35769674
...
@@ -6,7 +6,6 @@ This page provides information about Morocco, its regions and the grids used for
...
@@ -6,7 +6,6 @@ This page provides information about Morocco, its regions and the grids used for
-
file location : /home/marie/nextCloud/Documents/lpjml5_maroc/python_toolbox/region_maroc/Maroc30_regions.nc
-
file location : /home/marie/nextCloud/Documents/lpjml5_maroc/python_toolbox/region_maroc/Maroc30_regions.nc
-
file structure :
\[
latitude,longitude,region(str)
\]
-
file structure :
\[
latitude,longitude,region(str)
\]
-
```
```
nc = Dataset("/home/marie/nextCloud/Documents/lpjml5_maroc/python_toolbox/region_maroc/Maroc30_regions.nc", mode='r')
nc = Dataset("/home/marie/nextCloud/Documents/lpjml5_maroc/python_toolbox/region_maroc/Maroc30_regions.nc", mode='r')
...
@@ -14,6 +13,10 @@ lat_maroc = nc.variables["latitude"][:]
...
@@ -14,6 +13,10 @@ lat_maroc = nc.variables["latitude"][:]
lon_maroc = nc.variables["longitude"][:]
lon_maroc = nc.variables["longitude"][:]
regions_maroc = nc.variables["region"][:]
regions_maroc = nc.variables["region"][:]
nc.close()
nc.close()
region_list = np.asarray(["Al Hoceima","Oriental","Fes-Meknes","Rabat-Kenitra",
"B-M-Khenifra","Casablanca-Settat","Marrakch-Safi",
"Draa-Tafilalet","Souss-Massa","G-Oued Noun",
"Sakia El Hamra","Oued Eddahab"])
```
```
# temporal list of grid cell
# temporal list of grid cell
...
...
...
...