Giter Club home page Giter Club logo

pg_healpix's Introduction

					PG_HEALPIX
Author: Sergey Koposov, Institute of Astronomy, Cambridge
	and multiple HEALPIX authors    (C) 2012
Email: [email protected]

This software provides an SQL (PostgreSQL) interface for several 
HEALPIX functions, which allows you to convert the ra,dec coordinates 
into Healpix IDs and back. 

---------------------------------------------------------------------------------
Example:
wsdb=> select healpix_ang2ipix_nest(1024, 12., 25.);
 healpix_ang2ipix_nest
-----------------------
               5102321
(1 row)

wsdb=> select healpix_ang2ipix_ring(1024, 12., 25.);
 healpix_ang2ipix_ring
-----------------------
               3627144
(1 row)

wsdb=> select healpix_ipix2ang_nest(1024, 4323);
     healpix_ipix2ang_nest
--------------------------------
 {47.63671875,3.24700649515993}
(1 row)

wsdb=> select healpix_ipix2ang_ring(1024, 4323);
        healpix_ipix2ang_ring
-------------------------------------
 {359.021739130435,87.8983556468228}
(1 row)
--------------------------------------------------------------------------------

Installation is standard:

1) Download the package 
2) Compile the code using simple
	make
Please check that you have pg_config in your path
3) Install the packge using
	make install
4) Load the functions into PostgreSQL by doing 
	\i pg_healpix.sql
from the psql client

pg_healpix's People

Contributors

segasai avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.