Skip to content

026 feature random sampler - #31

Open
b-barton wants to merge 6 commits into
mainfrom
026-feature-random-sampler
Open

026 feature random sampler#31
b-barton wants to merge 6 commits into
mainfrom
026-feature-random-sampler

Conversation

@b-barton

@b-barton b-barton commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

This fixes #26 . The random sampler can improvise a fully rnadom set of profiles that fall on the model grid. It insure they fall on the model land by checking if they're masked and requesting more random profiles to replace ones that were on land. By giving the random sampler a 2D probability map the sampler will produce a set of locations that are on the modle grid, follow the probability distribution and not on land.
There are tests for checking the right number of profiles are made and the returned dataset is the same structure as the NNSampler.

@b-barton b-barton linked an issue Aug 5, 2026 that may be closed by this pull request
@b-barton

b-barton commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author
probability_profiles

A plot of a synthetic probability map and contours of the count of improvised profiles produced by RandomSampler. Lon less than 4 is masked as land in the model and set to zero in the probabilities.

@b-barton b-barton self-assigned this Aug 5, 2026
@b-barton
b-barton requested review from atb299 and oj-tooth August 5, 2026 16:38
@b-barton b-barton added the mod:sampler Relates to sampling modules. label Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:sampler Relates to sampling modules.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] Random sampler

1 participant