Skip to content

Commit fcc6ecb

Browse files
committed
getting started
1 parent a324b64 commit fcc6ecb

19 files changed

+9264
-0
lines changed
12.4 MB
Binary file not shown.
12.4 MB
Binary file not shown.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import numpy as np
2+
from imageio import imread
3+
import matplotlib.pyplot as plt
4+
from mpl_toolkits.mplot3d import Axes3D
5+
from matplotlib import cm
6+
import numpy as np
7+
from numpy.random import normal, uniform
8+
9+
# Load the terrain
10+
terrain = imread('SRTM_data_Norway_1.tif')
11+
12+
N = 1000
13+
m = 5 # polynomial order
14+
terrain = terrain[:N,:N]
15+
# Creates mesh of image pixels
16+
x = np.linspace(0,1, np.shape(terrain)[0])
17+
y = np.linspace(0,1, np.shape(terrain)[1])
18+
x_mesh, y_mesh = np.meshgrid(x,y)
19+
20+
z = terrain
21+
X = create_X(x_mesh, y_mesh,m)
22+
23+
24+
# Show the terrain
25+
plt.figure()
26+
plt.title('Terrain over Norway 1')
27+
plt.imshow(terrain, cmap='gray')
28+
plt.xlabel('X')
29+
plt.ylabel('Y')
30+
plt.show()

doc/Projects/2025/Project1/html/._Project1-bs000.html

Lines changed: 764 additions & 0 deletions
Large diffs are not rendered by default.

doc/Projects/2025/Project1/html/Project1-bs.html

Lines changed: 764 additions & 0 deletions
Large diffs are not rendered by default.

doc/Projects/2025/Project1/html/Project1.html

Lines changed: 785 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)