Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

scaling_factors accessor #211

Closed
nollety opened this issue May 31, 2022 · 0 comments · Fixed by #225
Closed

scaling_factors accessor #211

nollety opened this issue May 31, 2022 · 0 comments · Fixed by #225
Assignees
Labels
enhancement New feature or request

Comments

@nollety
Copy link
Contributor

nollety commented May 31, 2022

Provide a scaling_factors accessor to compute the scaling factor to use in order to reach a target amount along the molecule dimension.

The accessor would be useful in coordinate with the rescale accessor:

ds = joseki.make(identifier="afgl_1986-midlatitude_summer")
factors = ds.joseki.scaling_factors(
    {
        "H2O": 40 * ureg.kg / ureg.m**2
    }
)  # returns {"H2O": 1.3403081516598105}
ds.joseki.rescale(factors=factors)
@nollety nollety added the enhancement New feature or request label May 31, 2022
@nollety nollety self-assigned this May 31, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant