Skip to main content

Creates data cubes from FITS-file image data.

Project description

Installation

pip install qbd

Running qbd

1. Create demo data

Run the qbd command with the --create-demo-data flag to create the directory channels with FITS demo data.

qbd --create-demo-data
Writing file: channels/demo-channel-001.fits
Writing file: channels/demo-channel-002.fits
Writing file: channels/demo-channel-003.fits
Writing file: channels/demo-channel-006.fits
Writing file: channels/demo-channel-007.fits

2. Create input file list

Create a simple text file containing the filepaths to input the channel data.

find channels/*.fits > channel-list.txt
cat channel-list.txt
channels/demo-channel-001.fits
channels/demo-channel-002.fits
channels/demo-channel-003.fits
channels/demo-channel-006.fits
channels/demo-channel-007.fits

3. (Optional) Add empty channels

Add empty channels (filled with np.nan) by adding an empty lines in channel-list.txt:

cat channel-list.txt
channels/demo-channel-001.fits
channels/demo-channel-002.fits
channels/demo-channel-003.fits


channels/demo-channel-006.fits
channels/demo-channel-007.fits

4. Start cube creation

Start the data cube creation by calling the channel-list.txt with qbd.

qbd channel-list.txt
Creating empty cube: cube.fits
Processing channel 1/7: channels/demo-channel-001.fits
Processing channel 2/7: channels/demo-channel-002.fits
Processing channel 3/7: channels/demo-channel-003.fits
Processing channel 4/7: Empty channel. Setting NaN.
Processing channel 5/7: Empty channel. Setting NaN.
Processing channel 6/7: channels/demo-channel-006.fits
Processing channel 7/7: channels/demo-channel-007.fits
Cube filled: cube.fits

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

qbd-0.1.2.post5.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

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

qbd-0.1.2.post5-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file qbd-0.1.2.post5.tar.gz.

File metadata

  • Download URL: qbd-0.1.2.post5.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.22

File hashes

Hashes for qbd-0.1.2.post5.tar.gz
Algorithm Hash digest
SHA256 a26c13b6120f88840fdbc74fadf426562d5124dc9b7909db69f8c68b43988c00
MD5 c77320a61b3efb04fd1d4702dbb841c0
BLAKE2b-256 f7f6089cd326475052d10aba4f9ee9e56f13795d6bb669355b4a3ffb3bfb40d1

See more details on using hashes here.

File details

Details for the file qbd-0.1.2.post5-py3-none-any.whl.

File metadata

  • Download URL: qbd-0.1.2.post5-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.22

File hashes

Hashes for qbd-0.1.2.post5-py3-none-any.whl
Algorithm Hash digest
SHA256 f2a455a06a4715630ae1b816acd125e119be500ddf43a8377cfef0cc4911e36a
MD5 04c96d78a7e584d1e5bbc03735351dc2
BLAKE2b-256 708e67a89c09c41d63310bf2f768ec7368d6ef329e4f7cff2fd10b6ab2a550f6

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