Skip to content

Commit

Permalink
Missing test file
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierCLL committed Dec 15, 2024
1 parent a520d8c commit 8bd49d3
Showing 1 changed file with 227 additions and 0 deletions.
227 changes: 227 additions & 0 deletions tests/data/test_sample_size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
!!python/object/apply:collections.OrderedDict
- - - general
- config_file_version: 241000
- - thematic_map
- band: 2
nodata: '0'
path: test_stack.tif
- - sampling_design
- simple_random_sampling:
automatic_random_seed: false
classes_selected_for_sampling: 35,46
min_distance: 1000.0
min_neighbors_with_the_same_class: '4'
num_neighbors: '8'
num_samples: 1
num_samples_confidence_interval: 95%
num_samples_half_width_ci: 4.0%
num_samples_overall_accuracy: 85%
post_stratification: true
post_stratification_map_band: 2
post_stratification_map_nodata: ''
post_stratification_map_path: test_stack.tif
random_sampling_options: true
random_seed_by_user: '12345'
with_neighbors_aggregation: true
with_random_seed_by_user: true
stratified_random_sampling:
automatic_random_seed: false
min_distance: 500.0
min_neighbors_with_the_same_class: '2'
minimum_samples_per_stratum: 30
num_neighbors: '8'
overall_std_error: 0.007
random_sampling_options: true
random_seed_by_user: '12345'
sampling_random_method: Area based proportion (using overall std error)
stratification_map_band: 2
stratification_map_nodata: '0'
stratification_map_path: test_stack.tif
stratified_random_sampling_table:
'On':
- false
- true
- false
- false
- true
- false
- false
- false
- false
- false
- true
- false
- false
- false
- false
- false
column_count: 5
header:
- Pix Val
- Color
- Num Samples
- Ui
- 'On'
num_samples:
- '0'
- '17'
- '0'
- '0'
- '6'
- '0'
- '0'
- '0'
- '0'
- '0'
- '179'
- '0'
- '0'
- '0'
- '0'
- '0'
pixel_count:
- 11
- 44
- 22
- 49
- 17
- 2
- 1
- 1
- 79
- 5
- 468
- 57
- 3
- 1
- 15
- 24
row_count: 16
ui:
- '0.01'
- '0.01'
- '0.01'
- '0.01'
- '0.01'
- '0.01'
- '0.01'
- '0.01'
- '0.01'
- '0.01'
- '0.01'
- '0.01'
- '0.01'
- '0.01'
- '0.01'
- '0.01'
values_and_colors_table:
Alpha:
- 255
- 255
- 255
- 255
- 255
- 255
- 255
- 255
- 255
- 255
- 255
- 255
- 255
- 255
- 255
- 255
Blue:
- 226
- 41
- 155
- 102
- 142
- 76
- 92
- 98
- 230
- 78
- 93
- 223
- 17
- 222
- 201
- 202
Green:
- 104
- 223
- 34
- 116
- 230
- 201
- 206
- 63
- 158
- 207
- 159
- 73
- 211
- 54
- 210
- 111
Pixel Value:
- 34
- 35
- 36
- 37
- 38
- 40
- 42
- 43
- 44
- 45
- 46
- 47
- 49
- 51
- 52
- 53
Red:
- 104
- 190
- 235
- 220
- 18
- 91
- 229
- 212
- 120
- 38
- 229
- 125
- 107
- 231
- 71
- 175
with_neighbors_aggregation: true
with_random_seed_by_user: true
systematic_sampling:
automatic_random_seed: false
classes_selected_for_sampling: 35, 46
initial_inset: 500.0
initial_inset_mode: Fixed
max_xy_offset: 200.0
min_neighbors_with_the_same_class: '3'
num_neighbors: '8'
num_samples_confidence_interval: 85%
num_samples_half_width_ci: 3.0%
num_samples_overall_accuracy: 90%
points_spacing: 1028.9
post_stratification: true
post_stratification_map_band: 2
post_stratification_map_nodata: ''
post_stratification_map_path: test_stack.tif
random_sampling_options: true
random_seed_by_user: '4321'
with_neighbors_aggregation: true
with_random_seed_by_user: true
tab_activated: 0
- - analysis
- estimator: ''

0 comments on commit 8bd49d3

Please sign in to comment.