Fluxdataqaqc

Latest version: v0.2.2

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

Scan your dependencies

Page 1 of 3

0.2.2

-------------

Added method to write input data to a CSV file following the same standardized formatting and unit conversions that are implemented in ``qaqc.write``. This method is ``data.write``. This was done so that a user can easily rewrite the initially read data at its native time frequency that is often half-hourly or hourly as produced by eddy covariance processing software such as EddyPro. This is useful for creating input for sub-daily time series analyses that may be done in conjunction with ``flux-data-qaqc``.

Bug fixes related to internal automatic calculations for vapor pressure, vapor pressure deficit, saturation vapor pressure, and dew point temperature and data assignment not persisting until two calls to ``data.df``.

Fix multiple deprecation warnings caused by ``Pandas`` version 2, tested with version 2.2.2.

0.2.1

-------------

Added option to specify whether the threshold value used in the ``data.apply_qaqc_flags`` is to filter values that are less than or greater than the value given. Previously the function only removed data that were less than the threshold value.

Clean up dependencies in requirements.txt to match version 0.2.0 and keeping only tested and required packages.

Add new config file for ReadTheDocs, update sphinx to version 7.2.6 and fix deprecation errors.

0.2.0

-------------

Update dependencies to major new versions. ``Pandas`` was upgraded to version 1.0 and ``Bokeh`` to version 3.0. To accomodate these major dependency releases several functions' kwargs and syntax were modified to avoid deprecation errors and warnings. Because these version changes would not be backward compatible with previous versions for ``flux-data-qaqc``, it's version was also bumped up a minor version from 0.1 to 0.2. Tests were also run using Python version 3.10, previous Python versions may be compatible but were not tested.

0.1.6

-------------

Add automated tests using GitHb Actions, `see here <https://github.com/Open-ET/flux-data-qaqc/actions/workflows/fluxdataqaqc_tests.yml>`__ and added in description of how to run tests locally on docs.

Remove ``xlrd`` reader as a dependency due to outdated reading ability as a ``Pandas`` excel reader.

Other minor bug fixes related to ``Plot`` class.

Ass JOSS paper and publish software on Zenodo.

0.1.5

-------------

Add configuration writing function :func:`.util.write_configs` to ``util`` module to facilitate batch processing os similar formatted input files via a station metadata file and data dictionary.

Update check on energy balance ratio closure correction to also check if the inverse of the energy balance ratio is greater than 0.5, in other words :math:`\frac{1}{EBR} > |0.5|` to avoid closure correction factors that are too small. This check occurs both after step 3 and 6 of the energy balance closure correction routine.

0.1.4

-------------

Relax default allowance for missing days threshold from 90 (~ 3 days) to 80 % (~ 6 days) in the monthly resample algorithm. In other words if a month has more than 80 % missing daily values, its monthly aggregate will not be resampled, it will be replaced with a null value. The threshold is a keyword argument to the ``util.monthly_resample`` function, but the default is used in any automatic resampling of variables. As a reminder, the number of missing days per month which is tabulated for some variables can be used to fine tune this filter. This change was implemented in version 0.1.4.post1.

Add daily ASCE standardized reference ET calculation option from the :meth:`.QaQc.daily_ASCE_refET` method. Also added automatic estimation of daily maximum and minimum air temperature from input (e.g. hourly) data and added the input variables to the list of variables that are linearly interpolated before taking daily aggregates in the :obj:`.QaQc` constructor. In other words, the inputs to the daily ASCE reference ET formulation: ea, tmin, tmax, rs, wind speed, are interpolated over daytime and nighttime hourly gaps (2 and 4 default) before taking daily means, mins, maxs, and subsequently used in the daily ASCE calculations.

Changed default keyword argument ``reference`` to "short" of the :meth:`.Data.hourly_ASCE_refET` method.

Add automatic calculations for high frequency (e.g. hourly or half hourly) data including dew temperature and relative humidity from ea and es if available. The calculations occur when first loading input data, i.e. when :obj:`.Data.df` attribute is accessed. Saturation vapor pressure (es) if calculated at hourly/daily frequency is now saved and added to :obj:`.Data.df` and :obj:`.QaQc.df` properties.

Require Pandas >= 1.0, changes are not backwards compatible due to internal pandas argument deprecations particularly in the ``pandas.grouper`` object.

Require Bokeh >= 2.0, changes are not backwards compatible due to legend keyword argument name changes in Bokeh 2.

Minor changes to remove package deprecation warnings from ``Pandas`` and ``Bokeh`` related to their respective large changes.

Add package dependency ``openpyxl`` package as a fallback for reading in headers of Excel files when ``xlrd`` is unmaintained and failing with previously working tools for reading metadata on Excel files.

Add a requirements.txt file with package.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.