项目作者: chompar4

项目描述 :
api for earths magnetic field strength values and isogonic line data
高级语言: Python
项目地址: git://github.com/chompar4/geomag.git
创建时间: 2020-07-14T00:30:58Z
项目社区:https://github.com/chompar4/geomag

开源协议:

下载


geomag

Build status

api for declination and isogonic lines using the WMM20 spherical harmonics model.

to see isogonic lines view the live map: [https://isogonic-map.herokuapp.com/]

Adapted from the geomagc software and World Magnetic Model of the NOAA
Satellite and Information Service, National Geophysical Data Center
http://www.ngdc.noaa.gov/geomag/WMM/DoDWMM.shtml

Calculations forked from: [https://github.com/cmweiss/geomag/]

Installation

  1. poetry install

Live

  1. https://isogonic-api.herokuapp.com/?lng=144.59537716183365&lat=-38.152063150975806&altitude_km=0&day=21&mth=8&yr=2020
  2. https://isogonic-api.herokuapp.com/isogon?yr=2020

Deployment

Use the poetry buildpack to deploy to heroku

  1. heroku buildpacks:clear
  2. heroku buildpacks:add https://github.com/moneymeets/python-poetry-buildpack.git
  3. heroku buildpacks:add heroku/python
  4. git push heroku master

Releases

To create a release use the command. If it complains you will need to pip install wheel first.

  1. python setup.py bdist_wheel

Reference:

See [https://www.ngdc.noaa.gov/geomag/WMM/]