Skip to content

Commit ecff321

Browse files
committed
Create data.py
1 parent 8044be3 commit ecff321

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

mtpy/modeling/simpeg/data.py

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
Created on Fri Aug 9 12:11:57 2024
4+
5+
@author: jpeacock
6+
"""
7+
8+
# =============================================================================
9+
# Imports
10+
# =============================================================================
11+
12+
13+
# =============================================================================
14+
class SimpegData:
15+
""" """
16+
17+
def __init__(self, dataframe, **kwargs):
18+
self.dataframe = dataframe
19+
20+
# nez+ as keys then enz- as values
21+
self.component_map = {
22+
"xx": "yy",
23+
"xy": "yx",
24+
"yx": "xy",
25+
"yy": "xx",
26+
"zx": "zy",
27+
"zy": "zx",
28+
}
29+
30+
def get_station_locations(self, utm=True):
31+
"""
32+
get station locations in utm geographic coordinates if True, otherwise
33+
will be in model coordinates.
34+
35+
:param geographic: DESCRIPTION, defaults to True
36+
:type geographic: TYPE, optional
37+
:return: DESCRIPTION
38+
:rtype: TYPE
39+
40+
"""
41+
station_df = self.dataframe.groupby(station)
42+
if utm:
43+
east = self.dataframe.east.
44+
north = self.dataframe.north
45+
46+
47+
def from_dataframe():
48+
"""
49+
50+
:return: DESCRIPTION
51+
:rtype: TYPE
52+
53+
"""

0 commit comments

Comments
 (0)