This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from dnorgaard-usgs/master
Additional changes for 2.7.0
- Loading branch information
Showing
12 changed files
with
68 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,35 @@ | ||
package gov.usgs.volcanoes.swarm; | ||
|
||
/** | ||
* SCNL data class. | ||
* | ||
* $Log: not supported by cvs2svn $ | ||
* @author Dan Cervelli | ||
*/ | ||
public class SCNL | ||
{ | ||
public String station; | ||
public String channel; | ||
public String network; | ||
public String location; | ||
|
||
public SCNL(String s) | ||
{ | ||
String[] ss = s.split(" "); | ||
station = ss[0]; | ||
if (ss.length >= 3) | ||
{ | ||
channel = ss[1]; | ||
network = ss[2]; | ||
} | ||
if (ss.length >= 4) | ||
{ | ||
location = ss[3]; | ||
} | ||
} | ||
|
||
public String toString() | ||
{ | ||
return station + " " + channel + " " + network + (location != null ? (" " + location) : ""); | ||
} | ||
public class SCNL { | ||
public String station; | ||
public String channel; | ||
public String network; | ||
public String location; | ||
|
||
/** | ||
* Constructor. | ||
* @param s channel string | ||
*/ | ||
public SCNL(String s) { | ||
String[] ss = s.split(" "); | ||
switch (ss.length) { | ||
case 4: | ||
location = ss[3]; | ||
case 3: | ||
network = ss[2]; | ||
case 2: | ||
channel = ss[1]; | ||
default: | ||
station = ss[0]; | ||
} | ||
} | ||
|
||
public String toString() { | ||
return station + " " + channel + " " + network + (location != null ? (" " + location) : ""); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters