Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.0000

Setup
--

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