HarerunParser

Build Status

This is a library that parses the CSV file downloaded from Japan Meteorological Agency.

The format of CSV is on this page. http://www.data.jma.go.jp/gmd/risk/obsdl/top/help3.html

However, the data of the CSV file that can actually be downloaded starts from the sixth line.

Installation

Install gem yourself as:

$ gem install harerun_parser

Usage

harerun = Harerun::Parser.new(csv_file_path)
harerun.normalize do |day, place, header, value|
  p [day, place, header, value]
end

Development

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

  1. Fork it ( https://github.com/ganta.viii/harerun_parser/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request