NCAS-CMS / NCAS-CMS/cf-python

Least squares polynomial fit method

Open
#521 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
150
Forks
23
Avg merge
1d 11h
Merged PRs (30d)
2

Description

Feature request for a least squares polynomial fit method. An example use case would be for calculating and plotting the temperature trends over a period of time.

On similar lines of:
https://docs.xarray.dev/en/stable/generated/xarray.Dataset.polyfit.html
https://numpy.org/doc/stable/reference/generated/numpy.polyfit.html

Contributor guide

Open the 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.

Research direction

Start by comparing the requested behavior with xarray.Dataset.polyfit and numpy.polyfit, which are the referenced entry points. Determine the fitting inputs, outputs, metadata expectations, and plotting use case before proposing the method; done means the project has an agreed, usable polynomial-fit interface for temperature trends.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.