Skip to content

Commit

Permalink
fix: update dart response to include fake stage
Browse files Browse the repository at this point in the history
The fake stage is needed for seiscomp to convert the fdsn xml.
  • Loading branch information
ozym committed Apr 5, 2024
1 parent 39ef2b2 commit 0e7c29d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
4 changes: 4 additions & 0 deletions meta/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ func (s *Set) Collections(site Site) []Collection {
continue
}

if component.SamplingRate != stream.SamplingRate && component.SamplingRate != 0.0 {
continue
}

for _, channel := range s.Channels() {
if recorder.Make != channel.Make {
continue
Expand Down
24 changes: 23 additions & 1 deletion resp/files/combined_SAIC_BPR-Subsystem_BPR-Subsystem_Z_15s.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Name>m</Name>
</InputUnits>
<OutputUnits>
<Name>count</Name>
<Name>V</Name>
</OutputUnits>
<CfTransferFunctionType>DIGITAL</CfTransferFunctionType>
</Coefficients>
Expand All @@ -32,4 +32,26 @@
<Frequency>1</Frequency>
</StageGain>
</Stage>
<Stage number="2">
<Coefficients resourceId="Coefficients#GAIN-1">
<InputUnits>
<Name>V</Name>
</InputUnits>
<OutputUnits>
<Name>count</Name>
</OutputUnits>
<CfTransferFunctionType>DIGITAL</CfTransferFunctionType>
</Coefficients>
<Decimation>
<InputSampleRate>1</InputSampleRate>
<Factor>1</Factor>
<Offset>0</Offset>
<Delay>0</Delay>
<Correction>0</Correction>
</Decimation>
<StageGain>
<Value>1</Value>
<Frequency>1</Frequency>
</StageGain>
</Stage>
</Response>
24 changes: 23 additions & 1 deletion resp/files/combined_SAIC_BPR-Subsystem_BPR-Subsystem_Z_900s.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Name>m</Name>
</InputUnits>
<OutputUnits>
<Name>count</Name>
<Name>V</Name>
</OutputUnits>
<CfTransferFunctionType>DIGITAL</CfTransferFunctionType>
</Coefficients>
Expand All @@ -32,4 +32,26 @@
<Frequency>1</Frequency>
</StageGain>
</Stage>
<Stage number="2">
<Coefficients resourceId="Coefficients#GAIN-1">
<InputUnits>
<Name>V</Name>
</InputUnits>
<OutputUnits>
<Name>count</Name>
</OutputUnits>
<CfTransferFunctionType>DIGITAL</CfTransferFunctionType>
</Coefficients>
<Decimation>
<InputSampleRate>1</InputSampleRate>
<Factor>1</Factor>
<Offset>0</Offset>
<Delay>0</Delay>
<Correction>0</Correction>
</Decimation>
<StageGain>
<Value>1</Value>
<Frequency>1</Frequency>
</StageGain>
</Stage>
</Response>

0 comments on commit 0e7c29d

Please sign in to comment.