aostools v2.2
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()
Acceptsep1, ep2
computed fromComputeEPfluxDiv()
and afigure
andaxes
.Projection()
Creates a figure and axes with a world map projection fromcartopy
.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()
andComputeRelativeHumidity()
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 ofbasestring
, which does not exist in python 3. This is fixed now (and the function was also unnecessarily complicated). - 71ec5a4:
GetWaves()
now usesy=None
as default instead of earliery=[]
. There was also a bug wheny
was not empty anddo_anomaly=False
. This is now corrected.