7DT image-specific Tractor photometry pipeline
Project description
Tract7DT
7DT image-specific Tractor photometry pipeline.
This distribution is licensed under MIT.
Documentation
- Live documentation: https://seoldh99.github.io/tract7dt/
Installation
- Install Tractor (see https://github.com/dstndstn/tractor; however the upstream README seems outdated; use the recommended steps below).
- Install this package:
python -m pip install tract7dt
# To update an existing installation:
python -m pip install -U tract7dt
astrometry.net and Tractor must be installed in advance. Python prerequisites such as numpy, scipy, astropy, photutils, sep, matplotlib, fitsio, emcee, and PyYAML are declared as dependencies.
Check your installed version:
tract7dt --version
Tractor installation (recommended)
1) Conda environment
conda create -n {envname} python=3.11 -y
conda activate {envname}
2) System dependencies (apt)
sudo apt update
sudo apt install -y build-essential python3-dev git pkg-config \
libcfitsio-dev libeigen3-dev swig libceres-dev \
libgoogle-glog-dev libgflags-dev libsuitesparse-dev
3) Python build tools + scientific stack
pip install -U pip setuptools wheel cython numpy scipy fitsio emcee matplotlib
4) astrometry.net (required by Tractor)
conda install -c conda-forge astrometry -y
5) Tractor build (Cython + Ceres enabled)
git clone https://github.com/dstndstn/tractor.git
cd tractor
python setup.py build_ext --inplace --with-ceres --with-cython
pip install . --no-build-isolation
6) Verify install
python -c "import tractor; print(tractor.__version__)"
python -c "from tractor.ceres_optimizer import CeresOptimizer; print('CeresOptimizer OK')"
python examples/tractor-sdss-synth.py
Quick start
1) Create a YAML config
# Writes sample_config.yaml in the current directory by default.
tract7dt dump-config
# Or write to a specific path.
tract7dt dump-config --out sample_config.yaml
# Use --force to overwrite an existing file.
tract7dt dump-config --force
2) Download sample image data for test runs
# Download under current directory with original dataset folder name.
tract7dt download-sample
# Or set an explicit dataset directory path.
tract7dt download-sample --dir "/path/to/sample_data_dir"
# Overwrite an existing target dataset directory.
tract7dt download-sample --dir "/path/to/sample_data_dir" --force
Without --dir, the command creates the dataset under the current directory using the archive's original dataset folder name.
With --dir /path/to/sample_data_dir, the dataset directory is created at that exact path.
In both cases, FITS names are standardized to 7DT_UDS_m***.fits and image_list.txt is generated with absolute paths.
3) Edit required config paths
At minimum, set:
inputs.tile_nameinputs.input_cataloginputs.image_list_fileinputs.gaiaxp_synphot_csvoutputs.work_dir
4) Run the full pipeline
tract7dt run --config /path/to/config.yaml
Role of the config file
- The YAML config centralizes runtime decisions (inputs, outputs, checks, ePSF behavior, patch options, merge behavior, ZP calibration, logging, performance knobs).
tract7dt run --config ...reads this single file and executes the full pipeline (load, [Gaia augmentation], [bright-source masking], ePSF, patches, mask composition, fitting, merge, [ZP calibration]).- Subcommands share the same config model, so one file can drive full runs and partial reruns consistently.
For full command/config/behavior reference, see the docs in docs/ or the hosted site on GitHub Pages.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tract7dt-0.7.0.tar.gz.
File metadata
- Download URL: tract7dt-0.7.0.tar.gz
- Upload date:
- Size: 91.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac2940e0eedfc5b0ee2e5aa590bb70fa8056c224d37c526e8bddf925ccc91b78
|
|
| MD5 |
832c174f57d6a3f0cccf3942d0926713
|
|
| BLAKE2b-256 |
f5d35dd5017fba030701bf435c5c5b93f94a079a35b86565eb02e71c55878944
|
File details
Details for the file tract7dt-0.7.0-py3-none-any.whl.
File metadata
- Download URL: tract7dt-0.7.0-py3-none-any.whl
- Upload date:
- Size: 97.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41cd4e5eaf4972a07c0e5896302d49c3e85a6f0e772041ab62fc1f859e0675e2
|
|
| MD5 |
b274d726ddfa3550a1801279ac5bb0d1
|
|
| BLAKE2b-256 |
a9cf23a3399a999a3aae4cce6c5f8f18380d7bfa40bb057f5611e7107575a879
|