Skip to content

astrojs/wcsjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Astronomical coordinates for various projections in Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages