72 lines
2.1 KiB
Bash
Executable File
72 lines
2.1 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="20230412"
|
|
# Cameras / systems in use to be processed.
|
|
CAMERAS="cruftpi7 odroid-01 odroid-04 odroid-05 panda-06 panda-08"
|
|
# 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 "Daily report and data available here:" >> "${REPORTTXT}"
|
|
echo "https://spacecruft.fit/seesat/reports/${OBSDATE}/seesat-spacecruft-${OBSDATE}.txt" >> "${REPORTTXT}"
|
|
echo "https://spacecruft.fit/seesat/cameras/${OBSDATE}/" >> "${REPORTTXT}"
|
|
echo " " >> "${REPORTTXT}"
|
|
echo "Satellite photo archive, sorted by ID:" >> "${REPORTTXT}"
|
|
echo "https://spacecruft.fit/sats/" >> "${REPORTTXT}"
|
|
echo " " >> "${REPORTTXT}"
|
|
echo "-Jeff Moe" >> "${REPORTTXT}"
|
|
echo "Station 7099, 40.5689N, 105.2259W, 1843m, Loveland, Colorado" >> "${REPORTTXT}"
|
|
echo "5x IMX174, 50mm/F1.4, STVID processing, NTP" >> "${REPORTTXT}"
|
|
|
|
echo "Subject:"
|
|
echo "JM Obs ${OBSYEAR}-${OBSMON}-${OBSDAY}"
|
|
echo
|
|
echo "See report here:"
|
|
echo "${REPORTTXT}"
|
|
|