Cloudmetrics

Latest version: v0.3.0

Safety actively analyzes 623616 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.0

[Full Changelog](https://github.com/cloudsci/cloudmetrics/compare/v0.2.0...v0.3.0)

*new features*

- scalar field standard deviation metric, available as `scalar.std`
[\64](https://github.com/cloudsci/cloudmetrics/pull/64) By Leif Denby
(leifdenby)

*changed defaults*

- open-sky metric calculation (`mask.open_sky`) now only returns max-value by
default [\65](https://github.com/cloudsci/cloudmetrics/pull/65) Leif Denby
(leifdenby)

*maintenance*

- refactored `cloudmetrics.mask.open_sky` for better performance
[\72](https://github.com/cloudsci/cloudmetrics/pull/72) Hauke Schulz
(observingClouds)
- removed caching of regionproperties for each image that is calculated, to
prevent memory accumulation
[\73](https://github.com/cloudsci/cloudmetrics/pull/73) Martin Janssens
- updated isort and removed nb-black to work with latest package versions
[\71](https://github.com/cloudsci/cloudmetrics/pull/71) Martin Janssens
- handle fully cloudy scenes in open-sky metric (previously broke, now returns
zero)
[\67](https://github.com/cloudsci/cloudmetrics/pull/67) Leif Denby
- add zenodo DOI badge and citation information
[\66](https://github.com/cloudsci/cloudmetrics/pull/66) Leif Denby
(leifdenby)
- fix ci/cd pre-commit setup by pinning to python 3.8 for linting step and
remove unused conda environment
[\80](https://github.com/cloudsci/cloudmetrics/pull/80) Leif Denby
(leifdenby)

0.2.0

[Full Changelog](https://github.com/cloudsci/cloudmetrics/compare/v0.1.0...v0.2.0)

First release of `cloudmetrics` package! All methods that operate on masks are
available in `cloudmetrics.mask` (e.g.
`cloudmetrics.mask.fractal_dimension(mask)`), those that operate on
labelled-objects are in `cloudmetrics.objects` (e.g.
`cloudmetrics.objects.iorg(labelled_objects)`) and can be used directly on
masks with wrapped function calls in `cloudmetrics.mask.{metric_name}_objects`
(e.g. `cloudmetrics.mask.iorg_objects(mask)`). Finally, all metrics that
operate on scalar fields are in `cloudmetrics.scalar` (e.g.
`cloudmetrics.scalar.kurtosis(scalar_field, mask)`).

*new features*

- Refactor iorg metric to use object-labels as argument (now available as
`cloudmetrics.mask.iorg_objects` and `cloudmetrics.objects.iorg`) and combine
methods using either a) inhibition nearest-neighbour or b) Poisson reference
distribution into single function taking `reference_dist` as argument.
[\54](https://github.com/cloudsci/cloudmetrics/pull/54) By Leif Denby
(leifdenby)

- Refactor SCAI metric (now available as `cloudmetrics.objects.scai` and
`cloudmetrics.mask.scai_objects`) and add test which accounts for change in
SCAI value with resolution
[\42](https://github.com/cloudsci/cloudmetrics/pull/42)
By Leif Denby & Martin Janssens (leifdenby & martinjanssens)

- Add metrics for statistical reductions of scalar fields (either globally or
masked) available as `cloudmetrics.scalar.mean`, `cloudmetrics.scalar.var`,
`cloudmetrics.scalar.skew` and `cloudmetrics.scalar.kurtosis`
[\46](https://github.com/cloudsci/cloudmetrics/pull/46) By Leif Denby &
Martin Janssens (leifdenby & martinjanssens)

- Refactored Convective Organisation Potential (COP) metric, now available in
`cloudmetrics.objects.cop` and `cloudmetrics.mask.cop_objects`
[\41](https://github.com/cloudsci/cloudmetrics/pull/41) By Leif Denby &
Martin Janssens (leifdenby & martinjanssens)

- Refactored metrics into common api based on what input each operates on, so
that metrics are now in submodules called `cloudmetrics.mask`,
`cloudmetrics.objects` and `cloudmetrics.scalar`.
[\39](https://github.com/cloudsci/cloudmetrics/pull/39). By Leif Denby
(leifdenby)

- Refactored cloud-object metrics that cmopute geometry metrics of labelled
objects [\23](https://github.com/cloudsci/cloudmetrics/pull/23). By Leif
Denby (leifdenby)

- Change build setup to use `setup.cfg` and setup linting using
[pre-commit](https://pre-commit.com/#usage).
[\38](https://github.com/cloudsci/cloudmetrics/pull/32). By Leif Denby
(leifdenby)

- Refactored wavelet organisation indices, now available as
`woi1=cloudmetrics.woi1(...)`, `woi2=cloudmetrics.woi2(...)` and
`woi3=cloudmetrics.woi3(...)`
[\32](https://github.com/cloudsci/cloudmetrics/pull/32). By Leif Denby
& Martin Janssens (leifdenby & martinjanssens)

- Refactored orientation metric calculation, now available as
`cloudmetrics.orientation(...)`
[\24](https://github.com/cloudsci/cloudmetrics/pull/24). By Leif Denby
& Martin Janssens (leifdenby & martinjanssens)

- Refactored "open sky" (clear sky) metric calculation, now available as
`cloudmetrics.open_sky(...)`
[\22](https://github.com/cloudsci/cloudmetrics/pull/22). By Leif Denby
& Martin Janssens (leifdenby & martinjanssens)

- Refactored iorg metric calculation, now available as `cloudmetrics.iorg(...)`
[\21](https://github.com/cloudsci/cloudmetrics/pull/21). By Leif Denby
& Martin Janssens (leifdenby & martinjanssens)

- Refactored spectral metric calculation, now available to calculate all
spectral metrics as `cloudmetrics.scalar.compute_all_spectral(...)`
[\30](https://github.com/cloudsci/cloudmetrics/pull/30),
[\36](https://github.com/cloudsci/cloudmetrics/pull/36). By Leif Denby
& Martin Janssens (leifdenby & martinjanssens)

- Add tests for producing spatially-continuous object masks and for computing
nearest-neighbor distances on periodic domains
[\61](https://github.com/cloudsci/cloudmetrics/pull/61). leifdenby &
martinjanssens

*maintenance*

- set up package versioning with `setuptools_scm` and create v0.2.0 release
[\62](https://github.com/cloudsci/cloudmetrics/pull/62) By leifdenby

- update `black` version to address recent breaking change in black's
dependency on `click`
[\59](https://github.com/cloudsci/cloudmetrics/pull/59) By Leif Denby
(leifdenby)

- ci action to automatically deploy releases on github to pypi
[\53](https://github.com/cloudsci/cloudmetrics/pull/53). By Leif Denby
(leifdenby)

- Code cleanup and setup of continuous integration testing
[\19](https://github.com/cloudsci/cloudmetrics/pull/19),
[\55](https://github.com/cloudsci/cloudmetrics/pull/55). By Leif Denby
(leifdenby)

0.1.0

Metric calculation implementations as used in M. Janssens et al 2021
(https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2020GL091001)

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.