Skip to content

Commit

Permalink
linguist vendored
Browse files Browse the repository at this point in the history
test template
  • Loading branch information
scivision committed Aug 22, 2018
1 parent fe4d148 commit 8941ac1
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
@@ -1,3 +1,5 @@
src/* linguist-vendored

.gitattributes text eol=lf
.gitignore text eol=lf
Makefile text eol=lf
Expand Down
3 changes: 0 additions & 3 deletions .travis.yml
@@ -1,6 +1,4 @@
language: python
sudo: required
dist: xenial
group: travis_latest

git:
Expand All @@ -9,7 +7,6 @@ git:

python:
- 3.6
- 3.7

os:
- linux
Expand Down
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -55,6 +55,20 @@ python setup.py build_ext --inplace --compiler=mingw32
![image](figures/iri2DExample01.png)
* Latitude vs Longitude: plot of foF2 a function of geographic latitude and [longitude](scripts/iri2DExample02.py)
![image](figures/iri2DExample02.png)

### Matlab
Many Python programs--including IRI2016--are readily accessible from Matlab.
Here's what's you'll need:

1. Python ≥ 3.6. Check which Python version you have simply by typing from Terminal/Command Prompt (not in Matlab)
```sh
python3
```
If you need to install Python, consider [Miniconda](https://conda.io/miniconda.html) as it's a small install (normally, use the 64-bit version).
2. Matlab ≥ R2017b, as this is when Python 3.6 was enabled.
If you're stuck with older Matlab < R2017b, you can try to [force-enable Python 3.6](https://www.scivision.co/matlab-python-user-module-import/)
3. The function [iri2016.m](iri2016.m) gives some examples of what you can do (run, plot) IRI2016 from Matlab calling Python (and ultimately the original Fortran code).
The functions in that file `xarrayind2vector()` and `xarray2mat()` translate Python's advanced Xarray N-D data structures to Matlab arrays.

## Notes

Expand Down
12 changes: 0 additions & 12 deletions README_matlab.md

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test_mod.py
Expand Up @@ -29,4 +29,4 @@ def test_altitude_profile():


if __name__ == '__main__':
pytest.main(['-x', __file__])
pytest.main(['-xv', __file__])
2 changes: 1 addition & 1 deletion tests/test_scripts.py
Expand Up @@ -22,4 +22,4 @@ def test_alt():


if __name__ == '__main__':
pytest.main(['-x', __file__])
pytest.main(['-xv', __file__])

0 comments on commit 8941ac1

Please sign in to comment.