geomagnetic

Parser for getting Earth magnetic fields values from www.swpc.noaa.gov

  • 所有者: vodolaz095/geomagnetic
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Geomagnetic

Parser for getting Earth magnetic field parameters from
Space Weather Prediction Center -
http://www.swpc.noaa.gov/.

Build Status
NPM version

Description

This is simple pure nodejs data scrapper, that grabs data primary and secondary
Goes Magnetometers
and parses them as array.

Graph of electomagnetic field magnitude

Usage


    var geomagnetic = require('geomagnetic');
    geomagnetic.getPrimary(function(err,data){
      if(err) throw err;
      console.log(data);
    });
    geomagnetic.getSecondary(function(err,data){
      if(err) throw err;
      console.log(data);
    });


will return something like:


     [
      { timestamp: 1399158180000,
        time: Sun May 04 2014 03:03:00 GMT+0400 (MSK),
        Hp: 63.7,
        He: 75.2,
        Hn: -7.73,
        total: 98.8,
        units: 'nanotesla (nT)'
      },
      { timestamp: 1399158240000,
        time: Sun May 04 2014 03:04:00 GMT+0400 (MSK),
        Hp: 64.4,
        He: 76.2,
        Hn: -9.04,
        total: 100,
        units: 'nanotesla (nT)'
      },
      { timestamp: 1399158300000,
        time: Sun May 04 2014 03:05:00 GMT+0400 (MSK),
        Hp: 64.5,
        He: 77.1,
        Hn: -9.51,
        total: 101,
        units: 'nanotesla (nT)'
      }
     ]

The data is an array of objects with 4 fields:

timestamp - unix timestamp of moment when current measures are taken

time - javascript object of Date of moment when current measures are taken

Hp - component perpendicular to the satellite orbital plane or parallel to the Earth's spin axis

He - component perpendicular to Hp and directed earthwards

Hn - component perpendicular to both Hp and He, directed eastwards

total - absolute value of magnetic field - sqrt(Hp^2+He^2+Hn^2).

All data have units in nanoteslas - nT.

Note 1: total is probably measured by omni directional solenoid system,
not counted from He, Hp, Hn, so there is <5% discrepance.

Note 2: sometimes there is -100000 values for magnetic fields magnitutes.
This is probably the error in data transfer or a way to show that data was
not properly acquired. So, the user of library can simply negate this values.

Copyright

The MIT License (MIT)

Copyright (c) 2013 Anatolij Ostroumov ostroumov095 at gmail dot com

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

主要指标

概览
名称与所有者vodolaz095/geomagnetic
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2013-10-07 21:55:03
推送于2015-10-12 02:27:23
最后一次提交2015-10-12 05:27:14
发布数0
用户参与
星数8
关注者数2
派生数5
提交数11
已启用问题?
问题数0
打开的问题数0
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?