Skip to main content

A Temperature-Dependent Multi-Relaxation Spectroscopic Dielectric Model (TD-MRSDM).

Project description

TD-MRSDM

Python Version

This Python package, based on the paper titled Spectroscopic Multirelaxation Dielectric Model of Thawed and Frozen Arctic Soils Considering the Dependence on Temperature and Organic Matter Content, provides an implementation of the temperature-dependent multi-relaxation spectroscopic dielectric model described in the paper. The model is designed for characterizing the dielectric properties of organic soil at frequencies ranging from 0.05 to 15 GHz under various temperature conditions.

Installation

To use TD-MRSDM, you need to install it first. You can install it using pip:

pip install tdmrsdm

Usage

Here's a simple example of how to use the smwlst package to compute LST:

import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from tdmrsdm import TDMRSDM


# Define temperature and MgCl2 concentration ranges
ssts = np.arange(-30, 26, 1)  # From -30 to 25 degrees Celsius
mvs = np.arange(0, 0.86, 0.01) # From 0 to 0.85

# Create empty lists to store results
epsr_values = []
epsi_values = []
moisture_values = []


# Loop through soil moisture content
for mv in mvs:
    for sst in ssts:
        mrsdm = TDMRSDM(freq_GHz=1.41, sst=sst, som=25, sbd=0.95, ssm=mv)
        eps = mrsdm.run()
        epsr, epsi = eps.real, eps.imag
        epsr_values.append(epsr[0]) # Access the first element because epsr is an array
        epsi_values.append(epsi[0]) # Access the first element because epsi is an array
        moisture_values.append(mv)


# Create the plot using seaborn
plt.figure(figsize=(10, 6))
sns.lineplot(x=moisture_values, y=epsr_values, label='Real Soil DC')
sns.lineplot(x=moisture_values, y=epsi_values, label='Imaginary Soil DC')

plt.xlabel('Soil Moisture (g/g)')
plt.ylabel('Soil DC')
plt.title('Real and Imaginary Soil DC as a Function of Soil Moisture')
plt.legend()
plt.grid(True)
plt.show()

[!WARNING] Copyright Notice: This code is part of a PhD research program and is not licensed for public use or distribution yet! All rights are reserved by the author [Morteza Khazaei]. Unauthorized use, reproduction, or distribution of this code is prohibited without prior written permission from the author. For inquiries or collaboration, please contact morteza.khazaei@usherbrooke.ca.

Authors

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tdmrsdm-2025.7.3.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tdmrsdm-2025.7.3-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file tdmrsdm-2025.7.3.tar.gz.

File metadata

  • Download URL: tdmrsdm-2025.7.3.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for tdmrsdm-2025.7.3.tar.gz
Algorithm Hash digest
SHA256 f7216c40b0fab5b89bb8fe8821a26f7833558b00ab641314b252aa7406c2c30d
MD5 5cd2f3549f95b1bf120be32fb47d63c5
BLAKE2b-256 86b7818c43e3b3a9005fbf15d163fdcd2e57b1935e8e7affa1016aa8d0fe164a

See more details on using hashes here.

File details

Details for the file tdmrsdm-2025.7.3-py3-none-any.whl.

File metadata

  • Download URL: tdmrsdm-2025.7.3-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for tdmrsdm-2025.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e903cc682e6da99eafee338def6293b8b7401e9201fb34ccaff712d799d02520
MD5 4eb2bcf80daecaabe46661b58379d6f5
BLAKE2b-256 9a9bae8bf73cdc151dec2b2d3f9e9ba7751445839113c3687c0d2d3b31a35c4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page