Skip to content

Working with the s5 forecast data #131

@tommylees112

Description

@tommylees112

the s5 data has lots of nuances

so in order to be a complete xarray object there are 4 different forecast_horizons for each month so that the only array with non-nan values is when the valid_time is the first of the next month.

the forecast_horizon is set to a size of 9 (28days, 30days, 31days + 30 + 60 ...) which is the way to code n month forecasts (1month = 28/30/31 depending on the length of the month).

Screenshot 2019-10-23 at 15 37 04
Screenshot 2019-10-23 at 15 36 53
Screenshot 2019-10-23 at 15 36 40

So these forecasts are all initialised on 2014-01-01 and January is 31 days long. So the only valid data comes from the 3rd indexed forecast_horizon (here coded as step) which corresponds to 31 days. This takes the valid_time to 2014-02-01 which is the month ahead. Whereas February/March are 59 days long total. So the 4th indexed forecast_horizon[3] corresponds to 59 days which is the valid step here (valid_time == 2014-03-01)

Screenshot 2019-10-23 at 15 56 36

We need a way to get the valid timesteps so that we have a complete xarray object with data at each timestep. I can think of a few ways but we could document them here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions