Created
March 5, 2014 16:32
-
-
Save enjoylife/9370729 to your computer and use it in GitHub Desktop.
cosmos
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
//mh.resetElement("Event(1).Hypocenter(1).DateTimeTrigger_txt", getTriggerTimeFileName()); | |
/* | |
public String getTriggerTimeFileName(){ | |
// Get tail integer. Normally 20 or 21 | |
String tail = thead.getLine(1); | |
int index = tail.lastIndexOf("_"); | |
tail = tail.substring(index+1); | |
int numlen = tail.indexOf(" "); | |
tail = tail.substring(0,numlen); | |
String str = thead.getLine(2); | |
String[] bits = str.split("\\s+"); | |
str = bits[bits.length-1]; | |
return str +"_"+tail; | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment