module snowpyt.pit_class
File defining a python class for snowpit data
November 2016, Simon Filhol
Global Variables
snowflake_symbol_dict
path2snowflake
class layer
method __init__
__init__()
class temperature_profile
method __init__
__init__()
class density_profile
method __init__
__init__()
class sample_profile
method __init__
__init__()
class metadata
method __init__
__init__()
class Snowpit
method __init__
__init__()
method calc_SWE
calc_SWE(method='avg', ice_layer_density=680)
Functino to compute SWE using three methods: avg SWE for all pit ‘avg’, SWE based on density samples ‘samples’, and SWE based
Args:
method
(str): ‘avg’, ‘samples’ or ‘layers’. no default - ‘avg’ is simply the - ‘samples’ is density by density samples. Top and bottom layer from all top to all bottom to half between density sample 1;2 and N-1;N. All others, make layer horizons between samples, use density sample in middle of these layers as density - ‘layers’ is density by strat-layer, find matching density sample.Ice layer density a given density.if more than one match, use average. if no matches, search for neareast. (or search for nearest two, upper and lower, and make average)ice_layer_density
(int): assign a constant density to ice layers (An ice layer is detected when hand hardness index = knife = 6)
Returns:
float
: SWE in [cm]
method import_caamlv6
import_caamlv6(print2term=True)
method import_sample_csv
import_sample_csv(bar_plot=False)
Function to import sample profiles.
Args:
bar_plot
(bool): plot sample profile as bar instead of line-scatter. Default is False
method plot
plot(
save=False,
metadata=False,
invert_depth=False,
figsize=(8, 4),
dpi=150,
plot_order=['temperature', 'density', 'crystal size', 'stratigraphy', 'hardness', 'sample names', 'dD', 'd18O', 'd-ex']
)
Function to plot pit data
Args:
save
(bool): save plotmetadata
(bool): add metadata to plotinvert_depth
(bool): invert depth/height axis. Default is heightfigsize
(tuple): size of plot in inch. default matplotlib settingdpi
(int): plot resolution, pixel per inchesplot_order
(list): list of plots to add to the figure, the order defines the order of the plots
method print_layers
print_layers()
method print_metadata
print_metadata()
This file was automatically generated via lazydocs.