Skip to main content

Bring colors to Euclid tiles!

Project description

Logo

Bring colors to Euclid tiles!

Azul(ero)* downloads and merges VIS and NIR observations over a MER tile. It detects and inpaints bad pixels (hot and cold pixels, saturated stars...), and combines the 4 channels (I, Y, J, H) into an sRGB image.

*I started this project when Euclid EROs came out...

License

Apache-2.0

Disclaimer

⚠️ This is a beta version! ⚠️

  • The tool is far from perfect and can be frustrating.
  • Error cases are not handled and messages may be cryptic or misleading.
  • Please make sure to read the "How to help?" section below before using this version.

Installation and setup

Install the azulero package with:

pip install azulero

If you wish to access Euclid-internal data, setup the ~/.netrc file for eas-dps-rest-ops.esac.esa.int and euclidsoc.esac.esa.int with your Euclid credentials:

machine eas-dps-rest-ops.esac.esa.int
  login <login>
  password <password>
machine euclidsoc.esac.esa.int
  login <login>
  password <password>

Basic usage

The typical workflow is as follows:

  • 📥 Download the MER-processed FITS file of your tiles with azul retrieve.
  • ✂️ Optionally select the region to be processed with azul crop.
  • 🌟 Blend the channels and inpaint artifacts with azul process.

Usage:

azul [--workspace <workspace>] retrieve [--dsr <dataset_release>] [--from <provider>] <tile_indices>
azul [--workspace <workspace>] crop <tile_index>
azul [--workspace <workspace>] process <tile_slicing>

with:

  • <workspace> - The parent directory to save everything, in which one folder per tile will be created (defaults to the current directory).
  • <dataset_release> - The dataset release of the tiles to be downloaded (defaults to a list of known releases).
  • <provider> - The data archive name.
  • <tile_indices> - The space-separated list of tiles to be downloaded.
  • <tile_index> - A single tile index.
  • <tile_slicing> - A single tile index, optionally followed by a slicing à-la NumPy.

Example: The Ring Field

Here is an example output and the commands which produced it below:

processed

azul retrieve 102159776 --from sas
azul crop 102159776
azul process 102159776[5500:7500,5000:7000] -w 2000 --nirl 0.1 --jr 0.9 --ib 0.5 -a 0.5 -b -1

I have post-processed the output to my liking:

postprocessed

The two thick blue rings 💍 are artifacts of the VIS instrument known as ghosts. To my knowledge, the galaxy in the center has never been resolved this way. Rendering the image allowed me to discover this is a splendid polar ring 💍 galaxy! The previously unseen golden structure top left may be an Einstein ring 💍 or a collisional ring 💍 -- the question remains open.

As you can see, getting a nice image required a bit of parametrization. This is because we are using the public Q1 data. DR1 data, to be published in 2026, have a much better signal-to-noise ratio, and default parameters give very good results. I already rendered the DR1 version of this field; I cannot share it today, but I can already tell you it is mesmerizing 😏

Advanced usage

One day I'll find some time to write something useful here... 🤔

In the meantime, please read the algorithm description and check help messages:

azul -h
azul retrieve -h
azul crop -h
azul process -h

How to help?

  • Report bugs, request features, tell me what you think of the tool and results...
  • Mention myself (Dr Antoine Basset, CNES) and/or azulero when you publish images processed with this tool.
  • Share with me your images, I'm curious!

Contributors

  • Dr Mischa Schirmer (MPIA): Azul's color blending is freely inspired by that Mischa's script eummy.py.
  • Téo Bouvard (Thales): drafed retrieve.
  • Rollin Gimenez (CNES): Fixed packaging.
  • Kane Nguyen-Kim (IAP): Provided URLs for retrieving public data.

Acknowledgements

  • 🔥 Congratulations to the whole Euclid community; The mosaics are simply unbelievable!
  • 😍 Thank you also for answering my dummy questions on the contents of the images I posted.

Project details


Download files

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

Source Distribution

azulero-0.4.1.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

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

azulero-0.4.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file azulero-0.4.1.tar.gz.

File metadata

  • Download URL: azulero-0.4.1.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for azulero-0.4.1.tar.gz
Algorithm Hash digest
SHA256 161c09b0f4931140b9aec7a2264825d08a6091e1a0943844b4d2bbca1dd9889c
MD5 f4f4249e7bc116c104ba7815c908b4ec
BLAKE2b-256 f0c9a76ee3f86095ae2b580951c8334e7ab03eea52e8d985868a5d4c9dc924a7

See more details on using hashes here.

File details

Details for the file azulero-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: azulero-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for azulero-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd30a891075afe510029d88eac8f3ab0b6a14599400ef8bf3c8e9307ee4afd5e
MD5 6e042fe9b3710565e02a8839ac24bf2f
BLAKE2b-256 acc5848a077c55de5acbada4634d6192dc235e2606acd396e3fbf7b6a34b8789

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page