Function Repository Resource:

ImportHEALPix

Source Notebook

Import a file that contains HEALPix encoded data

Contributed by: Arnoud Buzing

ResourceFunction["ImportHEALPix"]["file.fits"]

imports "file.fits" containing HEALPix encoded data.

Details

HEALPix stands for “Hierarchical Equal Area isoLatitude Pixelation”.
HEALPix divides a sphere into curvilinear quadrilaterals of equal area.
HEALPix is widely used in astronomy and cosmology to map and analyze the sky, particularly for the cosmic microwave background (CMB), galaxy surveys, and other astrophysical phenomena.

Examples

Basic Examples

Get a local copy of a sample file containing raw HEALPix data. This is a large file and will take time to download:

In[1]:=
file = URLDownload[
  "https://lambda.gsfc.nasa.gov/data/map/dr5/skymaps/9yr/raw/wmap_iqumap_r9_9yr_K1_v5.fits", "example.fits"]
Out[1]=

Import the file as raw data:

In[2]:=
data = ResourceFunction[
  "ImportHEALPix", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"][file]
Out[2]=

Visualize the raw data as an image:

In[3]:=
image = Image[data]
Out[3]=

Colorize the image:

In[4]:=
color = Colorize[image, ColorFunction -> "Rainbow"]
Out[4]=

Publisher

WolframExternalFunctions

Requirements

Wolfram Language 13.0 (December 2021) or above

Version History

  • 1.0.1 – 10 June 2024
  • 1.0.0 – 17 April 2024

Related Resources

License Information