Retrieval Examples#
create-site supplies one zenith neural network recipe, NN_example.
To add another retrieval, run this from the project directory.
The site must already exist. See Create a Retrieval
for site setup.
openMWR create-retrieval my_site MLR_trial --example MLR
This creates sites/my_site/retrieval/MLR_trial/retrieval.toml.
MLR_trial is the new retrieval name. --example MLR selects the bundled
recipe to copy. The command copies it unchanged and refuses an existing retrieval
directory. It does not adapt settings to the site, train or build datasets.
Without --example, it copies the NN recipe.
Open the new file and review the dataset and station selection, inputs, outputs, training settings and any optimization settings. With the input datasets ready, train using the retrieval name:
openMWR train my_site MLR_trial
train runs optimization when the recipe contains search ranges. The retrieval
name does not control this. These recipes are starting points for an experiment.
Retrieval performance needs independent evaluation.
Example |
Model |
Download recipe |
|---|---|---|
|
Zenith neural network |
|
|
Zenith neural network with parameter searches |
|
|
Zenith multilinear regression |
|
|
Zenith multilinear regression with input-noise searches |
|
|
Boundary layer scan neural network |
|
|
Boundary layer scan neural network with parameter searches |
|
|
Spectral-consistency neural network |
|
|
Spectral-consistency neural network with parameter searches |
The downloads contain the same recipes as the command. To use a download,
save it as sites/<site>/retrieval/<name>/retrieval.toml.
The settings are explained in Recipe Settings.
After training, add the retrieval name to an evaluation recipe’s retrievals
list. Profile retrievals can use evaluations/radiosonde.toml.
For spectral comparisons, save this example as evaluations/spectral.toml and
adjust its retrieval name and reference selections:
schema_version = 1
retrievals = ["SPC_example"]
[observations]
dataset = "analysis_radiosonde"
station_id = "03715"
variables = ["TB"]
days_of_month = { first = 21, last = 31 }
[test]
dataset = "training"
# Omit sources to use every source in this split dataset.
# sources = ["03715"]
variables = ["TB"]
For Python workflows, use
openMWR.site.create_retrieval(site, name, project_dir, example="MLR").