Description |
Description | Java Source Download | Website Download | Copyright & Disclaimer | |
This web app allows the user to reorder the seismic directory structure from day/stationID/alldata to stationID/day/stationID/alldata. The program will replace the original directory structure with an array of seismic sensors ID directories, i.e.
Directory Structure Before | Directory Structure After |
/2016363 /92C7 /92F8 /925A /942E ... /2016364 /92C7 /92F8 /925A /942E ... ... |
/92C7 /2016363 /92C7 /2016364 /92C7 /92F8 /2016363 /92F8 /2016364 /92F8 /925A /2016363 /925A /2016364 /925A /942E /2016363 /942E /2016364 /942E ... |
The program assumes that there is a top level directory with a weeks worth of seismic data. The program retrieves the top level directory path, e.g. /TOP = c:\user\name\Documents with a directory containing the seismic data, e.g. /SEISMICData. The program will eventually replace /SEISMICData with a list of SensorID directories, i.e. Directory Structure After table column above.
The seismic data structure will have at least 1 weeks of dates directories under the seismic
data directory, e.g.
/2016362
/2016363
/2016364
...
under each or the date
directories will be a number of seismic ID directories, e.g.
/92C7
/92F8
/925A
/942E
...
The program will loop through all the dates one at a time. It will hold on to the Top directory path, e.g. /TOP = c:\user\name\Documents, and the seismic date directory name, e.g. /2016362. The program then the program retrieves the list of seismic ID directories.
The program then retrieves the each seismic ID directory path, e.g. /TOP/SEISMICData/2016362/92C7 and the seismic ID directory name, e.g. 92C7. The program then starts building the new directory structure.
First the program build the source Directory, directory path for sensor data at specific date, e.g. /TOP/SEISMICData/2016362/92C7.
Next the program will build a new directory structure for each of the sensors within the data.
Author: John R. Victorine jvictor@kgs.ku.edu
The URL for this page is http://www.kgs.ku.edu/PRS/Ozark/JAVA_SRC/REORDER_SEISMIC/index.html |