geomagnetism
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -6,2 +6,3 @@ var Model = require('./lib/model.js'); | ||
var modelData = [ | ||
require('./data/wmm-2020.json'), | ||
require('./data/wmm-2015v2.json'), | ||
@@ -8,0 +9,0 @@ require('./data/wmm-2015.json'), |
@@ -1,3 +0,1 @@ | ||
var path = require('path'); | ||
var GeodeticCoord = require('./coords/geodetic.js'); | ||
@@ -4,0 +2,0 @@ var Ellipsoid = require('./ellipsoid.js'); |
{ | ||
"name": "geomagnetism", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Computes geomagnetic field information", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,11 +15,11 @@ # geomagnetism | ||
```js | ||
var geomagnetism = require('geomagnetism'); | ||
const geomagnetism = require('geomagnetism'); | ||
// information for "right now" | ||
var info = geomagnetism.model().point([44.53461, -109.05572]); | ||
const info = geomagnetism.model().point([44.53461, -109.05572]); | ||
console.log('declination:', info.decl); | ||
// use a specific date | ||
var model = geomagnetism.model(new Date('12/25/2017')); | ||
var info = model.point([44.53461, -109.05572]); | ||
const model = geomagnetism.model(new Date('12/25/2017')); | ||
const info = model.point([44.53461, -109.05572]); | ||
console.log('declination:', info.decl); | ||
@@ -30,3 +30,3 @@ ``` | ||
Copyright © 2015–2018 [Natural Atlas, Inc.](https://naturalatlas.com/) & [Contributors](https://github.com/naturalatlas/geomagnetism/graphs/contributors) | ||
Copyright © 2015–2021 [Natural Atlas, Inc.](https://naturalatlas.com/) & [Contributors](https://github.com/naturalatlas/geomagnetism/graphs/contributors) | ||
@@ -33,0 +33,0 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47011
22
1819