sede-open / pyELQ

The python Emission Localization and Quantification (pyELQ) code aims to maximize effective use of existing measurement data, especially from continuous monitoring solutions. The code has been developed to detect, localize, and quantify methane emissions from concentration and wind measurements.
https://sede-open.github.io/pyELQ/
Apache License 2.0
11 stars 4 forks source link

Modify threshold function for calculating coverage #11

Closed TannazH closed 4 months ago

TannazH commented 4 months ago

Description

source_model.py: Threshold function has been changed to a property of the source model as a lambda function, and it can be passed on by the user. The default of the threshold function has been changed from np.max(x) to np.quantile(x, 0.95)

gaussian_plume.compute_coverage: compute coverage input parameter is changed to remove the default (which was set to np.max) as now it uses the threshold_function passed on from the source_model

Fixes # (issue)

Type of change

Please delete options that are not relevant.

Jupyter Notebooks

No changes to Jupyter notebooks.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

The available test function for source_model and gaussian_plume are passed with this change. There is no need to add a new test.

Checklist: