73 lines
2.3 KiB
Bash
Executable File
73 lines
2.3 KiB
Bash
Executable File
#!/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
|
|
|
|
# Date to process
|
|
OBSDATE="20230621"
|
|
# Cameras / systems in use to be processed.
|
|
#CAMERAS="cruftpi7 odroid-01 odroid-03 odroid-04 odroid-06 panda-06 panda-08 quartz-02"
|
|
#CAMERAS="cruftpi7 odroid-01 odroid-03 odroid-04 panda-06 panda-08 quartz-02"
|
|
CAMERAS="cruftpi7 odroid-03 odroid-04 panda-06 panda-08 quartz-02"
|
|
#CAMERAS="cruftpi7 odroid-03 odroid-04 panda-08 quartz-02"
|
|
# 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"
|
|
|
|
OBSYEAR=`echo ${OBSDATE} | cut -c 1-4`
|
|
OBSMON=`echo ${OBSDATE} | cut -c 5-6`
|
|
OBSDAY=`echo ${OBSDATE} | cut -c 7-8`
|
|
REPORTTXT="${SEESATDIR}/reports/${OBSDATE}/seesat-spacecruft-${OBSDATE}.txt"
|
|
|
|
rm -f "${REPORTTXT}"
|
|
|
|
# Header
|
|
#echo "Desocupado lector," >> "${REPORTTXT}"
|
|
#echo " " >> "${REPORTTXT}"
|
|
|
|
cd "${SEESATDIR}/cameras/${OBSDATE}"
|
|
|
|
#wc classfd.dat >> "${REPORTTXT}"
|
|
echo "classfd" >> "${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}"
|
|
|
|
# Footer
|
|
echo "-Jeff Moe" >> "${REPORTTXT}"
|
|
echo "Station 7099, 40.5689N, 105.2259W, 1860m AMSL, Loveland, Colorado" >> "${REPORTTXT}"
|
|
#echo "Five cams: 5x IMX174 50mm F/1.4, STVID, NTP" >> "${REPORTTXT}"
|
|
#echo "Six cams: 5x IMX174 50mm F/1.4, 1x MN34230 50mm F/1.2, STVID, NTP" >> "${REPORTTXT}"
|
|
echo "Six cams: 6x IMX174 50mm F/1.4, STVID, NTP" >> "${REPORTTXT}"
|
|
#echo "Seven cams: 7x IMX174 50mm F/1.4, STVID, NTP" >> "${REPORTTXT}"
|
|
echo "Data: https://spacecruft.fit Code: https://spacecruft.org" >> "${REPORTTXT}"
|
|
echo "Feel free to send related questions and comments to me here on seesat-l" >> "${REPORTTXT}"
|
|
|
|
echo "Subject:"
|
|
echo "JM Obs ${OBSYEAR}-${OBSMON}-${OBSDAY}"
|
|
echo
|
|
echo "See report here:"
|
|
echo "${REPORTTXT}"
|
|
|