Skip to content

aostools v2.2

Compare
Choose a tag to compare
@mjucker mjucker released this 03 Oct 02:38
· 162 commits to master since this release

Due to the rapid development of xarray's capabilities, many of the aostools functions based on numpy arrays are now much easier to perform. The aim is for future v3 to fully use xarray DataArrays. This release is therefore the first to require xarray, as some of the added functionality makes use of the much simpler way to manipulate arrays.
New Features:

  • 545acc1: ComputeWaveActivityFlux() computes Takaya & Nakamura 3D wave fluxes. These are equivalent to EP flux (ComputeEPfluxDiv()) if reference state is zonally symmetric and then zonal mean of fluxes is taken.
  • f484415:
    • PlotEPfluxArrows() Accepts ep1, ep2 computed from ComputeEPfluxDiv() and a figure and axes.
    • Projection() Creates a figure and axes with a world map projection from cartopy.
    • ERA2Model() Swaps longitude from -180,180 to 0,360 degrees and inverts the direction of latitude to plot EP flux arrows with correct scaling.
  • 320f3fa: eof() now accepts multi-dimensional arrays instead of only 1 time and 1 space dimensions. It assumes the first dimension to be time.
    Bugfixes:
  • 1d2fffd: ComputeSaturationMixingRatio() and ComputeRelativeHumidity() are now compatible in terms of input arguments.
  • 01368d1: AxRoll() and therefore all functions depending on it were not python 3 compatible due to the use of basestring, which does not exist in python 3. This is fixed now (and the function was also unnecessarily complicated).
  • 71ec5a4: GetWaves() now uses y=None as default instead of earlier y=[]. There was also a bug when y was not empty and do_anomaly=False. This is now corrected.