Series coarse-graining

Open
#253 1 comment 0 reactions 1 assignee View on GitHub

@CommonClimate is already working on this.

Since Aug 24, 2022.

Assessment

This issue has not been assessed yet.

Description

enhancement

Is your feature request related to a problem? Please describe.
Huybers (2022), analyzing the spectral content of a portion of the GISP2 d18O record, makes a good case that interpolation should be done this way:

The d18O samples have an average spacing of $\Delta$ t = 124 yr between 20 and 50 ka, with the time between neighboring pairs of data points ranging between 77 and 306 yr. To place the record on an evenly sampled age scale, it is first linearly interpolated to 12.4-yr resolution, then smoothed to remove variability at periods shorter than 124 years by convolving with an 11-point Hamming window, and, finally, decimated to 124-yr resolution to maintain the same average sampling interval. Interpolation to high-resolution followed by smoothing and decimation helps reduce aliasing and makes results less sensitive to the exact specification of the interpolation grid.

Currently we offer interpolation but no subsequent smoothing and decimation, though we have all the tools to do so.

Describe the solution you'd like

introduce a new Series function called even_out() that interpolates at 1/10 the average Delta t, then smoothes out all variability shorter than Delta t, and subsequently resamples every 10th point.

Describe alternatives you've considered
leave things as is

Dominant language
Python
Stars
104
Forks
36
Avg merge
1d 7h
Merged PRs (30d)
5

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LinkedEarth/Pyleoclim_util

All issues in LinkedEarth/Pyleoclim_util

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.