argos-ruby

argos-ruby contains tools for working with Argos satellite tracking data and services:

  • Parsers for Argos legacy ASCII (DS/DAT and DIAG/DIA files)
  • SOAP web service client
  • Web service download tool
  • JSON conversion from ASCII and XML

Developed by staff at the Norwegian Polar Data Centre, Norwegian Polar Institute.

Webservice

$ argos-soap -o getXsd # does not require authentication
$ argos-soap --download archive/tracking/CLS  --username=USERNAME --password=PASSWORD --debug
$ argos-soap -o getXml --username=USERNAME --password=PASSWORD

See argos-soap for more usage examples.

Legacy file parsing

$ argos-ascii spec/argos/_ds/*.DAT
$ argos-ascii --action=source "spec/argos/_d*"
$ argos-ascii --filter='lambda {|d| d[:program] == 9660 and d[:platform] == 2189 }' spec/argos/_ds/990660_A.DAT

The source action provides a metadata summary, list of programs, platforms, etc.

JSON (via XSLT)

$ xsltproc lib/argos/_xslt/argos-json.xslt spec/argos/_soap/getXml.xml 

Install

$ gem install argos-ruby