Skip to content

Instantly share code, notes, and snippets.

@enjoylife
Created March 5, 2014 16:32
Show Gist options
  • Save enjoylife/9370729 to your computer and use it in GitHub Desktop.
Save enjoylife/9370729 to your computer and use it in GitHub Desktop.
cosmos
//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