Skip to content

manually fix incorrect times #475

Answered by pochedls
mzelinka asked this question in 2. Questions
May 11, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

One other option that comes to mind (via pandas):

import pandas as pd
time = pd.date_range(start="1850-01-15", end="2017-12-31", freq='M')
ds['time'] = time

This yields numpy.Datetime64 time objects, which I think should work fine with xcdat utilities.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@pochedls
Comment options

Answer selected by mzelinka
@mzelinka
Comment options

mzelinka May 11, 2023
Collaborator Author

@lee1043
Comment options

@tomvothecoder
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants