Skip to content

Commit

Permalink
allow uppercase date units in cf conventions (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
meggart authored Oct 28, 2024
1 parent 04aaaad commit 36a49ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DatasetAPI/Datasets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function toaxis(dimname, g, offs, len)
end
ar = get_var_handle(g, dimname)
aratts = get_var_attrs(g, dimname)
if match(r"^(days)|(hours)|(seconds)|(months) since",get(aratts,"units","")) !== nothing
if match(r"^(days)|(hours)|(seconds)|(months) since",lowercase(get(aratts,"units",""))) !== nothing
tsteps = try
timedecode(ar[:], aratts["units"], lowercase(get(aratts, "calendar", "standard")))
catch
Expand Down

0 comments on commit 36a49ff

Please sign in to comment.