Skip to content

Releases: chrisroadmap/climateforcing

APRP fix

27 Feb 08:25
9fef6c9
Compare
Choose a tag to compare

This version fixes a slight inaccuracy in the APRP code.

Extend functionality of check_and_download

07 Dec 09:37
17cb0a0
Compare
Choose a tag to compare
  • Now enabled to specify a directory to download to, rather than having to give the full target filepath.
  • Will automatically create the target directory if it doesn't exist, rather than raise an error.

Humidity and UTCI again

20 May 21:43
27e5e3b
Compare
Choose a tag to compare

In this release the humidity relationship is rolled back to Alduchov and Eskridge (1996) as I didn't have a literature reference for the one I was using.

UTCI has the ability to take a surface pressure variable, which affects the humidity calculation and UTCI if specific humidity is provided to be converted to relative.

On the repo side, I think the leading "v" from the version tag no longer appears on conda releases, which is ideal.

Humidity fixes for UTCI

27 Apr 09:55
ebfdfe5
Compare
Choose a tag to compare

One main fix is the specific humidity calculation in the UTCI code, which was previously not covered by the tests and showed odd results. The humidity and UTCI code calculation of saturation vapour pressure is now the same.

The output from cos_mean_zenith_angle is transposed and is now on the same grid as the input data (which makes more sense).

The climate inputs to the utci module are now dicts of CMIP-style variables for consistency with the aprp module. This avoids the user having to remember which order to specify the variables in.

Addition of mean solar zenith angle

13 Apr 15:32
87d608e
Compare
Choose a tag to compare

Code added to calculate the mean solar zenith angle and lit fraction over a time period, for example a 3-hourly climate model output. Support exists for all calendars available in cftime. This is useful for solar energy and UTCI applications as it enables us to estimate what the time-averaged direct normal irradiance from a climate model might be given the total horizontal (rsds) and diffuse horizontal (rsdsdiff).

One other change: twolayermodel has default year length set to 365.24219 days, with option to specify it.

Some repository setup and refactoring

07 Apr 15:46
2f8cba7
Compare
Choose a tag to compare

Time for a release, as other projects will want to use utils.

  • added: utils module
  • added: geometry module
  • removed: masked array keyword in humidity
  • fixed: wrong global mean latitude weighting in aprp

Addition of Geoffroy/Held two layer model

19 Mar 10:03
ae73c6c
Compare
Choose a tag to compare

This minor version adds in the Geoffroy/Held two layer model. Thanks to Glen Harris.

from climateforcing.twolayermodel import TwoLayerModel
scm = TwoLayerModel()
out = scm.run()

See the code in src/climateforcing/twolayermodel for details.

Fix netCDF4 dependency in setup.py

23 Feb 15:02
Compare
Choose a tag to compare

This could be a long afternoon

Fix README and setup.py for PyPI

23 Feb 14:47
Compare
Choose a tag to compare
v0.0.1

one more setup.py error

First release of UTCI and APRP code

23 Feb 14:22
e4202ac
Compare
Choose a tag to compare

Working functions and tests inplemented for utci and aprp. Lots to do on repository setup still.