Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement]: Time to decimal time functionality #701

Open
pochedls opened this issue Oct 2, 2024 · 1 comment
Open

[Enhancement]: Time to decimal time functionality #701

pochedls opened this issue Oct 2, 2024 · 1 comment
Labels
type: enhancement New enhancement request

Comments

@pochedls
Copy link
Collaborator

pochedls commented Oct 2, 2024

Is your feature request related to a problem?

To regress on time (e.g., to calculate a linear trend), the user needs a time axis in units of decimal year (or something similar), but xcdat defaults to cftime objects. It would be helpful to have a convenience function that could produce an array of decimal time values.

Describe the solution you'd like

An ideal solution would enable you to simply convert a standard cftime axis to decimal time (e.g., xc.to_decimal_time(time)).

Describe alternatives you've considered

No response

Additional context

No response

@pochedls pochedls added the type: enhancement New enhancement request label Oct 2, 2024
@pochedls
Copy link
Collaborator Author

pochedls commented Oct 2, 2024

I created this issue in part to note that this PR may solve this.

Although it appears we don't have an issue for this feature request, this functionality has long been desired by xcdat users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New enhancement request
Projects
Status: Todo
Development

No branches or pull requests

1 participant