Skip to content

Releases: csyhuang/hn2016_falwa

Bugfix for interpolation procedure for even-number latitude grid

29 Feb 00:48
Compare
Choose a tag to compare
  • Fixed a bug in the interpolation procedure when the input latitude grid is of even number of points
  • Updated the notes regarding the equation solver for the reference state (in notes/)

Use pytest instead of unittest for testing

15 Sep 23:34
cb734f4
Compare
Choose a tag to compare
  • Replaced unittest with pytest for more flexibility in testing
  • Improved the encapsulation of variables in the module oopinterface, e.g. methods like qgfield.get_lwa() are replaced by qgfield.lwa.

QGField can take in latitude grids with even number of grid points

28 Oct 21:30
ea50c6c
Compare
Choose a tag to compare
  • Enhanced functionality of the class QGField to process latitude grids with even number of grid points.
  • Enhanced interface of QGField with some functions to retrieve computed quantities at intermediate steps. See documentation of QGField for details.

Issue in compute_reference_states.f90 fixed.

07 Oct 02:06
Compare
Choose a tag to compare

Note for release v0.3.4

  • Fixed an issue in compute_reference_states.f90 that can potentially lead to segmentation fault error in computing tbar (issue #13).
  • Added unit tests for qgfield.compute_reference_states.

Added functionality to compute LWA zonal advective flux convergence

17 Jul 19:01
c9ba524
Compare
Choose a tag to compare
  • Added a function zonal_convergence in hn2016_falwa/utilities.py that it computes the zonal component
    of convergence in spherical coordinates
  • Added unittest for utilities.zonal_convergence in tests/test_utilities.py
  • Updated the demo scripts in examples/nh2018_science/ that it now computes LWA, LWA flux and their convergence/divergence
    and saves them in a netCDF file for 8 days (6-hourly data) in 2005.
  • Included a conda environment specification file examples/nh2018_science/environment.yml that enables one to
    run all the scripts with visualizations in the repository
  • Included examples/README.md with brief descriptions of the sample scripts
  • Updated descriptions in examples/nh2018_science/README.md

Included unit tests for all basis functions and oopinterface interpolation function

02 Jul 14:25
Compare
Choose a tag to compare
  • Unit tests for all functions in basis.py and the interpolation method of QGField in oopinterface.py are included.
  • Fixed a typo in hn2016_falwa/examples/nh2018_science/demo_script_for_nh2018.ipynb. Now, the timestamps in the figures are consistent with the source of data. Also, the latex symbols in the figure titles are fixed.
  • Modified a procedure in eqvlat in basis.py such that division by a zero differential area is avoided.

v0.2.1

26 Feb 06:56
Compare
Choose a tag to compare

List of changes (Feb 26, 2018):

  • hn2016_falwa/beta_version.py: In solve_uref_both_bc, a plotting option is added.
  • hn2016_falwa/wrapper.py: In all functions, when n_points are not specified, it is taken to be nlat_s (input). Also fixed a bug of missing argument n_points in theta_lwa.
  • hn2016_falwa/utilities.py: In static_stability, make s_et and n_et an integer if they are not input. In compute_qgpv_givenvort, remove the bug that nlat_s is being hard-coded by mistake.

v0.2.0

21 Nov 05:08
Compare
Choose a tag to compare

The package has been significantly restructured. The file api.py has been removed. Functions are classified into 4 different categories according to their structures.

For existing users: instead of using

from hn2016.api import function

please switch to, for example, if you want to use the wrapper function qgpv_eqlat_lwa

from hn2016 import wrapper
qref, lwa = wrapper. qgpv_eqlat_lwa(...)

Existing functions are categorized into 4 types: basis functions (basis), wrapper functions (wrapper), utility functions (utilities) and beta-version functions (beta_version). Please refer to the documentation for the lists.

Release note of hn2016_falwa v0.1.7

18 Apr 21:14
Compare
Choose a tag to compare

This version 0.1.7 has some major updates in function names and library structure.

Major updates:

  • Name of functions are all now in small letters.
  • The radius of planet (planet_radius) is now an optional input for the functions (default value: Earth's radius).
  • The function static_stability can now take in 2D (i.e. zonal mean) or 3D field of potential temperature.
  • The syntax in the sample IPython notebooks are updated. (see example/)
  • Unittest directory has been set up (tests/) and will be constantly updated.
  • A new function theta_lwa has been added to compute surface wave activity (See Huang and Nakamura (2016). It is the longitudinally local version of B^* in Nakamura and Solomon (2010) / Wang and Nakamura (2015)).

Note for existing users

  • Please change all characters in the names of functions into small letters.
  • The directory of functions can be access via hn2016_falwa.api instead of directly from hn2016_falwa.
  • The old function Solve_Uref_noslip has been renamed solve_uref_both_bc. The input fields are the same. The dimension-dependent parameters are functions of input instead of hard-coded in the previous version. Thanks @slubis for reminding.

hn2016_falwa v0.1.6

23 Mar 20:48
Compare
Choose a tag to compare

Added two new functions that allows computation of LWA based on prescribed equivalent-latitudes:

  • barotropic_input_Qref_to_compute_LWA
  • qgpv_input_Qref_to_compute_LWA