avni.models.profiles module#

This script/module contains routines that are used to analyze/visualize the data sets in the standard AVNI format.

class avni.models.profiles.Profiles(file=None, **kwargs)[source]#

Bases: object

A class for the profiles from a laterally heteroegeneous model

property name#
property interpolant#
read(file, **kwargs)[source]#
read_setup(file='setup.cfg')[source]#

Try reading a folder containing ascii files for every location on the surface

setup_file: setup file containing metadata for the model

writehdf5(outfile=None, overwrite=False)[source]#

writes profile class to an hdf5 container

readhdf5(hf, interpolant=None, only_metadata=False)[source]#

Reads a standard 3D model file from a hdf5 file

interpolant: group to load

only_metadata: do not return the pandas dataframe if True

find_index(latitude, longitude)[source]#

finds the nearest point in self.data[‘index’]

evaluate_at_location(latitude, longitude, depth_in_km, parameter, **kwargs)[source]#

evaluate the profiles at a particular point within the domain

get_profile(index, parameters)[source]#

Use evaluate_at_location at depths defined in reference1D