Created on Mon Apr 02 11:54:33 2012
@author: a1185872
Plots periods for all stations in edipath and the plot is interactive, just clikc on the period you want to select and it will appear in the console, it will also be saved to lp.plst. To sort this list type lp.plst.sort()
The x’s mark a conformation that the station contains that period. So when looking for the best periods to invert for look for a dense line of x’s
periodlst = list of periods for each station errorlst = error in the impedance determinant for each station at
each period.
get x (e-w) and y (n-s) position of station and put in middle of cell
plot responses from the data file and if there is a response file
datafn = fullpath to data file respfn = full path to respsonse file, if not input, just the data is
plotted. Can be a list of response files from the same inversion
plot phase tensor maps for data and or response, each figure is of a different period. If response is input a third column is added which is the residual phase tensor showing where the model is not fitting the data well. The data is plotted in km in units of ohm-m.
datafn = full path to data file respfn = full path to response file, if none just plots data sitesfn = full path to sites file periodlst = indicies of periods you want to plot esize = size of ellipses as:
0 = phase tensor ellipse 1 = phase tensor residual 2 = resistivity tensor ellipse 3 = resistivity tensor residual
ecolor = ‘phimin’ for coloring with phimin or ‘beta’ for beta coloring colormm = list of min and max coloring for plot, list as follows:
0 = phase tensor min and max for ecolor in degrees 1 = phase tensor residual min and max [0,1] 2 = resistivity tensor coloring as resistivity on log scale 3 = resistivity tensor residual coloring as resistivity on
linear scale
xpad = padding of map from stations at extremities (km) units = ‘mv’ to convert to Ohm-m dpi = dots per inch of figure
read in data file
period = list of periods used for the inversion zarr = array of impedance values
(number of staitons x number of periods x 2 x 2)
zerr = array of errors in impedance component nsarr = station locations relative distance from center of grid in N-S ewarr = station locations relative distance from center of grid in E-W sitelst = list of sites used in data
read sites_ file output from winglink
sitelst = list of station names
read .out file from winglink
Makes an init3d file for WSINV3D
makes a startup file for WSINV3D t. Most of these parameters are not input
writes a data file for WSINV3D from winglink outputs
sitesfn = sites filename (full path) outfn = winglink .out file periodlst = periods to extract from edifiles can get them from
using the function getPeriods.
edipath = path to edifiles savepath = directory or full path to save data file to, default path
is dirname sitesfn. saves as: savepath/WSDataFile.dat
zerr = percent error to give to impedance tensor components ptol = percent tolerance to locate frequencies in case edi files don’t
have the same frequencies. Need to add interpolation
ncol = number of columns in outfn