Skip to content

Extract time failing to get 0:00 hours of first day#259

Merged
mattiarighi merged 3 commits into
developmentfrom
fix_extract_time
Sep 26, 2019
Merged

Extract time failing to get 0:00 hours of first day#259
mattiarighi merged 3 commits into
developmentfrom
fix_extract_time

Conversation

@jvegreg

@jvegreg jvegreg commented Sep 18, 2019

Copy link
Copy Markdown
Contributor

When loading sfcWind with mip day for the model

- {activity: HighResMIP, dataset: CMCC-CM2-HR4, project: CMIP6, exp: highresSST-present, grid: gn, ensemble: r1i1p1f1, start_year: 1950, end_year: 2014}

@sloosvel and @nperezzanon found that the first timestep was missing. After investigating, I found that it was due to an error in the extract_time function that this pull request fixes, along with a new test case to test it.

The error was using a strict start < time in the constraint. It works well for most cases because models usually assign times close the middle of the interval and not at the edge, but this model was using 0:00 hours at all times

@jvegreg jvegreg added bug Something isn't working preprocessor Related to the preprocessor labels Sep 18, 2019
@mattiarighi mattiarighi merged commit f7545be into development Sep 26, 2019
@mattiarighi mattiarighi deleted the fix_extract_time branch September 26, 2019 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working preprocessor Related to the preprocessor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants