Skip to content

Instantly share code, notes, and snippets.

@kng
Last active September 5, 2022 12:12
Show Gist options
  • Save kng/f57cee4f1c281793d12761ddaa1efa84 to your computer and use it in GitHub Desktop.
Save kng/f57cee4f1c281793d12761ddaa1efa84 to your computer and use it in GitHub Desktop.
testrun stvid docker processing
# Test run container with known data
# fetch and unpack test-data.tbz2 into data/
tar jxvf test-data.tbz2
# pull and start the container
./run.sh
# inside the container cwd will be /data
./process.sh
# Computing astrometric calibration for /data/obs/20220904_1/051136/2022-09-04T05:52:58.612.fits
# 2022-09-04T05:52:58.612.fits 258.160233 33.486878 466/ 694 12.3 17.7 16.42 +- 1.14
# File queue empty, waiting for new files...
# after it's done you can exit with ctrl-C then ctrl-D
#!/bin/bash
export ST_DATADIR=/stvid
export ST_TLEDIR=/data/tle
export ST_OBSDIR=/data/obs
#export ST_LOGIN=”identity=foo@no:pass”
/stvid/process_new.py -c /data/config_new.ini -d /data/obs/20220904_1/051136/
#!/bin/bash
if [ ! -d data ]; then
echo "creating data dir..."
mkdir -p data/obs/control data/tle data/results
touch data/obs/control/position.txt
fi
echo "starting temporary docker"
docker run --rm --tmpfs /tmp -v $(pwd)/data:/data -it knegge/stvid:dev "$@"
# For acquire to work with CV2, add the following after docker run in the line above
# --device=/dev/video0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment