Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emilyselwood/astro-grid
asteroid grid
https://github.com/emilyselwood/astro-grid
Last synced: about 1 month ago
JSON representation
asteroid grid
- Host: GitHub
- URL: https://github.com/emilyselwood/astro-grid
- Owner: emilyselwood
- License: mit
- Created: 2015-07-22T19:14:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-08T19:25:39.000Z (over 8 years ago)
- Last Synced: 2024-04-16T00:14:55.287Z (9 months ago)
- Language: Go
- Homepage: https://wselwood.github.io/astro-grid/
- Size: 72.1 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Astro Grid #
See https://wselwood.github.io/astro-grid/Astro-grid is a simple display of the data contained in the minor planet center orbit files.
You can select which dimension to use on each axis using the select boxes at the top of the page.
The graph shows each dimension with the colour indicating the number of asteroids in that cell.
## Running locally ##
You will need a working go installation. You should be able to get this from your package manager or
the [golang website](http://golang.org/). Make sure your GOPATH is set.You will also need a copy of the [minor planet center orbit file](http://minorplanetcenter.net/iau/MPCORB.html)
```
git clone https://github.com/wselwood/astro-grid.git
cd astro-grid
mkdir ./data
go build
./astro-grid -in $path_to_mpcorb.dat.gz -out ./data
```Now open index.html in your browser.
## Project structure ##
`main.go` contains the main loop.
`dimensions.go` defines the dimensions. Each Dimension has an extractor which defines how
to get the data from a minor planet record.`extractors.go` defines the extractors. This must define two things, how to find the cell for a given value
and how to find the base value for that cell. Tests are in `extractors_test.go``grid.go` contains the data structures that back the result grids while processing.
`index.html` contains the rendering code for the visualization. This uses D3.
## Contributions ##
All contributions are warmly welcomed. Please report bugs using the bug tracker the git hub project.
Please fork, branch and raise pull requests when submitting code changes. Any questions are probably a bug