Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 678 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 678 Bytes

wcsjs

wcsjs is a Javascript port of Mark Calabretta's WCSLIB using Emscripten. The library works in either NodeJS or in the browser.

Usage

NodeJS

var wcs = require('wcs');

var w = new wcs();
w.init(headerString);
var world = w.pix2sky(x, y);
var pixcrd = w.sky2pix(ra, dec);

Browser

<script src="wcs.js" type="text/javascript"></script>
<script type="text/javascript">
  var w = new wcs();
  w.init(headerString);
  var world = w.pix2sky(x, y);
  var pixcrd = w.sky2pix(ra, dec);
</script>