<jupyter_start><jupyter_text>Plot of data and elevation This notebook plots the observed data and the elevation of the observations. Also it plots the projection of the initial appoximate.<jupyter_code>import cPickle as pickle
import pandas as pd

# importing my functions
import sys
sys.path.insert(0, '../../code')

import mag_polyprism_functions as mfun
# importing the data and elevation
data = pd.read_csv('anitapolis_decimated_tfa_residual_cut.txt', skipinitialspace=True, delim_whitespace=True)

data['GPSALT'] = - data['GPSALT'] + 800

mask = (data['GPSALT'].get_values()<0.)
data = data[mask]
# importing the pickle file of results
result_path = 'tfa_inversion/upward_multiple_int_min11_int_max20_z0_min0_z0_max180_r700_dz900_V20_L6Apr-29-2020/'

with open(result_path+'inversion.pickle') as w:
        inversion = pickle.load(w)
# directory to save the figure and filename
filename = '../../manuscript/figures/field_data_alt_topo.png'
mfun.plot_obs_alt(data['X'], data['Y'], data['mag_res1'],
                  data['GPSALT'], data['GPSALT']+data['ALTURA'],
             inversion['results'][0][2][0][0], filename)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12305025996533796, 'fraction_numerical': 0.030329289428076257, 'mean_word_length': 5.48876404494382, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '408167', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 426, 'n_tokens_neox': 390, 'n_words': 90, 'path': 'code/anitapolis/plot_data_elevation.ipynb', 'repo_name': 'pinga-lab/magnetic-radial-inversion', 'size': '1154'}