Test combination/ extension of existing history files with new events
In [1]:
import sys, os
import matplotlib.pyplot as plt
# adjust some settings for matplotlib
from matplotlib import rcParams
# print rcParams
rcParams['font.size'] = 15
# determine path of repository to set paths corretly below
os.chdir(r'/Users/flow/git/pynoddy/docs/notebooks/')
repo_path = os.path.realpath('../..')
import pynoddy
In [2]:
%pylab inline
In [ ]:
# Change to sandbox directory to store results
os.chdir(os.path.join(repo_path, 'sandbox'))
# Path to exmaple directory in this repository
example_directory = os.path.join(repo_path,'examples')
In [8]:
# Compute noddy model for history file
reload(pynoddy.history)
history_file = 'simple_two_faults.his'
history = os.path.join(example_directory, history_file)
output_name = 'noddy_out'
H1 = pynoddy.history.NoddyHistory(history)
In [9]:
pynoddy.compute_model(history, output_name)
NO1 = pynoddy.output.NoddyOutput(output_name)
In [10]:
NO1.plot_section('y')
In [6]:
H1.all_events_begin
Out[6]:
In [7]:
H1.all_events_end
Out[7]:
In [11]:
H1.n_events
Out[11]:
In [12]:
H1.history_lines[:2]
Out[12]:
In [57]:
# Compute noddy model for history file
reload(pynoddy.history)
history_file = 'simple_two_faults.his'
history = os.path.join(example_directory, history_file)
output_name = 'noddy_out'
H1 = pynoddy.history.NoddyHistory(history)
In [58]:
H1.info()
In [40]:
H1.get_cube_size()
In [59]:
reload(pynoddy.history)
new_his = pynoddy.history.NoddyHistory()
In [60]:
new_his.info()
In [61]:
new_his.history_lines
Out[61]:
In [64]:
a = [1,2,3]
In [65]:
a + a
Out[65]:
In [ ]: