Skip to main content

soma

CI Documentation Status PyPI

soma (Simons Observatory Map-based Analysis) is a set of companion tools for use with the pixell library.

This library is in active early development and its API will likely change significantly. It is meant to replace msyriac/orphics and integrate in modules from other libraries that supplement pixell.

Installation

To install from a local checkout, including the development dependencies:

git clone https://github.com/simonsobs/soma.git
cd soma
[uv] pip install -e ".[dev]"

A PyPI instance will be deployed once development is mature.

Usage

import somapy

print(somapy.__version__)

Runnable, pre-executed notebooks live in examples/; each is generated from a plain-Python builder script beside it.

Development

pytest              # run the test suite
ruff check .        # lint
ruff format .       # format

Documentation is built with Sphinx and hosted on Read the Docs:

[uv] pip install -e ".[docs]"
make -C docs html        # open docs/_build/html/index.html
make -C docs livehtml    # live preview with automatic rebuilds

Attribution

soma bundles one external data product: src/somapy/planck_dust_equ.fits, the sky backdrop that somapy.io.plot_footprints paints its globes with. It is a derived version of the Planck Commander thermal-dust map, rotated from Galactic to equatorial coordinates, band-limited and resampled onto a 0.5° CAR grid (see the footprints docs).

If you publish a figure made with it, please cite the source map:

Planck Collaboration X, 2016, Planck 2015 results. X. Diffuse component separation: Foreground maps, A&A 594, A10 (arXiv:1502.01588)

and include the Planck acknowledgement:

Based on observations obtained with Planck (http://www.esa.int/Planck), an ESA science mission with instruments and contributions directly funded by ESA Member States, NASA, and Canada.

The exact product is COM_CompMap_dust-commander_0256_R2.00.fits, column 0 (I_ML — dust intensity at 545 GHz in µK_RJ, HEALPix Nside 256, 60′ FWHM, PROCVER = DX11D), from the Planck Legacy Archive, also mirrored at IRSA.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

somapy-0.0.3.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

somapy-0.0.3-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file somapy-0.0.3.tar.gz.

File metadata

  • Download URL: somapy-0.0.3.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for somapy-0.0.3.tar.gz
Algorithm Hash digest
SHA256 82d2f1ca07353e5588805d36af5a4d4a94177326e78b3ebcc4e92e429ad3fbdc
MD5 ecc698fcf76a4c0180459f8b3529f2a3
BLAKE2b-256 48aa70ef0b7068bbdd008e477264cf71a36d5a9843d21d03eb781939145aa4a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for somapy-0.0.3.tar.gz:

Publisher: release.yml on simonsobs/soma

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file somapy-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: somapy-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for somapy-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ebb9a821ea140dff26691c71d8427f9a65f21678a5a2e30f21b027667c16cbfa
MD5 b6f2a68ddaf3dac218449c6ccd99c3e4
BLAKE2b-256 df708202c4c8e7c75288a6ad0b8b428b2725e166490e4731ee48ed1938ce3cc2

See more details on using hashes here.

Provenance

The following attestation bundles were made for somapy-0.0.3-py3-none-any.whl:

Publisher: release.yml on simonsobs/soma

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page