Skip to content

Commit c09ee49

Browse files
author
Eric Culbertson
committed
update the examplanation of the fancy tile
Signed-off-by: Eric Culbertson <[email protected]>
1 parent 9488923 commit c09ee49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyrasterframes/src/main/python/docs/nodata-handling.pymd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,13 @@ display(sample[1])
148148

149149
## Changing a Tile's NoData Values
150150

151-
One way to mask a tile is to make a new tile with a user defined NoData value. We will explore this method below. First, lets create a rasterframe from a tile with values of 0, 1, 2, and 3.
151+
One way to mask a tile is to make a new tile with a user defined NoData value. We will explore this method below. First, lets create a rasterframe from a tile with values of 0, 1, 2, and 3. We will use numpy to create a 100x100 Tile with columns of 0, 1, 2, and 3.
152152

153153
```python create_dummy_tile
154154
tile_size = 100
155155
x = np.zeros((tile_size, tile_size), dtype='int16')
156156

157+
# setting the values of the columns
157158
for i in range(4):
158159
x[:, i*tile_size//4:(i+1)*tile_size//4] = i
159160
x = Tile(x)

0 commit comments

Comments
 (0)