pyleoclim
Skill67 starsChanged 10 months agoMITView on GitHub
Analyse paleoclimate proxy time series with Pyleoclim, including irregular sampling, spectra and comparisons across uncertain chronologies. Use for proxy Series and EnsembleSeries analysis, spectral peaks and age-model sensitivity; use xarray for gridded climate fields.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- bouleSkill
- brugesSkill
- devitoSkill
- disbaSkill
- discretizeSkill
- dlisioSkill
- ensaioSkill
- flopySkill
- gemgisSkill
- gempySkill
- geolimeSkill
- geostatspySkill
- gnnwrSkill
- gprpySkill
- harmonicaSkill
- landlabSkill
- lasioSkill
- loopstructuralSkill
- mplstereonetSkill
- mtpySkill
- obspySkill
- pastasSkill
- petropySkill
- poochSkill
- pygimliSkill
- pygmtSkill
- pylopsSkill
- pyroliteSkill
- pyvistaSkill
- rockhoundSkill
- scikit-gstatSkill
- segyioSkill
- segysakSkill
- simpegSkill
- striplogSkill
- using-geoscience-skillsSkill
- verdeSkill
- wellySkill
- xarraySkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Do not interpolate across hiatuses silently.
- Distinctive: line 28
Use Lomb–Scargle for an explicitly retained irregular chronology.
- Distinctive: line 73
Keep original and processed values, excluded intervals, processing settings, seeds and package versions.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Pyleoclim
Analyse proxy variability while retaining the chronology and sampling assumptions. Version 1.3.0 requires Python 3.12 or newer; use an isolated environment.
Inputs and method selection
Establish the proxy units, archive type, time direction and origin: years CE, years before 1950 and ka BP are different coordinate systems. Record missing values, duplicate times and age uncertainties before sorting or removing rows. Do not interpolate across hiatuses silently. A proxy is not automatically a calibrated temperature or precipitation observation.
Use Lomb–Scargle for an explicitly retained irregular chronology; use methods requiring regular sampling only after justified resampling and sensitivity checks. Compare spectral peaks with an appropriate autocorrelated null model, sampling window and multiple-testing policy. Power alone is not a significance level.
Irregular synthetic series
This deterministic 20-year sinusoid is an API and frequency-recovery check, not a significance test on field data. Time is elapsed years, never a BP chronology.
# example: irregular-spectrum
import numpy as np
import pyleoclim as pyleo
time_year = np.arange(200, dtype=float) + 0.15 * np.sin(np.arange(200))
proxy = np.sin(2 * np.pi * time_year / 20)
series = pyleo.Series(time=time_year, value=proxy, time_name="Elapsed time",
time_unit="year", value_name="Synthetic proxy",
value_unit="dimensionless", verbose=False)
frequency_per_year = np.linspace(0.01, 0.2, 1000)
spectrum = series.spectral(method="lomb_scargle", freq=frequency_per_year,
settings={"n50": 1, "window": "boxcar"})
valid_spectrum = np.isfinite(spectrum.amplitude)
if not valid_spectrum.any():
raise ValueError("No finite spectral estimates")
peak_period_year = 1 / spectrum.frequency[valid_spectrum][
np.argmax(spectrum.amplitude[valid_spectrum])]The benchmark uses a single full-length, untapered segment. Pyleoclim's default
overlapping tapered segments smooth the spectrum; record that choice explicitly
when comparing peak locations or resolutions across methods.
The method can mark unstable edge estimates as NaN. Retain that mask and report
the usable frequency range; an unchecked argmax can select a NaN edge instead
of the signal peak.
Chronology and uncertainty
For age ensembles, obtain defensible age realizations from the age model; do not generate independent random age offsets that violate stratigraphic order. Analyse each realization with the same documented settings, summarize frequency/phase variation and separate age, measurement and model uncertainty. Correlation after choosing a favorable age realization is subject to selection bias.
Keep original and processed values, excluded intervals, processing settings, seeds and package versions. Report the spectral window and uncertainty assumptions alongside figures. Consult the official documentation for methods available in the installed version.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

