Skip to content

terresolide/iaga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ISGI BCMT

Namespace Iaga

Contains:

  • Class Dataset: PHP class to read and to handle iaga file (geomagnetic data format)
  • Class Chart: to build chart

Use

  • Highcharts a javascript library to create interactive charts

Require

  • PHP >= 5.6

Install

With composer

In your composer.json:

  • Add repository: https://github.com/terresolide/iaga.git
  • Add require to: terresolide/iaga
   "repositories": [
	{
	    "type": "git",
	    "url": "https://github.com/terresolide/iaga.git"
	}
   ],
   "require": {
        "terresolide/iaga": "^0.3.0"
   },

Then update package

composer update

Without composer

Download the source iaga.zip and unzip and add it to library.

Examples

Export a iaga file to json (data and metadata)

@see tests/export-json.php or tests/export-json-autoload.php

  // create iaga Dataset from filepath
  $dataset = new \Iaga\Dataset('data/iaga_file.dat');
  
  // output
  header('Content-Type: application/json');
  echo $dataset->toJson();

Documentation

See more information in the wiki