Add scriptlet to generate txt report for seesat
parent
97912e35d1
commit
8dcb3e8ea5
|
@ -0,0 +1,46 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Copyright (C) 2023, Cees Bassa
|
||||
# Copyright (C) 2023, Jeff Moe
|
||||
# GPLv3+
|
||||
#
|
||||
# Script to process stvid data for submission to sat-obs seesat mailing list.
|
||||
#
|
||||
# Custom paths set for Spacecruft
|
||||
|
||||
# Base directory where stvid observations are written by all cameras.
|
||||
STVIDDIR="/srv/obs"
|
||||
# Base directory where data reports for the seesat mailing list are prepared.
|
||||
SEESATDIR="/srv/seesat"
|
||||
# Cameras / systems in use to be processed.
|
||||
CAMERAS="odroid-01 odroid-04 panda-06 cruftpi7 panda-08"
|
||||
# Date to process
|
||||
OBSDATE="20230411"
|
||||
REPORTTXT="${SEESATDIR}/reports/${OBSDATE}/seesat-spacecruft-${OBSDATE}.txt"
|
||||
|
||||
rm -f "${REPORTTXT}"
|
||||
|
||||
cd "${SEESATDIR}/cameras/${OBSDATE}"
|
||||
|
||||
wc classfd.dat >> "${REPORTTXT}"
|
||||
cat classfd.dat >> "${REPORTTXT}"
|
||||
echo " " >> "${REPORTTXT}"
|
||||
|
||||
wc unid.dat >> "${REPORTTXT}"
|
||||
cat unid.dat >> "${REPORTTXT}"
|
||||
echo " " >> "${REPORTTXT}"
|
||||
|
||||
wc catalog.dat >> "${REPORTTXT}"
|
||||
cat catalog.dat >> "${REPORTTXT}"
|
||||
echo " " >> "${REPORTTXT}"
|
||||
|
||||
wc starlink.dat >> "${REPORTTXT}"
|
||||
cat starlink.dat >> "${REPORTTXT}"
|
||||
echo " " >> "${REPORTTXT}"
|
||||
|
||||
wc oneweb.dat >> "${REPORTTXT}"
|
||||
cat oneweb.dat >> "${REPORTTXT}"
|
||||
echo " " >> "${REPORTTXT}"
|
||||
|
||||
echo "See report here:"
|
||||
echo "${REPORTTXT}"
|
Loading…
Reference in New Issue