You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add linke turbidity formulas module to atmosphere (#278)
* add linke turbidity formulas module
* add kasten 1996 pyrheliometric formula for linke turbidity factor
* move atmosphere into package, just for fun, why not?
* make __init__ with same api as before
Signed-off-by: Mark Mikofski <[email protected]>
* ignore venv, sublime
* revert api changes from 6e9aaf0
* append linke_turb_forms.py to atmosphere.py
* rm -rf atmosphere/
Signed-off-by: Mark Mikofski <[email protected]>
* move demo to tests
* import xrange from six for python 3 compatibility
* fix pyrheliometric formula is from 1980
* fix docstring
* just use `range` instead of importing `six`
* change function to `kasten80_lt` to match `gueymard94_pw`
* start adding references
* test kaste96_lt against linke turbidity using tmy3 at 700nm
* add lots of references
* cite text quoted directly from Ineichen
* acknowledge Armel
* fix docstrings for numpydocs
* removing filters from kasten pyrhelometric formula
* refactor kasten96_lt api simpler
* remove alpha argument
* update docstring to explain that if molineaux method, then aod is
shape is only aod at 700[nm] but if bird-hulstrom, then aod should be
both aod380 and aod500
* add see also to angstrom_aod_at_lambda
* add warning for air mass or pwat out of range
* check for bird-hulstrom, raise type error if neither molineaux nor
* also simplify angstrom_aod_at_lambda() api, change aod to aod0,
change lambda0 to lambda1, and add lambda0, update docstring
* update test_atmosphere.test_kasten96_lt with new changes
* add angstrom_alpha() method in atmosphere to calculate alpha
* simplify kasten96_lt API
* separate arguments so their shapes don't change depending on method,
ie: before aod could be 1, 2, N, N x 1 or N x 2 depending on whether
Molineaux or Bird-Hulstrom were used, now, there are 3 separate args,
aod700, aod380 and aod500.
* fix misspelling of Hulstrom, no "d", note several sources also make
this error :(
* add new methods to api.rst
* add test_angstrom tests
* add raises value error test for bad method
* add lower() to compare only lower case of method name
* add new linke and angstrom functions to api.rst
* fix more hulstrom errors, no "d"
* fix typos in referecnes
* add doi to sphinx docs as extlink
* add 'doi': ('http://dx/doi.org/%s', 'DOI: ') to extlink in conf.py
* change doi links everywhere to use :doi:`doi number` instead of links
* make landscape happy and use r"""docstring with :math:`\alpha`"""
* instead of """docstring with :math:`\\alpha`
* add Co-Action publishing for original Tellus A DOI before moving to
Taylor & Francis
* reformat long lines to make landscape happy :)
* use broadband AOD arg instead of methods
* change kasten96_lt AOD args to just a single arg called aod_bb for
broadband AOD
* remove "method" arg and if-then-else on method.lower() in
kasten96_lt()
* add note that according to Molineaux, aod at 700 nm is a good
approximation for broadband aod
* add new function bird_hulstrom80_aod_bb to atmosphere.py
* add it to api.rst
* add new test for bird_hulstrom80_aod_bb() to test_atmosphere.py
* update test_kasten96_lt() to use aod_bb
* use verbose names:
- s/am/airmass_absolute/g
- s/pwat/precipitable_water/g
* fix angstrom aod test to use more realistic values
* don't use brackets around units
* remove test for raises ValueError in test_kasten
* use hard coded test values instead of TMY3
* values span pwat range 0 - 5 cm, and airmass between 1 & 2.5 atm
* remove tmy3 file
* don't try Bird-Hulstrom, not necessary
* make pylint happy, isclose(a, b) a & b should be array or iterable
* remove unused imports
* fix test kasten
* fix assert np.isclose() should be scalar only
* super simplify test_kasten96_lt() to ranges of inputs and expected
outputs, don't need to compare to actual data, just test that method
is working nominally
* remove clearsky import from test_atmosphere
* add missing assert statements for tests
* update hulstrom expected value
* remove old melbourne-fl test data
0 commit comments