Skip to main content

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

Reason this release was yanked:

error

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.1.dev1.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.1.dev1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file tdmrsdm-2025.7.1.dev1.tar.gz.

File metadata

  • Download URL: tdmrsdm-2025.7.1.dev1.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.1.dev1.tar.gz
Algorithm Hash digest
SHA256 24f374c7519bc3b135575c1ad73597047e6d8d8efa9a2394ce532ccf99c81dea
MD5 157d3b8c9874bd516291624dedcd93ea
BLAKE2b-256 c92388df37143826d7da78107479799266b44059035756e786d7331363699e10

See more details on using hashes here.

File details

Details for the file tdmrsdm-2025.7.1.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for tdmrsdm-2025.7.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 a74cc6ae088cdd7c7b8243ae10a15d65f3193c90bcd40ce3a4377215a125f8bd
MD5 627aebf6125022ab59ff66697cfdf826
BLAKE2b-256 97b4c8358f4e81944d88406cf6df20399cfa3a481761e678d5985a51042dfa68

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