Skip to content

Commit

Permalink
meteor copy images, meteor.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsPL committed Jan 12, 2019
1 parent 39a447a commit 7175c9c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 24 deletions.
15 changes: 15 additions & 0 deletions modules/meteor-m2/meteor.conf
@@ -0,0 +1,15 @@
#
# meteor m2 module configuration file
#

# where images from mrlpt are saved
# (as declared in mlrptrc config file - check it!)
# eg: /var/lrpt/images/
$rawImageDir="/meteor/img/raw/"


# directory with meteor stuff
meteorDir="$recordingDir/meteor/"

# directory where the images finally will go
imgdir="$meteorDir/img/"$(date +"%Y/%m/%d/")
37 changes: 13 additions & 24 deletions modules/meteor-m2/meteor.sh
@@ -1,29 +1,21 @@
#!/bin/bash

# test file to record fm radio for a given period of time

# module to record meteor m2 transmission
# for configuration, see meteor.conf

# read the global configuration file autowx2_conf.py via the bash/python configuration parser
# do not change the following three lines
scriptDir="$(dirname "$(realpath "$0")")"
source $scriptDir/basedir_conf.py
source $baseDir/_listvars.sh

# read module config

################## FINE TUNING #####################

# directory with noaa stuff
meteorDir="$recordingDir/meteor/"

# directory for generated images
imgdir="$meteorDir/img/"$(date +"%Y/%m/%d/")

# directory for recorded raw and wav files
recdir="$meteorDir/rec/"$(date +"%Y/%m/%d/")
source $scriptDir/meteor.conf

### doing the job

mkdir -p $recdir $imgdir
mkdir -p $imgdir


fileNameCore="$1"
Expand All @@ -43,10 +35,6 @@ echo "azimuth=$azimuth"
echo "freq=$freq"


# fixed values for tests
# freq=137.9M
# duration="120"
# fileNameCore="meteor"

#
# mlrpt [-f frequency -s hhmm-hhmm -t sec -qihv]
Expand All @@ -64,13 +52,14 @@ startT=$(date +%H%M -d "$DATE + 1 min" -u)
stopT=$(date +%H%M -d "$DATE + $duration sec" -u)
durationMin=$(bc <<< "$duration/60 +2")

#
# recording
#
echo "$startT-$stopT, duration: $durationMin min"

# mlrpt -f $freq -s $startT-$stopT -t $durationMin
mlrpt -s $startT-$stopT -t $durationMin

## Testing values, HHMM in UTC
# startT="2139"
# stopT="2140"
# durationMin="1" # in minutes!
# mlrpt -f $freq -s $startT-$stopT -t $durationMin

#
# moving recorded images to the appropriate final dir
#
mv $rawImageDir/*.jpg $imgdir/
2 changes: 2 additions & 0 deletions modules/noaa/noaa.sh
@@ -1,6 +1,8 @@
#!/bin/bash

# main file for recording and processing NOAA telementry data
# for configuration, see noaa.conf



# read the global configuration file autowx2_conf.py via the bash/python configuration parser
Expand Down

0 comments on commit 7175c9c

Please sign in to comment.