Skip to content

Wrong at cftime.m #22

@ChristmasZCY

Description

@ChristmasZCY

When I use cftime to read time and units from ncread. It identifies errors. My MATALB version is MATLAB_R2025b.

ncdump shows this.

Image

cdo shows this.

Image

But When I read it with ncdateread, it shows.

Image

I found it makes wrong at cftime.m

Image

It just get hours since 2025-12-25 from time:units:hours since 2025-12-25 12:00:00.

So that ncdateread say it's 2025-12-25 00 , but it's actually 2025-12-25 12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions