Skip to content

Commit

Permalink
adjust some parameters of cli workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustinMortier committed Feb 12, 2025
1 parent 89cf80a commit 029b4b9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
12 changes: 6 additions & 6 deletions aprofiles/cli/utils/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ def workflow(path, instruments_types, base_dir, CFG, verbose=False):
if profiles.data.attrs['instrument_type'] in instruments_types:

# extrapolation lowest layers
profiles.extrapolate_below(z=150., inplace=True)

# detection
profiles.foc(zmin_cloud=250.)
profiles.extrapolate_below(z=260., inplace=True)

# cloud detection
if "cloud" in CFG["parameters"][profiles.data.instrument_type]:
if "method" in CFG["parameters"][profiles.data.instrument_type]["cloud"]:
cloud_method = CFG["parameters"][profiles.data.instrument_type]["cloud"]["method"]
profiles.clouds(cloud_method, time_avg=1, zmin=250., thr_noise=5., thr_clouds=4., verbose=verbose)
profiles.clouds(cloud_method, time_avg=1, zmin=300., thr_noise=5., thr_clouds=4., verbose=verbose)

profiles.pbl(zmin=200., zmax=3000., under_clouds=False, min_snr=1., verbose=verbose)
# foc and pbl
profiles.foc(zmin_cloud=300.)
profiles.pbl(zmin=300., zmax=3000., under_clouds=False, min_snr=1.5, verbose=verbose)

# retrievals
# inversion method selection
Expand Down
5 changes: 5 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

:material-history:{ style="text-align: center; font-size: xx-large; display: block" }

## 0.12.5
Feb 12, 2025

- adjust some parameters in cli workflow

## 0.12.4
Feb 11, 2025

Expand Down
8 changes: 5 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ def main(path):

# extrapolation lowest layers
# profiles.plot(zmax=1000., log=True, vmin=1e-2, vmax=1e1)
#profiles.extrapolate_below(z=150, inplace=True)
profiles.extrapolate_below(z=260, inplace=True)
#profiles.plot(
# zref='agl', log=True, vmin=1e-2, vmax=1e1,
# save_fig="docs/assets/images/QL-Oslo-20210909.png"
#)
#profiles.plot(zref='agl', show_foc=False, show_clouds=False, show_pbl=False, log=True, vmin=1e-2, vmax=1e1, zmax=6000.)
# detection
profiles.clouds()
profiles.foc(zmin_cloud=200)
profiles.foc(zmin_cloud=300)

profiles.pbl(zmin=200, zmax=3000, under_clouds=False, min_snr=2., verbose=True)
profiles.pbl(zmin=300, zmax=3000, under_clouds=False, min_snr=1.5, verbose=True)

# plot image
#profiles.plot(zref='agl', show_foc=False, show_clouds=True, show_pbl=False, log=True, vmin=1e-2, vmax=1e1, save_fig="docs/assets/images/clouds.png")
Expand Down Expand Up @@ -88,4 +88,6 @@ def main(path):
# read some data
#path = "examples/data/E-PROFILE/L2_0-20000-006735_A20210908.nc"
path = "examples/data/E-PROFILE/L2_0-20000-001492_A20210909.nc"
#path = "data/e-profile/2025/02/12/L2_0-20000-0-01492_A20250212.nc"

main(path)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aprofiles"
version = "0.12.4"
version = "0.12.5"
description = "Analysis of atmospheric profilers measurements"
authors = ["augustinm <augustinm@met.no>"]
license = "GPL-3.0"
Expand Down

0 comments on commit 029b4b9

Please sign in to comment.