Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
a8bf78a
set rotation matrix to be formulated as counterclockwise positive
kujaku11 May 4, 2020
054eec1
set rotation matrix to be formulated as counterclockwise positive
kujaku11 May 4, 2020
e4d7265
fixing plotting phase tensor ellipses in correct coordinate system
kujaku11 May 4, 2020
abbf1e0
set rotation angle to be opposite of input in pt.rotate to be consist…
kujaku11 May 4, 2020
d32d084
set rotation angle to be opposite of input in pt.rotate to be consist…
kujaku11 May 4, 2020
6f3bcff
making rotation matrix postitive clockwise and fixing plotting schemes
kujaku11 May 11, 2020
5dd664f
fixed plot_pt, plot_pt_pseudosection
kujaku11 May 11, 2020
4ee148c
fixed plot_pt, plot_pt_maps
kujaku11 May 11, 2020
e303ec3
fixed plot_pt, plot_pt_maps
kujaku11 May 12, 2020
73429f2
added documentation to utils.calculator
kujaku11 May 12, 2020
dbed2d0
fixed plotnresponses
kujaku11 May 12, 2020
0287d70
fixed z_err.setter issue, set z_err as a property
kujaku11 May 21, 2020
17238b7
refactored plot_pt_maps
kujaku11 May 26, 2020
b7388cb
added to plot_strike_rose_plot
kujaku11 May 26, 2020
ec89752
set plot_orthogonal = False as default in plot_strike
kujaku11 May 26, 2020
46b3adb
added to plot_strike_rose_plot
kujaku11 May 26, 2020
6c26507
Merge branch 'develop' into rotation_test
alkirkby May 26, 2020
1ba3aab
fixed error in plot_tensor_pseudosection line 404, needed to be for k…
kujaku11 May 28, 2020
a66237d
Merge branch 'rotation_test' of https://github.com/MTgeophysics/mtpy …
kujaku11 May 28, 2020
e76b74d
fixed error in plot_tensor_pseudosection line 404, needed to be for k…
kujaku11 May 28, 2020
d563ff4
merged with develop
kujaku11 Jun 1, 2020
22be963
changed test_z.test_rotate to positive clockwise rotation matrix
kujaku11 Jun 1, 2020
0a55535
fixed test_geometry.test_eccentricity, had the wrong values for control
kujaku11 Jun 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions examples/scripts/plot_phase_tensor_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
import mtpy.imaging.phase_tensor_maps as pptmaps

# directory containing edis

#edipath = r'C:\mtpywin\mtpy\examples\data\edi2'
edipath = '/mtpy/examples/data/ET_edi'

# whether or not to save the figure to file
save = True
save = False

# full path to file to save to
savepath = '/tmp'
Expand All @@ -28,8 +29,9 @@
plot_freq = 1e-2

# value to color ellipses by, options are phimin,phimax,skew
colorby = 'skew'
colorby = 'strike'
ellipse_range = [-9, 9]
rotation_angle = 0

image_fn = 'phase_tensor_map%1is_' % (int(1. / plot_freq)) + colorby + '.png'

Expand Down Expand Up @@ -61,7 +63,7 @@
background_image='/mtpy/examples/data/gravity/ET_gravity.tif'
# bimg_band=1, # Optional, set to None by default
#bimg_cmap='viridis' # Optional, set to 'viridis' by default
)
rotation_angle=rotation_angle)


if save:
Expand Down
4 changes: 2 additions & 2 deletions examples/scripts/plot_phase_tensor_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
plot_tipper = 'yri', # plot tipper ('y') + 'ri' means real+imag
font_size=5,
lw=0.5,
rotation_angle=20,
ellipse_dict = {'ellipse_colorby':'skew_seg',# option to colour by phimin, phimax, skew, skew_seg
'ellipse_range':[-12, 12, 3]} # set color limits - default 0,90 for phimin or max,
# [-12,12] for skew. If plotting skew_seg need to provide
Expand All @@ -37,8 +38,7 @@
# update ellipse size (tweak for your dataset)
plotObj.ellipse_size = 2.5


plotObj.plot()

#plotObj.save_figure(save_fn = op.join(savepath,'PhaseTensorSection.png'),
# fig_dpi=400) # change to your preferred file resolution
# fig_dpi=400) # change to your preferred file resolution
60 changes: 48 additions & 12 deletions examples/scripts/plot_strike_roseplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
import os
os.chdir(r'C:\mtpywin\mtpy') # change to path where mtpy is installed


from mtpy.imaging.plotstrike import PlotStrike


# directory containing edis
edipath = r'C:\mtpywin\mtpy\examples\data\edi_files_2'
edipath = r'C:\mtpywin\mtpy\data\edifiles2'


# full path to file to save to
Expand All @@ -27,13 +26,50 @@
elst = [op.join(edipath,f) for f in os.listdir(edipath) if (f.endswith('.edi'))]# and f.startswith('GL')


strikeplot = PlotStrike(fn_list=elst,
fold=False,
show_ptphimin=False,
plot_type=2 # 1 means divide into separate plots for different decades
# 2 means combine all data into one rose plot
)
#strikeplot.save_plot(savepath,
# file_format='png',
# fig_dpi=400
# )
### this will plot the estimated strike duplicated across quadrants
# Plot type 2 will plot all estimates of strike into one ploe
strike_plot = PlotStrike(fn_list=elst,
fold=False,
plot_type=2)

# If you want to plot the orthogonal estimation
strike_plot.plot_orthogonal = True
strike_plot.fig_num = 2
strike_plot.plot()

# if you want to plot Tipper strike estimates as well
strike_plot.plot_orthogonal = False
strike_plot.plot_tipper = True
strike_plot.fig_num = 3
strike_plot.plot()

# if you want to rotate the data
# note this will rotate the data N30W
strike_plot.rotation_angle = -30
strike_plot.fig_num = 4
strike_plot.plot()

# to rotate back
strike_plot.rotation_angle = 30

# if you want to plot per decade plots
strike_plot.plot_type = 1
strike_plot.fig_num = 5
strike_plot.text_pad = 1.4
strike_plot.plot()

# if you want to only look at a few period ranges
# not the range is given in log10 of the period
strike_plot.plot_range = [-2, 0]
strike_plot.fig_num = 6
strike_plot.plot()

# if you want a vertical orientation instead of horizontal
strike_plot.plot_orientation = 'v'
strike_plot.plot_range = 'data'
strike_plot.fig_num = 7
strike_plot.plot()




Loading