Problem with comparison.
/Designs/Measuring_instruments/RMDS01B/SW/Bolidozor/SpectrumLab/README.txt
0,0 → 1,37
Detection station management system
-----------------------------------
 
SKELETON-R1.usr should be imported in to SpectrumLab software as settings file.
 
After import of usr file. Detection script must be modified to match station name and location of data storage. This should be modified on this line:
 
if( initialising ) then id_met="no":id_met2="no":K_station_name="SVAKOV-R2":K_path="/media/sd/meteors/"
 
Where "SVAKOV-R2" is string - name of detection station. It must be less than 20 characters without spaces.
 
The path "/media/sd/meteors/" poits to direcetory, where data records will be stored. In this directory must already exist this scructure:
 
── SVAKOV-R2
├── audio
├── capture
├── data
 
File and directory permissions must be matched to user running Spectrumlab.
 
 
Receiver tunning
----------------
 
the receiver must be propertly tunned in order to match frequency center of meteor echos to 10600 Hz on frequency axis in SpetcrumLab waterfall.
 
 
Data upload
-----------
 
Other shell script is used for data management of meteor records.
This scripts should be used to upload data to Bolidozor server. But this action needs ssh public key authentication.
 
Sorting of local data record can be done by Tidyup.sh even without publi
 
 
 
/Designs/Measuring_instruments/RMDS01B/SW/Bolidozor/SpectrumLab/SKELETON_R1.usr
0,0 → 1,2605
 
[ABOUT]
Info1=Configuration file for Spectrum Lab
Info2=Compilation date Oct 25 2012
MenuText=DC Receiver 48k
InfoText=
 
[GENERAL]
UseRelativePaths=1
LockWindows=0
EnableDDE=0
DebugFlags=0
PrefRxAudioCenterFreq=-1
PrefTxAudioCenterFreq=-1
FrequencyListFile=frequencies\default.txt
PlainFreqInputFields=0
 
[MAIN_WINDOW]
Left=0
Top=0
Width=1032
Height=607
Visible=-1
FormStyle=-1
ShowWindowsInTaskBar=0
MinimizeToSystemTray=0
BottomCtrls=0
LeftCtrls=1
LeftCtrlWidth=128
LeftCtrlVSplit=190
ContrastSliderUsage=0
 
[CircuitForm]
Left=200
Top=100
Width=-1
Height=-1
Visible=0
FormStyle=0
 
[GeneratorForm]
Left=-1
Top=-1
Width=-1
Height=-1
Visible=0
FormStyle=-1
FSliderMin=0
FSliderMax=5512
 
[FilterControlForm]
Left=121
Top=141
Width=512
Height=340
Visible=0
FormStyle=0
FFP_VSplit=32
FftEditSel=0
FftLogScale=1
FftGraphFmin=0
FftGraphFmax=3000
 
[TerminalForm]
Left=-1
Top=-1
Width=-1
Height=-1
Visible=0
FormStyle=-1
TuWidth=-1
TuHeight=-1
TxHeight=-1
AutoLineBreak=0
 
[TerminalForm2]
Left=-1
Top=-1
Width=-1
Height=-1
Visible=0
FormStyle=-1
TuWidth=-1
TuHeight=-1
TxHeight=-1
AutoLineBreak=0
 
[TerminalForm3]
Left=-1
Top=-1
Width=-1
Height=-1
Visible=0
FormStyle=-1
TuWidth=-1
TuHeight=-1
TxHeight=-1
AutoLineBreak=0
 
[TerminalForm4]
Left=-1
Top=-1
Width=-1
Height=-1
Visible=0
FormStyle=-1
TuWidth=-1
TuHeight=-1
TxHeight=-1
AutoLineBreak=0
 
[CONFIG_WINDOW]
Left=321
Top=155
Width=-1
Height=-1
Visible=-1
FormStyle=0
 
[PaletteEditorForm]
Left=-1
Top=-1
Width=-1
Height=-1
Visible=-1
FormStyle=-1
 
[DebugForm]
Left=-1
Top=-1
Width=-1
Height=-1
Visible=-1
FormStyle=-1
ActivePage=0
 
[PeriodicActionForm]
Left=55
Top=94
Width=913
Height=412
Visible=0
FormStyle=3
 
[DCF77Form]
Left=-1
Top=-1
Width=-1
Height=-1
Visible=-1
FormStyle=-1
 
[SecondSpectrogram]
Left=193
Top=133
Width=553
Height=355
Visible=0
FormStyle=-1
ControlsVisible=1
 
[CommandForm]
Left=-1
Top=-1
Width=-1
Height=-1
Visible=0
FormStyle=-1
VSplit1=137
EditorFindText=
 
[InputMonitor]
Left=84
Top=40
Width=166
Height=140
Visible=0
FormStyle=3
YMagnify=30
XMagnify=1
Trigger=1
 
[OutputMonitor]
Left=66
Top=43
Width=166
Height=140
Visible=0
FormStyle=3
YMagnify=1
XMagnify=1
Trigger=1
 
[LAST_SESSION]
PlaylistName=
AnalysedFileName=test1.wav
AnalysedFileType=0
LoggingWave=logfile1.wav
 
[SOUNDCARD]
SampleRate=48000
UseDifferentOutputSR=0
ResampleToNominalOutputSR=0
NominalOutputSampleRate=11025
BitsPerSample=16
SampleRateDivisor=1
ResampleQuality1=1
ExternalAudioOptions=0
AudioInputStreamID=
AudioOutputStreamID=
 
[AUDIO_VIA_IP]
Options=0
RcvFromPort=1024
SendToPort=1024
RcvFromIp=192.168.0.200
SendToIp=192.168.0.200
 
[AUDIO_FILE_IO]
ConsADCactive=0
ConsADCfile=audio.dat
CmdToStartADCfile=SndInput.exe /sr=11025 /ch=1 /chunk=512 /minsize=512
CmdToStopADCfile=SndInput.exe /quit
ProdDACactive=0
MaxServerFileSizeKb=0
ProdDACfile=
CmdToStartDACfile=
CmdToStopDACfile=
DuplicateAudioForOutput=0
RcvAudioViaCopydata=0
SendAudioViaCopydata=0
SendCopydataTo=
AdcFullScaleInputVoltage=1
AdcInputImpedance=600
 
[WEB_STREAMS]
AnalysedStream=
SaveURLHistory=0
URLHistory0=
URLHistory1=
URLHistory2=
URLHistory3=
URLHistory4=
URLHistory5=
URLHistory6=
URLHistory7=
URLHistory8=
URLHistory9=
Options=0
OutputStreamConfig=
OutputStreamReconnTime=30
InputAudioLog=logfiles\stream_log_in.ogg
OutputAudioLog=logfiles\stream_log_out.ogg
 
[SDR]
NcoFreqHz=10700000
Options=0
TestToneFreq=0
Left=232
Top=181
Width=334
Height=127
Visible=0
FormStyle=0
 
[SDR_IQ]
FilterNr=3
RFgain_dB=0
IFgain_dB=24
RefFrequency=198000
FftCompensationFile=
 
[PERSEUS]
BitstreamNr=0
RFgain_dB=-10
PreselectorNr=11
RefFrequency=198000
FftCompensationFile=
 
[SR_CALIBRATOR]
Enabled=0
Options=0
MeasureOnly=0
TestPulseOutput=0
Algorithm=1
PhasesLockedToGPS=0
ResampleInputMode=0
ConnectTo=1
MinRefAmpl=-80
RefFrequency=15625
RefPeriodicity=0
UpdateCycle=10
CalibBandwidth=1
MaxOffset_ppm=5
Averages=200
ScopeOpt=0
 
[FO_CALIBRATOR]
Enabled=0
ConnectTo=1
MinRefAmpl=-60
RefFrequency=2000
CalibBandwidth=10
MaxFreqOffset=10
Averages=200
 
[WAVE_ANALYSIS]
PlayInLoops=0
StopAnalyzerOnEOF=1
ReconnectBrokenStreams=0
PlayUpsampled=1
WaveAnalysisSp=2
WaveAnalysisScMode=0
WaveAnalysisOptions=0
WaveAnalysisNumThreads=1
WaveAnalysisRawDataType=2
WaveAnalysisRawTypeFlags=0
WaveAnalysisRawNChannels=0
WaveAnalysisRawFileSampleRate=48000
 
[WAVE_SAVE]
Downsampled=0
SampleRate=4000
BitsPerSample=16
AsComplexPairs=0
CenterFrequency=0
WaveFileFormat=1
WaveSaveFileMode=2
InfoInHeader=1
WriteAuxFile=1
MaxFileSize=1400
Flags=5
FileIndex=299970
TrigRecorderFile=/media/sd/meteors//SKELETON-R1/audio/20140313122018840_SKELETON-R1.wav
TrigRecorderFileMode=0
PreTrigSeconds=6
PostTrigSeconds=11
 
[SpectrumPlayer]
Options=0
LoopMode=0
Gain_dB=0
FinMin=0
FinMax=3000
FoutMin=0
 
[SOUND_THREAD]
StartSoundThread=1
StartSoundInput=1
StartSoundOutput=1
StartSignalGenerator=0
SignalGeneratorUnits=0
StartDigitalFilter=1
DigitalFilterBypass=0
FreeRunningSpeedPcnt=100
StereoProcessing=1
MinimizeLatency=0
ChainBothChannels=0
IQInputSwapChannels=0
IQInputAdjustEnable=0
IQAdjustBalance=0
IQAdjustPhase=0
PrimaryTimeSource=1
ManualAnalysisStartTime=0
 
[DIGIMODE]
Active=0
DemodSource1=1
ComplexInput=0
ModulatorDest1=3
ModulatorDest2=0
DecoderLogfile=Term1.txt
 
[MODES]
OperMode=1
Modulation=8
CodesetNr=5
BitEncoding=2
UseDecoderNr=0
BitSyncAlgo=1
DisableFilters=0
SpecialFlags=0
ScopeMode=3
ScopeTrigger=0
ScopeUpdateTime=500
ScopeHorzSecPerDiv=0.1
ScopeHorzPixelPerDiv=20
ScopeHorzOpt=4
ScopeVertOpt=0
AutoSwitch2Rx=0
AutoSwitch2Tx=0
HalfDuplex=1
FlipMainAnalyser=1
BeaconMode=0
 
[AUDIO_FREQUENCIES]
fc_rx=2200
fc_tx=2200
f_shift=170
fc_stepwidth=1
 
[MODULATION]
symbol_rate=50
rev_keying=0
tx_freq_multiplier=1
pulse_shaping=1
shape_percent=100
output_level=100
special_options=0
 
[DETECTOR]
use_afc=1
narrow_afc=0
afc_tune_range=100
squelch_thrsh=25
 
[SERIAL_DECODER]
AsyncStartBit=1
AsyncDataBits=8
AsyncParityBit=0
AsyncStopBit=1
AsyncMsbFirst=0
 
[RX_CHAR_DISPLAY]
ChrDisplayMode=0
LinefeedAfterPause=0
UseSlashZero=1
PrintDateOrTime=0
RejectedMessages=
 
[MODE_DLL]
name=DemoDll.dll
use_it=0
 
[HELL_FONT]
name=MS Sans Serif
height=-11
style=0
cut_top=0
 
[DIGIMODE2]
Active=0
DemodSource1=1
ComplexInput=0
ModulatorDest1=3
ModulatorDest2=0
DecoderLogfile=Term1.txt
 
[MODES2]
OperMode=1
Modulation=8
CodesetNr=5
BitEncoding=2
UseDecoderNr=0
BitSyncAlgo=1
DisableFilters=0
SpecialFlags=0
ScopeMode=3
ScopeTrigger=0
ScopeUpdateTime=500
ScopeHorzSecPerDiv=0.1
ScopeHorzPixelPerDiv=20
ScopeHorzOpt=4
ScopeVertOpt=0
AutoSwitch2Rx=0
AutoSwitch2Tx=0
HalfDuplex=1
FlipMainAnalyser=1
BeaconMode=0
 
[AUDIO_FREQUENCIES2]
fc_rx=2200
fc_tx=2200
f_shift=170
fc_stepwidth=1
 
[MODULATION2]
symbol_rate=50
rev_keying=0
tx_freq_multiplier=1
pulse_shaping=1
shape_percent=100
output_level=100
special_options=0
 
[DETECTOR2]
use_afc=1
narrow_afc=0
afc_tune_range=100
squelch_thrsh=25
 
[SERIAL_DECODER2]
AsyncStartBit=1
AsyncDataBits=8
AsyncParityBit=0
AsyncStopBit=1
AsyncMsbFirst=0
 
[RX_CHAR_DISPLAY2]
ChrDisplayMode=0
LinefeedAfterPause=0
UseSlashZero=1
PrintDateOrTime=0
RejectedMessages=
 
[MODE_DLL2]
name=DemoDll.dll
use_it=0
 
[HELL_FONT2]
name=MS Sans Serif
height=-11
style=0
cut_top=0
 
[DIGIMODE3]
Active=0
DemodSource1=1
ComplexInput=0
ModulatorDest1=3
ModulatorDest2=0
DecoderLogfile=Term1.txt
 
[MODES3]
OperMode=1
Modulation=8
CodesetNr=5
BitEncoding=2
UseDecoderNr=0
BitSyncAlgo=1
DisableFilters=0
SpecialFlags=0
ScopeMode=3
ScopeTrigger=0
ScopeUpdateTime=500
ScopeHorzSecPerDiv=0.1
ScopeHorzPixelPerDiv=20
ScopeHorzOpt=4
ScopeVertOpt=0
AutoSwitch2Rx=0
AutoSwitch2Tx=0
HalfDuplex=1
FlipMainAnalyser=1
BeaconMode=0
 
[AUDIO_FREQUENCIES3]
fc_rx=2200
fc_tx=2200
f_shift=170
fc_stepwidth=1
 
[MODULATION3]
symbol_rate=50
rev_keying=0
tx_freq_multiplier=1
pulse_shaping=1
shape_percent=100
output_level=100
special_options=0
 
[DETECTOR3]
use_afc=1
narrow_afc=0
afc_tune_range=100
squelch_thrsh=25
 
[SERIAL_DECODER3]
AsyncStartBit=1
AsyncDataBits=8
AsyncParityBit=0
AsyncStopBit=1
AsyncMsbFirst=0
 
[RX_CHAR_DISPLAY3]
ChrDisplayMode=0
LinefeedAfterPause=0
UseSlashZero=1
PrintDateOrTime=0
RejectedMessages=
 
[MODE_DLL3]
name=DemoDll.dll
use_it=0
 
[HELL_FONT3]
name=MS Sans Serif
height=-11
style=0
cut_top=0
 
[DIGIMODE4]
Active=0
DemodSource1=1
ComplexInput=0
ModulatorDest1=3
ModulatorDest2=0
DecoderLogfile=Term1.txt
 
[MODES4]
OperMode=1
Modulation=8
CodesetNr=5
BitEncoding=2
UseDecoderNr=0
BitSyncAlgo=1
DisableFilters=0
SpecialFlags=0
ScopeMode=3
ScopeTrigger=0
ScopeUpdateTime=500
ScopeHorzSecPerDiv=0.1
ScopeHorzPixelPerDiv=20
ScopeHorzOpt=4
ScopeVertOpt=0
AutoSwitch2Rx=0
AutoSwitch2Tx=0
HalfDuplex=1
FlipMainAnalyser=1
BeaconMode=0
 
[AUDIO_FREQUENCIES4]
fc_rx=2200
fc_tx=2200
f_shift=170
fc_stepwidth=1
 
[MODULATION4]
symbol_rate=50
rev_keying=0
tx_freq_multiplier=1
pulse_shaping=1
shape_percent=100
output_level=100
special_options=0
 
[DETECTOR4]
use_afc=1
narrow_afc=0
afc_tune_range=100
squelch_thrsh=25
 
[SERIAL_DECODER4]
AsyncStartBit=1
AsyncDataBits=8
AsyncParityBit=0
AsyncStopBit=1
AsyncMsbFirst=0
 
[RX_CHAR_DISPLAY4]
ChrDisplayMode=0
LinefeedAfterPause=0
UseSlashZero=1
PrintDateOrTime=0
RejectedMessages=
 
[MODE_DLL4]
name=DemoDll.dll
use_it=0
 
[HELL_FONT4]
name=MS Sans Serif
height=-11
style=0
cut_top=0
 
[PTT_VOX]
VoxSource=0
RelayLeadTime=50
FollowUpTime=500
VoxTrigLevel=1024
AudioLatencyComp=0
 
[DCF77]
Active=0
F_center=650
 
[SPECTRUM_BUFFER]
MaxSpectrumBufferFftBins=2048
PeriodicUpdateOvw=0
 
[FFT_INPUT]
ConnectSpectrumTo=1
ConnectSpectrumTo_Q=2
ConnectSpectrumCh2To=0
ConnectSpectrumCh2To_Q=0
Same4AllChnls=1
RateDivisor=1
AntiAlias=0
ZeroPadInput=0
ApplyFOCalib=0
TrigOptions=0
TriggeredAverages=0
NrOfSamples=16384
Average=0
BinSmoothing=0
WindowFunc=2
ComplexFFT=2
CenterFrequency=0
LoSweepRate=0
LoSweepMode=0
 
[FFT_OUTPUT]
PhysicalUnit=dBfs
NeedPhaseInfo=2
UserDbOffset=0.0
 
[FFT_INPUT2]
ConnectSpectrumTo=2
ConnectSpectrumTo_Q=0
ConnectSpectrumCh2To=0
ConnectSpectrumCh2To_Q=0
Same4AllChnls=1
RateDivisor=1
AntiAlias=1
ZeroPadInput=0
ApplyFOCalib=0
TrigOptions=0
TriggeredAverages=0
NrOfSamples=8192
Average=0
BinSmoothing=0
WindowFunc=2
ComplexFFT=0
CenterFrequency=0
LoSweepRate=0
LoSweepMode=0
 
[FFT_OUTPUT2]
PhysicalUnit=dB
NeedPhaseInfo=0
UserDbOffset=0.0
 
[DISPLAY]
ReadCursorMode=1
ReadCursorOpts=40
PeakDetCursor=1
UserCursorExpr1=str("hh:mm:ss.s",cursor.spectrum.time)
FreqMin=9849.97111155
FreqMax=11264.9740004
FreqMin2=600
FreqMax2=800
FreqOffset=0
FreqOffset2=0
EditFWithoutOffset=0
AmplMin=-130
AmplMax=0
AmplMin2=-130
AmplMax2=0
CorrelAmplMin=-1
CorrelAmplMax=10
SpectrumActive=1
SpectrumOrient=0
SpecGraphArea=100
DrawingOptions=0
LongTermAvrgOptions=0
OnePixelPerBin1=0
OnePixelPerBin2=0
LogFreqScale=0
WaterStripPixels=100
SplitFreqScale=0
SplitFreqPercent=50
CorrelogramVisible=0
CorrelogramOptions=0
CorrelFmin=0
CorrelFmax=0
CorrelogramWidthPercent=33
CorrelatorLagMin=-0.0426666666667
CorrelatorLagMax=0.0426666666667
CorrelatorAmplMin=-1
CorrelatorAmplMax=10
AmplitudeBar=0
AmplitudeBarOpts=2
AmplitudeBarSize=75
AmplitudeBarRange=100
AmplBarShowChannelsFromWatchWindow=1
SpectrumMirror=0
ScaleFontName=Courier New
ScaleFontSize=8
FreqScaleOptions=33
FreqScaleFixedSize=0
SpectrumStyleNPos=0
SpectrumMathOptions=0
SpecialDisplayMode=0
ReassignmentFlags=0
WaterLineWidth=1
WaterScrollEnabled=1
AutoScrollSpeed=0
AutoScrollOverlap=1
SmoothScroll=0
AmplitudeGrid=1
FrequencyGrid=1
FreqGridStyle=0
TDDisplayOptions=1
TDFontName=Arial
TDFontSize=9
SpectrumBgColor=0
SpectrumGridColor=8421504
SpectrumPenColor0=65535
SpectrumPenColor1=16744319
SpectrumPenColor2=65280
SpectrumPenColor3=8388608
SpectrumPenColor4=255
SpectrumPenColor5=4227327
SpectrumPenColor6=8388863
SpectrumPenColor7=16744703
FreqscaleBgColor=16777215
FreqscaleFgColor=0
StationFreqColor=16776960
AmplBarBgColor=16711680
WaterBadColor=4144959
WaterGridColor=16777215
WaterLabelTextColor=16777215
WaterLabelBkgndColor=0
WaterLabelTransparent=1
CursorTextColor=8355839
CursorBkgndColor=0
WaterFreqGrid=0
WaterTimeGrid=1
WaterTimeLabel=3
TDTimeLabel=1
UserTimeLabel=YYYY-MM-DD hh:mm:ss
TimeGridSeconds=15
TimeGridSource=
TimeGridStyle=2
ChnIndividualContrast=0
WaterColorPalette=palettes\sunrise.pal
VisualAGCMode=0
VisualAGCRef=-100
ColorPalContrast=146
ColorPalBrightness=150
ColorPalSaturation=128
WaterColorPalette2=palettes\sunrise.pal
VisualAGCMode2=0
VisualAGCRef2=-100
ColorPalContrast2=100
ColorPalBrightness2=128
ColorPalSaturation2=128
WaterColorPalette3=palettes\sunrise.pal
VisualAGCMode3=0
VisualAGCRef3=-100
ColorPalContrast3=100
ColorPalBrightness3=128
ColorPalSaturation3=128
WaterScrollInterval=0.1
WaterfallAveraging=1
PeakInterval=5
LTAvrgHalfLife=0
 
[DISPLAY2]
ReadCursorMode=1
ReadCursorOpts=40
PeakDetCursor=1
UserCursorExpr1=str("hh:mm:ss.s",cursor.spectrum.time)
FreqMin=0
FreqMax=5000
FreqMin2=600
FreqMax2=800
FreqOffset=0
FreqOffset2=0
EditFWithoutOffset=0
AmplMin=-120
AmplMax=0
AmplMin2=-120
AmplMax2=0
CorrelAmplMin=-1
CorrelAmplMax=10
SpectrumActive=0
SpectrumOrient=0
SpecGraphArea=100
DrawingOptions=0
LongTermAvrgOptions=0
OnePixelPerBin1=0
OnePixelPerBin2=0
LogFreqScale=0
WaterStripPixels=100
SplitFreqScale=0
SplitFreqPercent=50
CorrelogramVisible=0
CorrelogramOptions=0
CorrelFmin=0
CorrelFmax=0
CorrelogramWidthPercent=33
CorrelatorLagMin=-0.1
CorrelatorLagMax=0.1
CorrelatorAmplMin=-1
CorrelatorAmplMax=10
AmplitudeBar=0
AmplitudeBarOpts=2
AmplitudeBarSize=75
AmplitudeBarRange=100
AmplBarShowChannelsFromWatchWindow=0
SpectrumMirror=0
ScaleFontName=Courier New
ScaleFontSize=8
FreqScaleOptions=1
FreqScaleFixedSize=0
SpectrumStyleNPos=4
SpectrumMathOptions=0
SpecialDisplayMode=0
ReassignmentFlags=0
WaterLineWidth=1
WaterScrollEnabled=1
AutoScrollSpeed=1
AutoScrollOverlap=2
SmoothScroll=0
AmplitudeGrid=1
FrequencyGrid=1
FreqGridStyle=1
TDDisplayOptions=1
TDFontName=Arial
TDFontSize=9
SpectrumBgColor=0
SpectrumGridColor=8421504
SpectrumPenColor0=65535
SpectrumPenColor1=16744319
SpectrumPenColor2=65280
SpectrumPenColor3=8388608
SpectrumPenColor4=255
SpectrumPenColor5=4227327
SpectrumPenColor6=8388863
SpectrumPenColor7=16744703
FreqscaleBgColor=16777215
FreqscaleFgColor=0
StationFreqColor=16776960
AmplBarBgColor=16711680
WaterBadColor=4144959
WaterGridColor=16777215
WaterLabelTextColor=16777215
WaterLabelBkgndColor=0
WaterLabelTransparent=1
CursorTextColor=8355839
CursorBkgndColor=0
WaterFreqGrid=0
WaterTimeGrid=3
WaterTimeLabel=3
TDTimeLabel=1
UserTimeLabel=YYYY-MM-DD hh:mm:ss
TimeGridSeconds=60
TimeGridSource=
TimeGridStyle=1
ChnIndividualContrast=0
WaterColorPalette=palettes\sunrise.pal
VisualAGCMode=0
VisualAGCRef=-100
ColorPalContrast=100
ColorPalBrightness=128
ColorPalSaturation=128
WaterColorPalette2=palettes\sunrise.pal
VisualAGCMode2=0
VisualAGCRef2=-100
ColorPalContrast2=100
ColorPalBrightness2=128
ColorPalSaturation2=128
WaterColorPalette3=palettes\sunrise.pal
VisualAGCMode3=0
VisualAGCRef3=-100
ColorPalContrast3=100
ColorPalBrightness3=128
ColorPalSaturation3=128
WaterScrollInterval=0.042
WaterfallAveraging=1
PeakInterval=5
LTAvrgHalfLife=0
 
[ColorDF]
AntennaSetup=1
IntensityScaling=0
IntensitySource=2
ColourSchemeNr=0
RotationalDir=0
AngleOffset=90
ExtraColourSat=0
CalibFile=
UseCalib=0
NullingCardioid=0
NullDirection=154
NullDirection2=23
NullDirection3=327.100006104
Null_H_E_Weight=1
NullPowerCorr=0.5
 
[TDScope]
Left=142
Top=112
Width=540
Height=419
Visible=0
FormStyle=0
Active=1
NrOfChannels=1
Mode=0
DebugMode=0
AutoRanging=0
Decimation=1
Averages=0
UseMovingAverage=1
PeakDetect=0
Persistance=0
SlowFadeImage=0
HorzScalePercent=800
DispBufSamples=0
DispZoomedStart=0
TriggerMode=0
TriggerSlope=0
TriggerSource=0
TriggerCoupling=0
PretriggerPercent=50
TriggerLevel=0
TriggerSyncTime=0.07499
DispPhaseRange=360
BkgndColor=0
GridColor=13619151
LabelColor=13619151
 
[TDScope_Chn0]
ShowWhat=4
DisplayStyle=2
ConnectTo=1
RefFrequency=650
AmplMin=-32768
AmplMax=32767
LogScale=0
ZeroDecibelValue=32767
UseFOCalib=1
PenColor=255
PhzColor=65280
 
[TDScope_Chn1]
ShowWhat=4
DisplayStyle=2
ConnectTo=2
RefFrequency=800
AmplMin=-32768
AmplMax=32767
LogScale=0
ZeroDecibelValue=32767
UseFOCalib=1
PenColor=16744319
PhzColor=16711935
SameLoForPhaseMeters=0
 
[FREQ_MARKERS]
Hidden=0
ShowInScreenshot=1
Name0=VFO
Type0=
Color0=255
FreqIncludesVFO0=0
SetProc0=filter[0].fft.fs=x-filter[0].fft.fc
GetFunc0=filter[0].fft.fs+filter[0].fft.fc
Name1=Zero Beat
Type1=
Color1=65280
FreqIncludesVFO1=0
SetProc1=filter[0].fft.fc=filter[0].fft.fc+filter[0].fft.fs-x : filter[0].fft.fs=x
GetFunc1=filter[0].fft.fs
Name2=AudioBW
Type2=
Color2=16711680
FreqIncludesVFO2=0
SetProc2=filter[0].fft.bw=2*(x-filter[0].fft.fs-filter[0].fft.fc)
GetFunc2=filter[0].fft.fs+filter[0].fft.fc+0.5*filter[0].fft.bw
 
[SPECTRUM_REF]
FileName=spectrum.ref
Color=16744319
Visible=0
Subtract=0
 
[CAPTURE]
Time_From=0
Time_To=86399
TimeInterval=30
TimerActive=0
PeriodicAction=capture ("/media/sd/capture/meteor_"+s0+"_"+str("YYMMDD_hhmmss",now)+".jpg")
PeriodicAction2=
PeriodicAction3=
PeriodicAction4=
PeriodicAction5=
PeriodicAction6=
PeriodicAction7=
PeriodicAction8=
PeriodicAction9=
PeriodicAction10=
PeriodicAction11=
PeriodicAction12=
PeriodicAction13=
PeriodicAction14=
PeriodicAction15=
PeriodicAction16=
PeriodicAction17=
PeriodicAction18=
PeriodicAction19=
PeriodicAction20=
ScheduleActive=0
Options=2
InfoOvl=1
InfoPos=3
InfoStk=1
InfoDef0=$"Date="+str("YYYY-MM-DD",now)+" Time="+str("hh:mm",now)+" UTC"
InfoDef1=$"Freq=143 050 000 Hz"
InfoDef2=$"Echo=10 600 Hz"
InfoDef3=K_station_name
InfoDef4=
InfoDef5=
InfoDef6=
InfoDef7=
InfoDef8=
InfoDef9=
SequenceNr=16823
SequenceName=/media/sd
UseJpegFormat=1
JpegQuality=90
Macro0=
Macro1=
Macro2=
Macro3=
Macro4=
Macro5=
Macro6=
Macro7=
Macro8=
Macro9=
Macro10=
Macro11=
Macro12=
Macro13=
Macro14=
Macro15=
Macro16=
Macro17=
Macro18=
Macro19=
Macro20=
Macro21=
Macro22=
Macro23=
Macro24=
Macro25=
Macro26=
Macro27=
Macro28=
Macro29=
Macro30=
Macro31=
Macro32=
Macro33=
Macro34=
Macro35=
Macro36=
Macro37=
Macro38=
Macro39=
 
[SCHEDULE]
NumEvents=12
 
[SCHEDULE0]
Time=79200
ActionCmd=capture
 
[SCHEDULE1]
Time=0
ActionCmd=capture
 
[SCHEDULE2]
Time=14400
ActionCmd=capture
 
[SCHEDULE3]
Time=21600
ActionCmd=capture
 
[SCHEDULE4]
Time=-1
ActionCmd=
 
[SCHEDULE5]
Time=-1
ActionCmd=
 
[SCHEDULE6]
Time=-1
ActionCmd=
 
[SCHEDULE7]
Time=-1
ActionCmd=
 
[SCHEDULE8]
Time=-1
ActionCmd=
 
[SCHEDULE9]
Time=-1
ActionCmd=
 
[SCHEDULE10]
Time=-1
ActionCmd=
 
[SCHEDULE11]
Time=-1
ActionCmd=
 
[CONDITIONAL_ACTIONS]
Active=1
EvalIntv=50
IF0=initialising
THEN0=A_still_detect=0:n=0:n_1=0:f=0:f_1=0:aver_amp=0:a=0:mag=0:mag_max=0:hour_count=0:dur_count=0:aver_amp_1=999:aver_amp_max=999:T="0000":T_0=0:t1_0=0:t3=0:bolide=0:bolide2=0
IF1=initialising
THEN1=id_met="no":id_met2="no":K_station_name="SKELETON-R1":K_path="/media/sd/meteors/"
IF2=initialising
THEN2=K_max_time_btw_met=2:K_max_time_to_scr=45:K_init_cond=50:K_time_to_start_up_waterf=4:K=7:K_min_dur_count_bolid=50
IF3=initialising
THEN3=A_measurement=0:A_start_detect=0:A_end_detect=0:A_end_detect_end=0:A_write_waterf=0:A_update_SDR_data_file=0:A_update_RMOB_Dur_file=0:A_met_screenshot=0
IF4=initialising
THEN4=A_no_met_screenshot=0:A_once_hour_2s_before=0:A_once_hour=0:A_once_hour_1s_before=0:timer3.restart(K_max_time_to_scr):dur2=0:dur3=0
IF5=initialising
THEN5=K_path_data=K_path+"/"+K_station_name+"/data/":K_path_audio=K_path+"/"+K_station_name+"/audio/":K_path_scr=K_path+"/"+K_station_name+"/capture/"
IF6=initialising
THEN6=fopen1(K_path+"/"+K_station_name+"/"+"station.cfg",w):fp1("K_station_name="+K_station_name):fp1("K_max_time_btw_met="+str(K_max_time_btw_met)):fp1("K_max_time_to_scr="+str(K_max_time_to_scr)):fp1("K_init_cond="+str(K_init_cond))
IF7=initialising
THEN7=fp1("K_time_to_start_up_waterf="+str(K_time_to_start_up_waterf)):fp1("K="+str(K)):fp1("K_min_dur_count_bolid="+str(K_min_dur_count_bolid):fp1("#end")
IF8=initialising
THEN8=fclose1
IF9=never
THEN9=REM --- Measurement - (each 50 ms) ----------------------------
IF10=always
THEN10=n=noise(11000,11600):f=peak_f(10300,10900):aver_amp=avrg(f-100,f+100):a=(n+K):T_0=time:dur2=dur2+1
IF11=always
THEN11=T=str("YYYYMMDDhhmmss.sss",T_0):t1=str("00000000000000000",val(T)*1000):t3=str("mmss",T_0)
IF12=A_still_detect=0
THEN12=dur2=1
IF13=aver_amp>a
THEN13=A_still_detect=A_still_detect+1:timer0.restart(K_max_time_btw_met):timer3.restart(K_max_time_to_scr):dur_count=dur_count+1:aver_amp_1=a-aver_amp:dur3=dur2
IF14=aver_amp_1<aver_amp_max
THEN14=aver_amp_max=aver_amp_1
IF15=dur2=2
THEN15=f=peak_f(10300,10900):aCt1=round(a-avrg(f-10,f+10)):aRt1=round(a-avrg(f+20,f+50)):aLt1=round(a-avrg(f-50,f-20)):f_1=round(f)
IF16=dur2=8
THEN16=f=peak_f(10300,10900):aCt2=round(a-avrg(f-10,f+10)):aRt2=round(a-avrg(f+20,f+50)):aLt2=round(a-avrg(f-50,f-20)):f_2=round(f)
IF17=dur2=16
THEN17=f=peak_f(10300,10900):aCt3=round(a-avrg(f-10,f+10)):aRt3=round(a-avrg(f+20,f+50)):aLt3=round(a-avrg(f-50,f-20)):f_3=round(f)
IF18=never
THEN18=REM --- A_start_detect (an event of begin of meteor) --------------
IF19=A_still_detect=1
THEN19=A_still_detect=2:A_start_detect=1:id_met=(t1+"_"+K_station_name):id_met0=t1:sp.print("` ^ t+"+str("ss",time))
IF20=A_start_detect=1
THEN20=A_start_detect=2:n_1=n:f_0=round(f)
IF21=A_start_detect=2
THEN21=A_start_detect=0
IF22=never
THEN22=REM --- A_end_detect (end of meteor) ---
IF23=timer0.expired(1)
THEN23=A_end_detect=1:id_met2=id_met:hour_count=hour_count+1:timer4.restart(K_time_to_start_up_waterf)
IF24=A_end_detect=1
THEN24=A_end_detect=2:s1="` "+id_met0+" hCnt"+str(hour_count)+" nb"+str(round(n_1))+" f"+str(f_0)+" hit"+str(dur_count*K_init_cond)+" dur"+str(dur3*K_init_cond)+" mag"+str(round(aver_amp_max)))
IF25=A_end_detect=2
THEN25=A_end_detect=3:s2=" 1f"+str(f_1)+" 1L"+str(aLt1)+" 1C"+str(aCt1)+" 1R"+str(aRt1)+" 2f"+str(f_2)+" 2L"+str(aLt2)+" 2C"+str(aCt2)+" 2R"+str(aRt2)+" 3f"+str(f_3)+" 3L"+str(aLt3)+" 3C"+str(aCt3)+" 3R"+str(aRt3)
IF26=A_end_detect=3
THEN26=A_end_detect=4:
IF27=A_end_detect=4
THEN27=A_end_detect=5:sp.print(s1+s2)
IF28=A_end_detect=5
THEN28=A_end_detect=6:A_update_SDR_data_file=1:fft.export.close
IF29=A_end_detect=6
THEN29=A_end_detect=0
IF30=never
THEN30=REM --- write data to the file .dat ---
IF31=A_update_SDR_data_file=1
THEN31=A_update_SDR_data_file=2:fopen1(K_path_data+str("YYYYMMDDhh",T_0)+"_"+K_station_name+".dat",a)
IF32=(A_update_SDR_data_file=2)&&(bolide2=1)
THEN32=A_update_SDR_data_file=3:fw1(id_met2+"_fb;"+str(round(n_1))+";"+str(f_0)+";"+str(dur_count*K_init_cond)+";"+str(dur3*K_init_cond)+";"+str(round(aver_amp_max)) ):bolide2=0
IF33=A_update_SDR_data_file=2
THEN33=A_update_SDR_data_file=3:fw1(id_met2+"_met;"+str(round(n_1))+";"+str(f_0)+";"+str(dur_count*K_init_cond)+";"+str(dur3*K_init_cond)+";"+str(round(aver_amp_max)) )
IF34=A_update_SDR_data_file=3
THEN34=A_update_SDR_data_file=4:fp1(";"+str(f_1)+";"+str(aLt1)+";"+str(aCt1)+";"+str(aRt1)+";"+str(f_2)+";"+str(aLt2)+";"+str(aCt2)+";"+str(aRt2)+";"+str(f_3)+";"+str(aLt3)+";"+str(aCt3)+";"+str(aRt3))
IF35=A_update_SDR_data_file=4
THEN35=A_update_SDR_data_file=5:fclose1:A_end_detect_end=1
IF36=A_update_SDR_data_file=5
THEN36=A_update_SDR_data_file=0
IF37=never
THEN37=REM --- Cleaning ----------------------------------------------
IF38=A_end_detect_end=1
THEN38=A_end_detect_end=2:dur_count=0:aver_amp_1=999:aver_amp_max=999:rec.trigger=0:A_still_detect=0
IF39=A_end_detect_end=2
THEN39=A_end_detect_end=0
IF40=never
THEN40=REM --- A_start_detect_bolid (begin of fireball) --------------
IF41=dur_count=K_min_dur_count_bolid
THEN41=id_met_bolide=id_met:rec.filename=K_path_audio+id_met_bolide+".wav":rec.trigger=1:bolide=1:bolide2=1
IF42=never
THEN42=REM --- A_met_screenshot (capture a screenshot with meteor) ---
IF43=timer4.expired(1)
THEN43=A_met_screenshot=1
IF44=(A_met_screenshot=1)&&(bolide=1)
THEN44=capture (K_path_scr+id_met_bolide+"_fb.jpg"):A_met_screenshot=2
IF45=A_met_screenshot=1
THEN45=capture (K_path_scr+id_met2+"_met.jpg"):A_met_screenshot=2
IF46=A_met_screenshot=2
THEN46=A_met_screenshot=0:bolide=0
IF47=never
THEN47=REM --- A_no_met_screenshot (capture a screenshot without meteor) ---
IF48=timer3.expired
THEN48=A_no_met_screenshot=1:capture (K_path_scr+t1+"_"+K_station_name+"_none.jpg")
IF49=A_no_met_screenshot=1
THEN49=A_no_met_screenshot=2:fopen1(K_path_data+str("YYYYMMDDhh",T_0)+"_"+K_station_name+".dat",a)
IF50=A_no_met_screenshot=2
THEN50=A_no_met_screenshot=3:fp1(t1+"_"+K_station_name+"_none;"+str(round(n))+";;;;;;;;;;;;;;;;")
IF51=A_no_met_screenshot=3
THEN51=A_no_met_screenshot=4:fclose1
IF52=A_no_met_screenshot=4
THEN52=A_no_met_screenshot=0:timer3.restart(K_max_time_to_scr)
IF53=never
THEN53=REM --- A_once_hour_20s_before (an event 1x per hour - 2 seconds) ---
IF54=val(t3,"####")=5958
THEN54=A_once_hour_2s_before=A_once_hour_2s_before+1
IF55=A_once_hour_2s_before=1
THEN55=A_once_hour=1
IF56=A_once_hour=1
THEN56=A_once_hour=2:sp.print("Last hour =",hour_count):hour_count=0
IF57=A_once_hour=2
THEN57=A_once_hour=0
IF58=never
THEN58=REM --- A_once_hour_1s_before (an event 1x per hour - 1 second) ---
IF59=val(t3,"####")=5959
THEN59=A_once_hour_2s_before=0:
IF60=
THEN60=
IF61=
THEN61=
IF62=
THEN62=
IF63=
THEN63=
IF64=
THEN64=
IF65=
THEN65=
IF66=
THEN66=
IF67=
THEN67=
IF68=
THEN68=
IF69=
THEN69=
IF70=
THEN70=
IF71=
THEN71=
IF72=
THEN72=
IF73=
THEN73=
IF74=
THEN74=
IF75=
THEN75=
IF76=
THEN76=
IF77=
THEN77=
IF78=
THEN78=
IF79=
THEN79=
IF80=
THEN80=
IF81=
THEN81=
IF82=
THEN82=
IF83=
THEN83=
IF84=
THEN84=
IF85=
THEN85=
IF86=
THEN86=
IF87=
THEN87=
IF88=
THEN88=
IF89=
THEN89=
IF90=
THEN90=
IF91=
THEN91=
IF92=
THEN92=
IF93=
THEN93=
IF94=
THEN94=
IF95=
THEN95=
IF96=
THEN96=
IF97=
THEN97=
IF98=
THEN98=
IF99=
THEN99=
WatchExpression=
 
[CIRCUIT]
ConnectGeneratorToInput=3
ConnectGeneratorToOutput=0
InputMonitorSource=1
OutputMonitorSource=3
TrigMode=0
TrigSource=0
TrigPolarity=1
TrigLevel=0
TrigHysteresis=20
PretriggerTime=0
TrigTimerIntvl=1
MixerHilbertLength=37
FreqCvtSameLO=0
FreqCvtQuadLO=0
ConnectSlider1=5
Gain0=194.984459976
Gain1=211.348903984
Gain2=1
Gain3=1
Gain4=1
Gain5=1
Gain6=0.07
Gain7=0
FreqMixerEnabled=0
MixerDcReject=0
MixerFrequency=700
MixerSideband=0
 
[CIRCUIT2]
FreqMixerEnabled=0
MixerDcReject=0
MixerFrequency=0
MixerSideband=0
 
[COUNTER_TIMER]
Mode=0
Options=0
Source0=0
Source1=0
Source2=0
Source3=0
TriggerLevel=50
Hysteresis=1
GateTime=1
HoldoffTime=0
 
[FILTER]
DisplayOptions=3
 
[FILTER0]
CoeffFile=
IIR2DesignFile=
FIR2DesignFile=
FilterFftSize=8192
FftSame4All=1
FftShowInGraph=1
FftANotchSpeed=0.05
FftANotchWidth=5
FftANRegionWidth=20
FftANotchTransitionWidth=0
FftANotchThrsh=4
FftANotchBurstReject=3
FftANotchRangeFlags1=0
FftANotchFreqRangeStart=0
FftANotchFreqRangeEnd=0
FftANotchRangeFlags2=0
FftANotchFreqRangeStart2=2000
FftANotchFreqRangeEnd2=2500
FftANotchRangeFlags3=0
FftANotchFreqRangeStart3=3000
FftANotchFreqRangeEnd3=3500
FftANotchRangeFlags4=0
FftANotchFreqRangeStart4=4000
FftANotchFreqRangeEnd4=4500
FftANotchRangeFlags5=0
FftANotchFreqRangeStart5=5000
FftANotchFreqRangeEnd5=5500
FftDenoiserLvl=-80
ChirpRate=0
DecimateOutputSRateBy=1
GraphMinLevel=-130
GraphMaxLevel=0
FftFilterType=3
FftFilterOptions=256
FftFilterFC=463.9
FftFilterBW=551.8
FftFilterSW=20
FftFreqShift=10099.8
FftInvertFrom=0
FftInvertTo=0
FftFilterResponse=
FftFilterPlugin=
When2CallPlugin=0
PluginWinX=0
PluginWinY=0
PluginWinWidth=128
PluginWinHeight=128
SpecialRangeF10=0
SpecialRangeF20=0
SpecialRangeP0_01=0
SpecialRangeP1_01=0
SpecialRangeP2_01=0
SpecialRangeP3_01=0
SpecialRangeType0=0
SpecialRangeF11=0
SpecialRangeF21=0
SpecialRangeP0_11=0
SpecialRangeP1_11=0
SpecialRangeP2_11=0
SpecialRangeP3_11=0
SpecialRangeType1=0
SpecialRangeF12=0
SpecialRangeF22=0
SpecialRangeP0_21=0
SpecialRangeP1_21=0
SpecialRangeP2_21=0
SpecialRangeP3_21=0
SpecialRangeType2=0
SpecialRangeF13=0
SpecialRangeF23=0
SpecialRangeP0_31=0
SpecialRangeP1_31=0
SpecialRangeP2_31=0
SpecialRangeP3_31=0
SpecialRangeType3=0
SpecialRangeF14=0
SpecialRangeF24=0
SpecialRangeP0_41=0
SpecialRangeP1_41=0
SpecialRangeP2_41=0
SpecialRangeP3_41=0
SpecialRangeType4=0
SpecialRangeF15=0
SpecialRangeF25=0
SpecialRangeP0_51=0
SpecialRangeP1_51=0
SpecialRangeP2_51=0
SpecialRangeP3_51=0
SpecialRangeType5=0
SpecialRangeF16=0
SpecialRangeF26=0
SpecialRangeP0_61=0
SpecialRangeP1_61=0
SpecialRangeP2_61=0
SpecialRangeP3_61=0
SpecialRangeType6=0
SpecialRangeF17=0
SpecialRangeF27=0
SpecialRangeP0_71=0
SpecialRangeP1_71=0
SpecialRangeP2_71=0
SpecialRangeP3_71=0
SpecialRangeType7=0
 
[FILTER1]
CoeffFile=
IIR2DesignFile=
FIR2DesignFile=
FilterFftSize=8192
FftSame4All=1
FftShowInGraph=1
FftANotchSpeed=0.05
FftANotchWidth=5
FftANRegionWidth=20
FftANotchTransitionWidth=0
FftANotchThrsh=4
FftANotchBurstReject=3
FftANotchRangeFlags1=0
FftANotchFreqRangeStart=0
FftANotchFreqRangeEnd=0
FftANotchRangeFlags2=0
FftANotchFreqRangeStart2=2000
FftANotchFreqRangeEnd2=2500
FftANotchRangeFlags3=0
FftANotchFreqRangeStart3=3000
FftANotchFreqRangeEnd3=3500
FftANotchRangeFlags4=0
FftANotchFreqRangeStart4=4000
FftANotchFreqRangeEnd4=4500
FftANotchRangeFlags5=0
FftANotchFreqRangeStart5=5000
FftANotchFreqRangeEnd5=5500
FftDenoiserLvl=-80
ChirpRate=0
DecimateOutputSRateBy=1
GraphMinLevel=-130
GraphMaxLevel=0
FftFilterType=3
FftFilterOptions=256
FftFilterFC=463.9
FftFilterBW=551.8
FftFilterSW=20
FftFreqShift=10099.8
FftInvertFrom=0
FftInvertTo=0
FftFilterResponse=
FftFilterPlugin=
When2CallPlugin=0
PluginWinX=0
PluginWinY=0
PluginWinWidth=128
PluginWinHeight=128
SpecialRangeF10=0
SpecialRangeF20=0
SpecialRangeP0_01=0
SpecialRangeP1_01=0
SpecialRangeP2_01=0
SpecialRangeP3_01=0
SpecialRangeType0=0
SpecialRangeF11=0
SpecialRangeF21=0
SpecialRangeP0_11=0
SpecialRangeP1_11=0
SpecialRangeP2_11=0
SpecialRangeP3_11=0
SpecialRangeType1=0
SpecialRangeF12=0
SpecialRangeF22=0
SpecialRangeP0_21=0
SpecialRangeP1_21=0
SpecialRangeP2_21=0
SpecialRangeP3_21=0
SpecialRangeType2=0
SpecialRangeF13=0
SpecialRangeF23=0
SpecialRangeP0_31=0
SpecialRangeP1_31=0
SpecialRangeP2_31=0
SpecialRangeP3_31=0
SpecialRangeType3=0
SpecialRangeF14=0
SpecialRangeF24=0
SpecialRangeP0_41=0
SpecialRangeP1_41=0
SpecialRangeP2_41=0
SpecialRangeP3_41=0
SpecialRangeType4=0
SpecialRangeF15=0
SpecialRangeF25=0
SpecialRangeP0_51=0
SpecialRangeP1_51=0
SpecialRangeP2_51=0
SpecialRangeP3_51=0
SpecialRangeType5=0
SpecialRangeF16=0
SpecialRangeF26=0
SpecialRangeP0_61=0
SpecialRangeP1_61=0
SpecialRangeP2_61=0
SpecialRangeP3_61=0
SpecialRangeType6=0
SpecialRangeF17=0
SpecialRangeF27=0
SpecialRangeP0_71=0
SpecialRangeP1_71=0
SpecialRangeP2_71=0
SpecialRangeP3_71=0
SpecialRangeType7=0
 
[SIGNAL_GENERATOR]
UseSineTable=0
NoiseLevel=-50
NoiseOn=0
AmModFreq=1
AmModFactor=1
AmModCarrier=1
AmModWave=0
AmDutyCyclePcnt=50
FmModWave=0
FmModFreq=100
FmModDeviation=240.5
FmDutyCyclePcnt=50
ArbitraryWaveformFile=
ArbitraryWaveformFormula=sin(2*pi*x)
LoadAWFromFile=0
Enabled0=1
AmMod0=0
FmMod0=0
Wave0=0
SinFreq0=900
SinAmpl0=0.1
Enabled1=1
AmMod1=0
FmMod1=0
Wave1=0
SinFreq1=1000
SinAmpl1=0.1
Enabled2=1
AmMod2=0
FmMod2=0
Wave2=0
SinFreq2=1100
SinAmpl2=0.1
 
[CIRCUIT_BLACKBOX0]
CompType=0
BandpassFC=1400
BandpassBW=1400
BandpassRespType=0
AdderInputGainA=1
AdderInputGainB=1
AdderMultiplierMode=0
DCRejectTimeConst=10
DelaySeconds=0.5
AdderGain=0
InputGain=1
FeedbackGain=0.9
BypassGain=0
SignalSource=0
DeModType=0
DeModOptions=0
DeModFC=2500
DeModBW=1000
DeModFact=1
DeModCarr=1
DeemphTimeConst=5e-05
ChirpRate=0
ChirpStartFreq=0
ChirpLength=0
ChirpFilterOpt=0
Limiter_dB_above_FS=-6
Limiter_dB_above_AVRG=10
NbRampTime=0.002
NbTrigLevel=10
NbAvrgDetTimeConst=5
NbAvrgDetFallTimeConst=0
NbPreTriggerTime=0.0005
NbPostTriggerTime=0.0005
EVE_NB_TrigLevel=1500
HumFiltFC=50
HumFiltEndStop=0.5
HumFiltTrkCycle=0.5
HumFiltSlewRate=0.01
HumFiltStages=4
HumFiltTrackAlgo=11
HumFiltFlags=0
HumFreqExpr=peak_f(#1,49.8,50.2)
AGCMode=0
AGCFlags=0
AGCTargetLevel=-3
AGCMinGain=-20
AGCMaxGain=80
AGCCustomAttack=1
AGCCustomDecay=0.1
 
[CIRCUIT_BLACKBOX1]
CompType=0
BandpassFC=1400
BandpassBW=1400
BandpassRespType=0
AdderInputGainA=1
AdderInputGainB=1
AdderMultiplierMode=0
DCRejectTimeConst=10
DelaySeconds=0.5
AdderGain=0
InputGain=1
FeedbackGain=0.9
BypassGain=0
SignalSource=0
DeModType=0
DeModOptions=0
DeModFC=2500
DeModBW=1000
DeModFact=1
DeModCarr=1
DeemphTimeConst=5e-05
ChirpRate=0
ChirpStartFreq=0
ChirpLength=0
ChirpFilterOpt=0
Limiter_dB_above_FS=-6
Limiter_dB_above_AVRG=10
NbRampTime=0.002
NbTrigLevel=10
NbAvrgDetTimeConst=5
NbAvrgDetFallTimeConst=0
NbPreTriggerTime=0.0005
NbPostTriggerTime=0.0005
EVE_NB_TrigLevel=1500
HumFiltFC=50
HumFiltEndStop=0.5
HumFiltTrkCycle=0.5
HumFiltSlewRate=0.01
HumFiltStages=4
HumFiltTrackAlgo=11
HumFiltFlags=0
HumFreqExpr=peak_f(#1,49.8,50.2)
AGCMode=0
AGCFlags=0
AGCTargetLevel=-3
AGCMinGain=-20
AGCMaxGain=80
AGCCustomAttack=1
AGCCustomDecay=0.1
 
[CIRCUIT_BLACKBOX2]
CompType=20
BandpassFC=1400
BandpassBW=1400
BandpassRespType=0
AdderInputGainA=1
AdderInputGainB=1
AdderMultiplierMode=0
DCRejectTimeConst=10
DelaySeconds=1
AdderGain=0
InputGain=1
FeedbackGain=0
BypassGain=1
SignalSource=0
DeModType=0
DeModOptions=0
DeModFC=0
DeModBW=0
DeModFact=1
DeModCarr=1
DeemphTimeConst=5e-05
ChirpRate=2000
ChirpStartFreq=500
ChirpLength=1
ChirpFilterOpt=0
Limiter_dB_above_FS=6
Limiter_dB_above_AVRG=10
NbRampTime=0.01
NbTrigLevel=20
NbAvrgDetTimeConst=5
NbAvrgDetFallTimeConst=0
NbPreTriggerTime=0.0005
NbPostTriggerTime=0.0005
EVE_NB_TrigLevel=1500
HumFiltFC=50
HumFiltEndStop=0.5
HumFiltTrkCycle=0.5
HumFiltSlewRate=0.01
HumFiltStages=4
HumFiltTrackAlgo=12
HumFiltFlags=0
HumFreqExpr=peak_f(#1,49.8,50.2)
AGCMode=0
AGCFlags=1
AGCTargetLevel=-3
AGCMinGain=-20
AGCMaxGain=70
AGCCustomAttack=0.1
AGCCustomDecay=0.1
 
[CIRCUIT_BLACKBOX3]
CompType=0
BandpassFC=1400
BandpassBW=1400
BandpassRespType=0
AdderInputGainA=1
AdderInputGainB=1
AdderMultiplierMode=0
DCRejectTimeConst=10
DelaySeconds=0.5
AdderGain=0
InputGain=1
FeedbackGain=0.9
BypassGain=0
SignalSource=0
DeModType=0
DeModOptions=0
DeModFC=2500
DeModBW=1000
DeModFact=1
DeModCarr=1
DeemphTimeConst=5e-05
ChirpRate=0
ChirpStartFreq=0
ChirpLength=0
ChirpFilterOpt=0
Limiter_dB_above_FS=-6
Limiter_dB_above_AVRG=10
NbRampTime=0.002
NbTrigLevel=10
NbAvrgDetTimeConst=5
NbAvrgDetFallTimeConst=0
NbPreTriggerTime=0.0005
NbPostTriggerTime=0.0005
EVE_NB_TrigLevel=1500
HumFiltFC=50
HumFiltEndStop=0.5
HumFiltTrkCycle=0.5
HumFiltSlewRate=0.01
HumFiltStages=4
HumFiltTrackAlgo=11
HumFiltFlags=0
HumFreqExpr=peak_f(#1,49.8,50.2)
AGCMode=0
AGCFlags=0
AGCTargetLevel=-3
AGCMinGain=-20
AGCMaxGain=80
AGCCustomAttack=1
AGCCustomDecay=0.1
 
[GPS_RECEIVER]
PosEmitInterval=60
Options=32
ExportColumnSeparator=32
 
[INTERPRETER]
MsgDisplay=63
CommandFileName=command_files\testcmd.txt
 
[EXPORT]
NextWriteTime=0
FftExportOptions=0
FftExportFormat=0
FftExportHeaders=0
FftExportSeparator=9
FftExportMaxNrBins=1024
FftExportMaxFileSize=0
FftExportStartFreqHz=0
FftExportFileName=FftLog1.txt
FftExportTimeFormat=YYYY-MM-DD hh:mm:ss.s
 
[EXPORT_FORMAT]
NrOfColumns=4
Active=0
SeparatorChr=9
FileName=exported.txt
FileName2=
Title0=Time
Exprs0=time
Format0=YYYY-MM-DD hh:mm:ss
Flags0=0
Title1=Noise
Exprs1=noise_n(500,2500)
Format1=##0.0#
Flags1=0
Title2=PeakAmpl
Exprs2=peak_a(500,2500)
Format2=##0.0#
Flags2=0
Title3=PeakFreq
Exprs3=peak_f(500,2500)
Format3=###0.0#
Flags3=0
 
[EXPORT_ACTIONS]
CmdAfterSpectrum=
CmdBeforeWrite=
CmdAfterWrite=
UsePreciseInterval=1
WriteIntervalSec=1
PwrFailSafe=0
 
[MACRO_BUTTONS]
Exprs0=$"Capture now"
Commands0=capture("capt"+str("YYMMDDhhmm",now)+".jpg")
Options0=2
Hotkey0=0
Exprs1=$"Time: "+str("hh:mm:ss.s",now)
Commands1=
Options1=2
Hotkey1=0
Exprs2=$"peak at "+str("###0.00 Hz",peak_f(200,2500))
Commands2=
Options2=2
Hotkey2=0
Exprs3=$"Pause"
Commands3=sp.pause=1 // spectrum analyser pause
Options3=2
Hotkey3=0
Exprs4=$"Continue"
Commands4=sp.pause=0 // spectrum analyser resume
Options4=2
Hotkey4=0
Exprs5=$"Button #6"
Commands5=
Options5=2
Hotkey5=0
Exprs6=$"Button #7"
Commands6=
Options6=2
Hotkey6=0
Exprs7=$"Button #8"
Commands7=
Options7=2
Hotkey7=0
 
[USER_MENU_ITEMS]
Exprs0=
Commands0=
Options0=0
Hotkey0=0
Exprs1=
Commands1=
Options1=0
Hotkey1=0
Exprs2=
Commands2=
Options2=0
Hotkey2=0
Exprs3=
Commands3=
Options3=0
Hotkey3=0
Exprs4=
Commands4=
Options4=0
Hotkey4=0
Exprs5=
Commands5=
Options5=0
Hotkey5=0
 
[WatchWindow]
Left=124
Top=108
Width=510
Height=392
Visible=0
FormStyle=0
 
[WatchListAndPlotter]
Flags=0
TextExportFlags=0
BottomControls=0
 
[WatchList]
Title1=Noise
Expr1=noise_n(500,1000)
Form1=##0.0
MinV1=-100
MaxV1=0
Title2=Peak1_Ampl
Expr2=peak_a(500,1000)
Form2=##0.0
MinV2=-100
MaxV2=0
Title3=Peak1_Freq
Expr3=peak_f(500,1000)
Form3=###0.0
MinV3=200
MaxV3=2700
Title4=Peak2_Ampl
Expr4=peak_a(1000,1500)
Form4=##0.0
MinV4=-100
MaxV4=0
Title5=Peak2_Freq
Expr5=peak_f(1000,1500)
Form5=###0.0
MinV5=200
MaxV5=2700
Title6=Peak3_Ampl
Expr6=peak_a(1500,2000)
Form6=##0.0
MinV6=-100
MaxV6=0
Title7=Peak2_Freq
Expr7=peak_f(1500,2000)
Form7=###0.0##
MinV7=200
MaxV7=2700
Title8=
Expr8=
Form8=
MinV8=
MaxV8=
Title9=
Expr9=
Form9=
MinV9=
MaxV9=
Title10=
Expr10=
Form10=
MinV10=
MaxV10=
Title11=
Expr11=
Form11=
MinV11=
MaxV11=
Title12=
Expr12=
Form12=
MinV12=
MaxV12=
Title13=
Expr13=
Form13=
MinV13=
MaxV13=
Title14=
Expr14=
Form14=
MinV14=
MaxV14=
Title15=
Expr15=
Form15=
MinV15=
MaxV15=
Title16=
Expr16=
Form16=
MinV16=
MaxV16=
Title17=
Expr17=
Form17=
MinV17=
MaxV17=
Title18=
Expr18=
Form18=
MinV18=
MaxV18=
Title19=
Expr19=
Form19=
MinV19=
MaxV19=
Title20=
Expr20=
Form20=
MinV20=
MaxV20=
Title21=
Expr21=
Form21=
MinV21=
MaxV21=
Title22=
Expr22=
Form22=
MinV22=
MaxV22=
Title23=
Expr23=
Form23=
MinV23=
MaxV23=
Title24=
Expr24=
Form24=
MinV24=
MaxV24=
Title25=
Expr25=
Form25=
MinV25=
MaxV25=
Title26=
Expr26=
Form26=
MinV26=
MaxV26=
Title27=
Expr27=
Form27=
MinV27=
MaxV27=
Title28=
Expr28=
Form28=
MinV28=
MaxV28=
Title29=
Expr29=
Form29=
MinV29=
MaxV29=
Title30=
Expr30=
Form30=
MinV30=
MaxV30=
Title31=
Expr31=
Form31=
MinV31=
MaxV31=
Title32=
Expr32=
Form32=
MinV32=
MaxV32=
Title33=
Expr33=
Form33=
MinV33=
MaxV33=
Title34=
Expr34=
Form34=
MinV34=
MaxV34=
Title35=
Expr35=
Form35=
MinV35=
MaxV35=
Title36=
Expr36=
Form36=
MinV36=
MaxV36=
Title37=
Expr37=
Form37=
MinV37=
MaxV37=
Title38=
Expr38=
Form38=
MinV38=
MaxV38=
Title39=
Expr39=
Form39=
MinV39=
MaxV39=
Title40=
Expr40=
Form40=
MinV40=
MaxV40=
Title41=
Expr41=
Form41=
MinV41=
MaxV41=
Title42=
Expr42=
Form42=
MinV42=
MaxV42=
Title43=
Expr43=
Form43=
MinV43=
MaxV43=
Title44=
Expr44=
Form44=
MinV44=
MaxV44=
Title45=
Expr45=
Form45=
MinV45=
MaxV45=
Title46=
Expr46=
Form46=
MinV46=
MaxV46=
Title47=
Expr47=
Form47=
MinV47=
MaxV47=
Title48=
Expr48=
Form48=
MinV48=
MaxV48=
Title49=
Expr49=
Form49=
MinV49=
MaxV49=
Title50=
Expr50=
Form50=
MinV50=
MaxV50=
Title51=
Expr51=
Form51=
MinV51=
MaxV51=
Title52=
Expr52=
Form52=
MinV52=
MaxV52=
Title53=
Expr53=
Form53=
MinV53=
MaxV53=
Title54=
Expr54=
Form54=
MinV54=
MaxV54=
Title55=
Expr55=
Form55=
MinV55=
MaxV55=
Title56=
Expr56=
Form56=
MinV56=
MaxV56=
Title57=
Expr57=
Form57=
MinV57=
MaxV57=
Title58=
Expr58=
Form58=
MinV58=
MaxV58=
Title59=
Expr59=
Form59=
MinV59=
MaxV59=
Title60=
Expr60=
Form60=
MinV60=
MaxV60=
Title61=
Expr61=
Form61=
MinV61=
MaxV61=
Title62=
Expr62=
Form62=
MinV62=
MaxV62=
Title63=
Expr63=
Form63=
MinV63=
MaxV63=
Title64=
Expr64=
Form64=
MinV64=
MaxV64=
Title65=
Expr65=
Form65=
MinV65=
MaxV65=
Title66=
Expr66=
Form66=
MinV66=
MaxV66=
Title67=
Expr67=
Form67=
MinV67=
MaxV67=
Title68=
Expr68=
Form68=
MinV68=
MaxV68=
Title69=
Expr69=
Form69=
MinV69=
MaxV69=
Title70=
Expr70=
Form70=
MinV70=
MaxV70=
Title71=
Expr71=
Form71=
MinV71=
MaxV71=
Title72=
Expr72=
Form72=
MinV72=
MaxV72=
Title73=
Expr73=
Form73=
MinV73=
MaxV73=
Title74=
Expr74=
Form74=
MinV74=
MaxV74=
Title75=
Expr75=
Form75=
MinV75=
MaxV75=
Title76=
Expr76=
Form76=
MinV76=
MaxV76=
Title77=
Expr77=
Form77=
MinV77=
MaxV77=
Title78=
Expr78=
Form78=
MinV78=
MaxV78=
Title79=
Expr79=
Form79=
MinV79=
MaxV79=
Title80=
Expr80=
Form80=
MinV80=
MaxV80=
Title81=
Expr81=
Form81=
MinV81=
MaxV81=
Title82=
Expr82=
Form82=
MinV82=
MaxV82=
Title83=
Expr83=
Form83=
MinV83=
MaxV83=
Title84=
Expr84=
Form84=
MinV84=
MaxV84=
Title85=
Expr85=
Form85=
MinV85=
MaxV85=
Title86=
Expr86=
Form86=
MinV86=
MaxV86=
Title87=
Expr87=
Form87=
MinV87=
MaxV87=
Title88=
Expr88=
Form88=
MinV88=
MaxV88=
Title89=
Expr89=
Form89=
MinV89=
MaxV89=
Title90=
Expr90=
Form90=
MinV90=
MaxV90=
Title91=
Expr91=
Form91=
MinV91=
MaxV91=
Title92=
Expr92=
Form92=
MinV92=
MaxV92=
Title93=
Expr93=
Form93=
MinV93=
MaxV93=
Title94=
Expr94=
Form94=
MinV94=
MaxV94=
Title95=
Expr95=
Form95=
MinV95=
MaxV95=
Title96=
Expr96=
Form96=
MinV96=
MaxV96=
Title97=
Expr97=
Form97=
MinV97=
MaxV97=
Title98=
Expr98=
Form98=
MinV98=
MaxV98=
Title99=
Expr99=
Form99=
MinV99=
MaxV99=
Title100=
Expr100=
Form100=
MinV100=
MaxV100=
ColWidth0=0
ColWidth1=0
ColWidth2=0
ColWidth3=0
ColWidth4=0
CmdsAfterScrollStep=
 
[WatchHistoryMemory]
PlotMaxSamples=2000
PlotMaxChannels=6
PlotFileName=plotter0.tmp
PlotExportName=pltexpt0.txt
PlotExportTimeColumn=0
PlotExportTimeFormat=YYYY-MM-DD hh:mm:ss
ColumnSeparator=0
PlotExportPeriodic=0
 
[WatchHistoryPlotter]
Running=0
CaptureFileName=plot.jpg
SecPerStep=1
SmallMarker=3
SmallInterval=30
LargeMarker=1
LargeInterval=2*60
TimeLabelFormat=hh:mm
DateLabelFormat=YY-MM-DD
VertScalePenStyle=3
BkgndColor=0
GridColor=13619151
LabelColor=16777215
PenColor3=16744319
PenColor4=16711935
PenColor6=4145151
PenColor7=4194111
PenColor8=4161407
PenColor9=16728063
PenColor10=4194303
PenColor11=8355839
PenColor12=8388479
PenColor13=12550015
PenColor14=16744447
PenColor15=8388607
PenColor16=13619199
VerticalSplit=0
VSplitUpperChannels=10
LegendPos=4
LegendDetails=1
LegendFontName=Arial
LegendFontSize=9
HorzAxisFontName=Arial
HorzAxisFontSize=8
VertAxisFontName=Arial Narrow
VertAxisFontSize=8
AxisAssign0=1
AxisLabel0=dB uV / m
AxisAssign1=3
AxisLabel1=Frequency [Hz]
AxisAssign2=-1
AxisLabel2=
AxisAssign3=-1
AxisLabel3=
AxisAssign4=1
AxisLabel4=
AxisAssign5=1
AxisLabel5=
AxisAssign6=1
AxisLabel6=
AxisAssign7=1
AxisLabel7=
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/Designs/Measuring_instruments/RMDS01B/SW/Bolidozor/SpectrumLab/sync.sh
0,0 → 1,161
#!/usr/bin/env bash
 
[[ $# -ne 2 ]] && echo "Usage: ./sync.sh /path/to/folder observatory_name" && exit 1
 
# Redirect stdout ( > ) into a named pipe ( >() ) running "tee"
#exec > >(tee "$1"/logfile)
 
# Also redirect stderr
#exec 2>&1
 
# 9 min delay between resync
FREQUENCY=540
 
TIDYUP="$(pwd)/tidyup.sh"
RSYNC="$(pwd)/upload.sh"
 
DEFAULT="\033[00m"
RED="\033[01;31m"
BLUE="\033[01;36m"
 
function info() {
echo -en "$BLUE"; echo -n $1; echo -e "$DEFAULT"
}
function error() {
echo -en "$RED"; echo -n $1; echo -e "$DEFAULT"
}
 
function syncdir() {
EXIT=1
i=1
# while [ $EXIT -ne 0 ]; do
info "Trying to sync $1; $2; $3; $4"
"$RSYNC" $1 $2 $3 $4
EXIT=$?
[ $EXIT -ne 0 ] && error "sync failed"
let i++
# done
return $EXIT
}
 
# Sort files
# Mask
function tidyup() {
info "sorting $1"
"$TIDYUP" $1
if [ "$?" -ne 0 ]; then
error "sorting failed, please send logfile.txt"
return 1
fi
return 0
}
 
# Test public key authentication
function sshtest() {
./test.sh $1
if [ "$?" -eq 0 ]; then
info "Authentication works"
return 0
else
error "Authentication does not work"
return 1
fi
}
 
# parameters $1=LocalPathToData $2=ObservatoryName
function main() {
# start timer
start_time=`date +%s`
# OLD=$LAST
# OLD_HOUR=$LAST_HOUR
# sort
tidyup $1 || error "Sort failed, please analyze logfile.txt ."
if [ -f "$1"/LAST ]
then
# read last processed day
# read LAST < "$1"/LAST
# read LAST_HOUR < "$1"/capture/LAST
# sync last updated folders
syncdir $2 audio/"$LAST" -a
syncdir $2 capture/"$LAST_HOUR" -a
syncdir $2 data/"$LAST" -a
syncdir $2 data --dirs --delete
# days changed, sync whole yesterday too
if [ "$LAST" != "$OLD" ]
then
info "syncing yesterday"
syncdir $2 audio/"$OLD" -a
syncdir $2 capture/"$OLD" -a
syncdir $2 data/"$OLD" -a
else
# hours changed? sync previous hour too?
if [ "$LAST_HOUR" != "$OLD_HOUR" ]
then
info "syncing previous hour"
syncdir $2 capture/"$OLD_HOUR" -a
fi
fi
fi
# end timer
end_time=`date +%s`
ELAPSED=`expr $end_time - $start_time`
info "execution time was $ELAPSED s"
date
}
 
# Check if we can connect, otherwise terminate
info "Checking connection to the server"
sshtest $2 || exit 1
 
# Change working directory
cd $1
 
# first sort
info "Tidyup..."
tidyup $1 || error "Sorted, please analyze logfile.txt ."
# first sync
info "Doing complete sync"
syncdir $2 . -a
 
if [ -f "$1"/LAST ]
then
read LAST < "$1"/LAST
else
LAST="."
fi
 
if [ -f "$1"/capture/LAST ]
then
read LAST_HOUR < "$1"/capture/LAST
else
LAST_HOUR="."
fi
 
 
# Periodically tidy up and do incremental sync
while :
do
OLD=$LAST
OLD_HOUR=$LAST_HOUR
# read last processed day/hour
read LAST < "$1"/LAST
read LAST_HOUR < "$1"/capture/LAST
 
main $1 $2 2>&1 | tee "$1"/logfile
 
# save only tail from logfile
tail -n 1000 "$1"/logfile > "$1"/logfile.txt
rm "$1"/logfile
syncdir $2 . --dirs --delete > /dev/null 2>&1
 
# wait for a next syncing period
sleep $FREQUENCY
done
/Designs/Measuring_instruments/RMDS01B/SW/Bolidozor/SpectrumLab/test.sh
0,0 → 1,5
#!/usr/bin/env bash
 
ssh -o StrictHostKeyChecking=no -o BatchMode=yes $1@space.astro.cz "exit"
 
[[ "$?" -eq 0 ]] && exit 0 || exit 1
/Designs/Measuring_instruments/RMDS01B/SW/Bolidozor/SpectrumLab/upload.sh
0,0 → 1,27
#!/usr/bin/env bash
#
# sync directory to server
#
# this script should not be called manually
 
echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
[[ "$#" < 1 ]] && echo "Please provide directory to upload" && exit 1
 
# debug
set -x
 
UPDIR="$2"
STATIONNAME=${PWD##*/}
OBSERVATORYNAME="$1"
 
#echo "$1 ; $2 ; $3 ; $4" >> /media/sd/meteors/debug.log
 
# if exclude-list.txt is present, use it
# could as well be changed for rsync -q, but this is more clear
if [[ -f exclude-list.txt ]]
then
rsync -vvtz $3 $4 "$UPDIR"/ --exclude-from='exclude-list.txt' "$OBSERVATORYNAME"@space.astro.cz:/storage/meteors/"$OBSERVATORYNAME"/"$STATIONNAME"/"$UPDIR"
else
rsync -vvtz $3 $4 "$UPDIR"/ "$OBSERVATORYNAME"@space.astro.cz:/storage/meteors/"$OBSERVATORYNAME"/"$STATIONNAME"/"$UPDIR"
fi
/Designs/Measuring_instruments/RMDS01B/SW/Bolidozor/SpectrumLab/tidyup.sh
0,0 → 1,193
#!/usr/bin/env bash
#
# tidyup.sh
#
# This script will sort create organized directory structure
# from observation files in one directory.
#
# Takes one argument: path to the directory
#
# Returns 0 if sorting succeeds
# Returns 1 if there are no files to sort
# Returns >1 in case of error
#
# before:
#
# |
# | 20131214214014084_SVAKOV-R2_met.jpg
# | 20131214214124184_SVAKOV-R2_met.jpg
# | 20131224214124184_SVAKOV-R2_met.jpg
# | .
# | .
# | .
#
# after:
#
# |
# |- SVAKOV-R2 <- observatory
# | |- 2013 <- year
# | |- 12 <- month
# | |- 14 <- day
# | |- 21 <- hour
# | | |- 20131214214014084_SVAKOV-R2_met.jpg
# | | |- 20131214214124184_SVAKOV-R2_met.jpg
# | |
# | |- 22
# | |- 20131224214124184_SVAKOV-R2_met.jpg
# |
# .
# .
# .
#
#
# filename format must be as 20131214214014084_SVAKOV-R2_met.jpg
 
DELIM="_"
SLASH="/"
LAST=""
 
 
# turn on debug
set -x
 
# none or 1 argument allowed
[[ "$#" -ne 1 ]] && echo "Wrong number of arguments ($#)" && exit 1
 
# directory in which to sort must exists
[[ ! -d "$1" ]] && echo "Directory doesn't exist" && exit 1
 
# captured images
cd "$1"/capture
 
# if there are no files with $EXT extension in the directory then quit
EXT="jpg"
ls -f *."$EXT" > /dev/null 2>&1
if [ "$?" -eq 0 ]; then
for i in *."$EXT"; do
echo "processing " $i
OBSERVATORY=`echo $i | cut -d $DELIM -f2`
OBSERVATORY=`echo "$OBSERVATORY" | cut -d "." -f1`
TIMESTAMP=`echo "$i" | cut -d $DELIM -f1`
YEAR=`echo "$TIMESTAMP" | cut -c 1-4`
MONTH=`echo "$TIMESTAMP" | cut -c 5-6`
DAY=`echo "$TIMESTAMP" | cut -c 7-8`
HOUR=`echo "$TIMESTAMP" | cut -c 9-10`
# observatory / year / month / day / hour
DAYDIR="$YEAR$SLASH$MONTH$SLASH$DAY$SLASH$HOUR"
# create directory with observatory name, year, month and day if hasn't existed before
[[ -d "$DAYDIR" ]] || mkdir -p "$DAYDIR"
# check if directory really exists (if fs is full it might not be created)
[[ -d "$DAYDIR" ]] && mv "$i" "$DAYDIR"
echo -n "$YEAR$SLASH$MONTH$SLASH$DAY$SLASH$HOUR" > LAST
echo -n "$YEAR$SLASH$MONTH$SLASH$DAY" > "$1"/LAST
done
else
echo "No .""$EXT"" files to sort"
fi
 
#captured sounds
cd "$1"/audio
 
EXT="wav"
ls -f *."$EXT" > /dev/null 2>&1
if [ "$?" -eq 0 ]; then
for i in *."$EXT"; do
echo "processing " $i
OBSERVATORY=`echo $i | cut -d $DELIM -f2`
OBSERVATORY=`echo "$OBSERVATORY" | cut -d "." -f1`
TIMESTAMP=`echo "$i" | cut -d $DELIM -f1`
YEAR=`echo "$TIMESTAMP" | cut -c 1-4`
MONTH=`echo "$TIMESTAMP" | cut -c 5-6`
DAY=`echo "$TIMESTAMP" | cut -c 7-8`
HOUR=`echo "$TIMESTAMP" | cut -c 9-10`
# observatory / year / month / day / hour
DAYDIR="$YEAR$SLASH$MONTH$SLASH$DAY"
# create directory with observatory name, year, month and day if hasn't existed before
[[ -d "$DAYDIR" ]] || mkdir -p "$DAYDIR"
# check if directory really exists (if fs is full it might not be created)
[[ -d "$DAYDIR" ]] && mv "$i" "$DAYDIR"
echo -n "$YEAR$SLASH$MONTH$SLASH$DAY" > LAST
echo -n "$YEAR$SLASH$MONTH$SLASH$DAY" > "$1"/LAST
done
else
echo "No .""$EXT"" files to sort"
fi
 
EXT="aux"
ls -f *."$EXT" > /dev/null 2>&1
if [ "$?" -eq 0 ]; then
for i in *."$EXT"; do
echo "processing " $i
OBSERVATORY=`echo $i | cut -d $DELIM -f2`
OBSERVATORY=`echo "$OBSERVATORY" | cut -d "." -f1`
TIMESTAMP=`echo "$i" | cut -d $DELIM -f1`
YEAR=`echo "$TIMESTAMP" | cut -c 1-4`
MONTH=`echo "$TIMESTAMP" | cut -c 5-6`
DAY=`echo "$TIMESTAMP" | cut -c 7-8`
HOUR=`echo "$TIMESTAMP" | cut -c 9-10`
# observatory / year / month / day / hour
DAYDIR="$YEAR$SLASH$MONTH$SLASH$DAY"
# create directory with observatory name, year, month and day if hasn't existed before
[[ -d "$DAYDIR" ]] || mkdir -p "$DAYDIR"
# check if directory really exists (if fs is full it might not be created)
[[ -d "$DAYDIR" ]] && mv "$i" "$DAYDIR"
echo -n "$YEAR$SLASH$MONTH$SLASH$DAY" > LAST
echo -n "$YEAR$SLASH$MONTH$SLASH$DAY" > "$1"/LAST
done
else
echo "No .""$EXT"" files to sort"
fi
 
#metadata for Bolidozor
cd "$1"/data
 
EXT="dat"
ls -f *."$EXT" > /dev/null 2>&1
if [ "$?" -eq 0 ]; then
for i in $(find *."$EXT" -maxdepth 1 -mmin +59); do
echo "processing " $i
OBSERVATORY=`echo $i | cut -d $DELIM -f2`
OBSERVATORY=`echo "$OBSERVATORY" | cut -d "." -f1`
TIMESTAMP=`echo "$i" | cut -d $DELIM -f1`
YEAR=`echo "$TIMESTAMP" | cut -c 1-4`
MONTH=`echo "$TIMESTAMP" | cut -c 5-6`
DAY=`echo "$TIMESTAMP" | cut -c 7-8`
HOUR=`echo "$TIMESTAMP" | cut -c 9-10`
# observatory / year / month / day / hour
DAYDIR="$YEAR$SLASH$MONTH$SLASH$DAY"
# create directory with observatory name, year, month and day if hasn't existed before
[[ -d "$DAYDIR" ]] || mkdir -p "$DAYDIR"
# check if directory really exists (if fs is full it might not be created)
[[ -d "$DAYDIR" ]] && mv "$i" "$DAYDIR"
echo -n "$YEAR$SLASH$MONTH$SLASH$DAY" > LAST
echo -n "$YEAR$SLASH$MONTH$SLASH$DAY" > "$1"/LAST
done
else
echo "No .""$EXT"" files to sort"
fi
 
 
exit 0