File size: 1,525 Bytes
e702577
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# `train_test_mask.npy`

`train_test_mask.npy` stores the spatial sample-selection mask used to define
the GlobalMask training and testing subsets.

## Array definition

```text
shape: (360, 720)
dtype: int64
dimensions: [row, column]
spatial resolution: 0.5°
```

The mask contains 259,200 grid cells in total.

## Mask values

| Value | Meaning | Number of grid cells |
|---|---|---:|
| `0` | Grid cell not selected | 254,975 |
| `1` | Training sample | 3,373 |
| `2` | Testing sample | 852 |

## Selected samples

```text
training samples: 3,373
testing samples:  852
total selected:   4,225
```

The selected-cell counts match the sample dimensions of the released
GlobalMask arrays:

```text
GlobalMask/train: 3,373 samples
GlobalMask/test:    852 samples
```

## Approximate selection principle

The mask represents a sparse global sample rather than all 0.5° grid cells.
Candidate land grid cells were spatially subsampled at approximately every
four grid cells to reduce redundancy while retaining broad geographic
coverage. The selected cells were then divided into training and testing
subsets at approximately an 80:20 ratio.

Grid cells not included in the sampled set are assigned `0`, training cells
are assigned `1`, and testing cells are assigned `2`.

## Loading example

```python
import numpy as np

mask = np.load("metadata/train_test_mask.npy")

train_rows, train_cols = np.where(mask == 1)
test_rows, test_cols = np.where(mask == 2)

print(mask.shape)
print(len(train_rows))
print(len(test_rows))
```