Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmd/impact-config/testdata/install/streams.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Station,Location,Band,Source,Sampling Rate,Axial,Reversed,Triggered,Start Date,End Date
KIW,10,E,H,100,false,false,false,2004-06-09T23:00:00Z,9999-01-01T00:00:00Z
DKHS,20,B,N,50,true,false,false,2014-09-08T05:00:00Z,9999-01-01T00:00:00Z
DKHS,20,H,N,200,true,false,true,2002-06-06T00:00:00Z,9999-01-01T00:00:00Z
Station,Location,Band,Source,Sampling Rate,Axial,Triggered,Start Date,End Date
KIW,10,E,H,100,false,false,2004-06-09T23:00:00Z,9999-01-01T00:00:00Z
DKHS,20,B,N,50,true,false,2014-09-08T05:00:00Z,9999-01-01T00:00:00Z
DKHS,20,H,N,200,true,true,2002-06-06T00:00:00Z,9999-01-01T00:00:00Z
282 changes: 141 additions & 141 deletions cmd/tide-config/testdata/install/streams.csv

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions docs/sheets/RECORDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ are presently not constrained, other than that they should match when a connecti
Datalogger configuration, through the __install/streams.csv__ file, is meant to provide a mechanism
for mapping recorded data to a datalogger or recorder configuration. This is an overlay
template which isn't dependent on the actual equipment being installed, only the broad settings.
This is also the mechanism that can inject external information, such as when a stream has
been flagged as being of the reverse polarity, and is mainly used to build _StationXML_ meta-data files.

## <a name="steps">_Overall steps_

Expand Down
1 change: 0 additions & 1 deletion install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ A list of _datalogger_ sampling configurations for a given _station_ and recordi
| _Source_ | Channel _Source_ code|
| _Sampling Rate_ | Nominal stream sampling rate | samples per second (_Hz_)
| _Axial_ | Whether the stream is configured for</br>axial coordinates (_Z12_) or geographic (_ZNE_) |_"yes"_ or _"no"_
| _Reversed_ | Whether the recorded signal should</br>be reversed over the time window|_"yes"_ or _"no"_
| _Triggered_ | Whether the stream represents</br>triggered recordings|_"yes"_ or _"no"_
| _Start_ | Stream start time|
| _Stop_ | Stream stop time|
Expand Down
6,508 changes: 3,254 additions & 3,254 deletions install/streams.csv

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions meta/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,6 @@ func TestList(t *testing.T) {
SamplingRate: 50.0,
samplingRate: "50",
Axial: "true",
Reversed: false,
Triggered: true,
Span: Span{
Start: time.Date(2011, time.August, 25, 0, 25, 0, 0, time.UTC),
Expand All @@ -923,7 +922,6 @@ func TestList(t *testing.T) {
SamplingRate: 200.0,
samplingRate: "200",
Axial: "false",
Reversed: false,
Triggered: false,
Span: Span{
Start: time.Date(2007, time.May, 2, 22, 0, 1, 0, time.UTC),
Expand Down
9 changes: 0 additions & 9 deletions meta/streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const (
streamSource
streamSamplingRate
streamAxial
streamReversed
streamTriggered
streamStart
streamEnd
Expand All @@ -28,7 +27,6 @@ var streamHeaders Header = map[string]int{
"Source": streamSource,
"Sampling Rate": streamSamplingRate,
"Axial": streamAxial,
"Reversed": streamReversed,
"Triggered": streamTriggered,
"Start Date": streamStart,
"End Date": streamEnd,
Expand Down Expand Up @@ -60,7 +58,6 @@ type Stream struct {
Source string `json:"source"`
SamplingRate float64 `json:"sampling-rate"`
Axial string `json:"axial,omitempty"`
Reversed bool `json:"reversed,omitempty"`
Triggered bool `json:"triggered,omitempty"`

samplingRate string
Expand Down Expand Up @@ -112,7 +109,6 @@ func (s StreamList) encode() [][]string {
strings.TrimSpace(row.Source),
strings.TrimSpace(row.samplingRate),
strings.TrimSpace(row.Axial),
strings.TrimSpace(strconv.FormatBool(row.Reversed)),
strings.TrimSpace(strconv.FormatBool(row.Triggered)),
row.Start.Format(DateTimeFormat),
row.End.Format(DateTimeFormat),
Expand Down Expand Up @@ -150,10 +146,6 @@ func (s *StreamList) decode(data [][]string) error {
rate = -1.0 / rate
}

reversed, err := strconv.ParseBool(d[streamReversed])
if err != nil {
return err
}
triggered, err := strconv.ParseBool(d[streamTriggered])
if err != nil {
return err
Expand All @@ -167,7 +159,6 @@ func (s *StreamList) decode(data [][]string) error {
SamplingRate: rate,
samplingRate: strings.TrimSpace(d[streamSamplingRate]),
Axial: strings.TrimSpace(d[streamAxial]),
Reversed: reversed,
Triggered: triggered,
Span: Span{
Start: start,
Expand Down
6 changes: 3 additions & 3 deletions meta/testdata/streams.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Station,Location,Band,Source,Sampling Rate,Axial,Reversed,Triggered,Start Date,End Date
AKSS,20,B,N,50,true,false,true,2011-08-25T00:25:00Z,9999-01-01T00:00:00Z
APZ,20,H,N,200,false,false,false,2007-05-02T22:00:01Z,9999-01-01T00:00:00Z
Station,Location,Band,Source,Sampling Rate,Axial,Triggered,Start Date,End Date
AKSS,20,B,N,50,true,true,2011-08-25T00:25:00Z,9999-01-01T00:00:00Z
APZ,20,H,N,200,false,false,2007-05-02T22:00:01Z,9999-01-01T00:00:00Z
Loading