Containerized VOU-Blazars: builds multi-wavelength SEDs, computes NEOWISE W-peak, redshift
10K+
This image runs the VOU-Blazars pipeline in two modes:
UUID, writes results to Postgres (incl. redshift as a float).UUID; skips DB and writes a JSON file (incl. redshift metadata).Pipeline steps:
redshift/resolve_redshift.py (Python 3), pick a single best valuedocker build -t vzgo666/vou_code:latest .
# or: make localbuild
From the project root:
make run RA=83.633 DEC=22.0145
# example you used:
make run RA=338.1517 DEC=11.7308
UUID → local mode/outputoutput_<RA>_<DEC>.jsondocker run --rm -v "$(pwd)":/output vzgo666/vou_code:latest python2 app.py --ra 83.633 --dec 22.0145 --mode local
Requires a UUID that identifies the row in source_position_model:
docker run --rm --network your_docker_network vzgo666/vou_code:latest python2 app.py --ra 83.633 --dec 22.0145 --uuid 00000000-0000-0000-0000-000000000000
The app uses
DATABASE_URIin code:
postgresql://myuser:mypassword@postgres:5432/icra_docker
Ensure Postgres is reachable aspostgreson the same Docker network, or change the URI.
On success, the app updates for that UUID:
source_position_model.w_peak (string)source_position_model.redshift (float)File name:
output_<RA>_<DEC>.json
Example content:
{
"ra": "83.633",
"dec": "22.0145",
"w_peak": "…",
"redshift": { "catalog": "DESI-DR1", "z": 0.1234 },
"redshift_all": [
{ "catalog": "SDSS", "z": 0.123, "z_type": "spectroscopic" },
{ "catalog": "DESI-DR1", "z": 0.1234 }
],
"count": 123,
"data": [ /* SED rows */ ]
}
Notes:
source_position_model.redshift (no ±).redshift (best pick with catalog and z) and redshift_all for diagnostics.redshift/resolve_redshift.py (spawned via system python3 by app.py).z.app.py: a one-line JSON_SUMMARY=... which app.py parses.Frontend note: redshift is a single float now; display e.g. 0.123 — no ± parsing needed.
/VOU_Blazars
app.py # main runner (Python 2.7)
utils.py
additionaly_query/
additional_data.py
redshift/
resolve_redshift.py # Python 3
catalogs.py
helpers.py
app.py (Py2.7) spawns the resolver using python3 present in the image.
redshift/ exists in the image and python3 is available.postgres, or update DATABASE_URI.Content type
Image
Digest
sha256:abab2ff84…
Size
659.5 MB
Last updated
9 months ago
docker pull vzgo666/vou_code