.. _Compliance: Compliance ======================= Data class for seafloor compliance, plus useful static functions Constructor --------------------- - :class:`Compliance ` - :meth:`Compliance.from_response_functions `: Create a Compliance object from an :class:`ResponseFunctions ` object - :meth:`Compliance.from_earth_model_1D `: Calculate compliance from an :class:`compliance.EarthModel1D ` object - :meth:`Compliance.from_file `: read compliance from a file Properties --------------------- - ``freqs`` (:class:`numpy.ndarray`): Frequencies (Hz) - ``values`` (:class:`numpy.ndarray`): Normalized compliance values (1/Pa) - ``uncertainties`` (:class:`numpy.ndarray`): Normalized compliance uncertainties (1/Pa) - ``water_depth`` (float): water depth in meters - ``noise_channel`` (str or None): If a str, the compliance comes from data and this is the channel on which noise was assumed to dominate. If None, the compliance comes from a calculation. - ``gravity_corrected`` (bool): Has data-estimated compliance been corrected for gravitational attraction terms? Dependent properties ^^^^^^^^^^^^^^^^^^^^^^ Methods --------------------- - :meth:`correct_gravity_terms `: Correct gravity terms - :meth:`write `: Write compliance to a text file - :meth:`write `: Write compliance as counts, to a text file - :meth:`plot `: Plot the compliance Static Methods --------------------- - :meth:`plot_compliance_stack `: Plot stacked PSDs, coherence and frequency response function used for compliance - :meth:`calc_norm_compliance `: Return normaliezed compliance of a :class:`tiskitpy.compliance.EarthModel1D` object - :meth:`gravd `: Return linear ocean surface gravity wave wavenumbers - :meth:`raydep `: Return surface motion and stress of P-SV waves for a layered 1D earth model and wave slownesses - :meth:`calc_compliance `: Return compliance (m/Pa) of a :class:`tiskitpy.compliance.EarthModel1D` object Example --------------------- :ref:`tiskitpy.Compliance_example`