Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shapefiles #28

Merged
merged 29 commits into from
Apr 24, 2024
Merged

Shapefiles #28

merged 29 commits into from
Apr 24, 2024

Conversation

kujaku11
Copy link
Contributor

Add ability to create phase tensor and induction vector shapefiles.

Updating older code to work with the newer workflow.

Now can make shapefiles with:

from pathlib import Path
from mtpy import MTData
from mtpy_data import FWD_NE_CONDUCTOR_GRID_LIST
md = MTData()
md.add_statoin(FWD_NE_CONDUCTOR_GRID_LIST)
new_periods = np.array([.01, .1, 1, 10, 100])
# output in WGS84 to your current working directory
shp_file_dict = md.to_shp(Path().cwd(), output_crs=4326)
  • Made updates to MTDataFrame to include tipper and phase tensor information, and export just phase tensor or tipper dataframes.
  • Made plotting pt pseudo sections more efficient.
  • Added mtpy_data to test YML

@kujaku11 kujaku11 linked an issue Apr 24, 2024 that may be closed by this pull request
@kujaku11 kujaku11 linked an issue Apr 24, 2024 that may be closed by this pull request
Copy link

codecov bot commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 45.79439% with 232 lines in your changes are missing coverage. Please review.

Project coverage is 27.68%. Comparing base (fcddd8d) to head (81519d6).

Files Patch % Lines
mtpy/gis/shapefile_creator.py 23.94% 108 Missing ⚠️
mtpy/imaging/plot_phase_tensor_pseudosection.py 0.00% 32 Missing ⚠️
tests/gis/test_shapefile_creator.py 50.00% 24 Missing ⚠️
mtpy/core/mt_dataframe.py 76.04% 23 Missing ⚠️
mtpy/core/mt_data.py 21.42% 22 Missing ⚠️
mtpy/modeling/modem/data.py 30.00% 21 Missing ⚠️
mtpy/core/transfer_function/pt.py 85.71% 1 Missing ⚠️
tests/modeling/ModEM/test_data.py 93.33% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           updates      #28      +/-   ##
===========================================
+ Coverage    27.09%   27.68%   +0.59%     
===========================================
  Files          128      130       +2     
  Lines        21819    21755      -64     
===========================================
+ Hits          5911     6023     +112     
+ Misses       15908    15732     -176     
Flag Coverage Δ
tests 27.68% <45.79%> (+0.59%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kujaku11 kujaku11 merged commit 16fb873 into updates Apr 24, 2024
10 checks passed
@kujaku11 kujaku11 deleted the shapefiles branch April 24, 2024 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exporting shapefiles of PT & IV plot pseudo-section of phasetensor with tipper
1 participant