Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lsst-epo/cat2geojson
A script to convert ASCII white space separated object catalogs into GeoJSON features
https://github.com/lsst-epo/cat2geojson
Last synced: 4 days ago
JSON representation
A script to convert ASCII white space separated object catalogs into GeoJSON features
- Host: GitHub
- URL: https://github.com/lsst-epo/cat2geojson
- Owner: lsst-epo
- Created: 2015-02-01T20:46:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-01T23:33:14.000Z (almost 10 years ago)
- Last Synced: 2023-05-02T23:28:45.945Z (over 1 year ago)
- Language: JavaScript
- Size: 135 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
cat2geojson
===A script to convert ASCII white space separated object catalogs into GeoJSON features.
The expected catalog format is:
ID RA DEC MAG MAG-ERROR
CFHTLS-D-R-J221427.59-181425.4 333.6149701 -18.2403893 13.7879 0.0000Setup
--npm install
Usage
--### Options
```
cat2geojson.js [-l|--limit ] [-o|--output ]
cat2geojson.js [--minmag ] [--maxmag ] ...
cat2geojson.js [-d|--debug] ...
cat2geojson.js [-h|--help]
```### Example
Filter catalog for objects with a magnitude <= 14 and limit the output to a
maximum of 10 objects.wget https://s3.amazonaws.com/lsst-epo/testdata/D4.R.cat
./cat2geojson.js D4.R.cat --maxmag 14 --limit 10 --output d4.json#### Set CRS
./cat2geojson.js D4.R.cat --maxmag 14 --limit 10 --crs urn:ogc:def:crs:d4 -o d4.json