Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arlfinder: with fewer_arl_file=true, correctly assign each hour to latest forecast, when possible with minimum number of files #13

Open
jdubowy opened this issue Nov 17, 2020 · 0 comments

Comments

@jdubowy
Copy link
Member

jdubowy commented Nov 17, 2020

e.g. if looking for FW00Z data for 2020-11-16T00:00:00 through 2020-11-17T23:00:00, the 11/16 forecast should be used for the first 24 hours and the 11/17 forecast should be used for the last 24 hours. i.e. For the 12 hour overlap, the later forecast should be used.

This works if fewer_arl_file is false, but not if true.

with -f option:

{
    "files": [
        {
            "last_hour": "2020-11-17T12:00:00",
            "first_hour": "2020-11-16T01:00:00",
            "file": "/data/Met/FW00Z/1km/ARL/2020111600/hysplit-2020111600.t00z.namsf.FW"
        },
        {
            "last_hour": "2020-11-17T23:00:00",
            "first_hour": "2020-11-17T13:00:00",
            "file": "/data/Met/FW00Z/1km/ARL/2020111700/hysplit-2020111700.t00z.namsf.FW"
        }
    ]
}

without -f option:

{
    "files": [
        {
            "file": "/data/Met/FW00Z/1km/ARL/2020111600/hysplit-2020111600.t00z.namsf.FW",
            "first_hour": "2020-11-16T01:00:00",
            "last_hour": "2020-11-17T00:00:00"
        },
        {
            "file": "/data/Met/FW00Z/1km/ARL/2020111700/hysplit-2020111700.t00z.namsf.FW",
            "first_hour": "2020-11-17T01:00:00",
            "last_hour": "2020-11-17T23:00:00"
        }
    ]
}

@jdubowy jdubowy changed the title arlfinder: correctly assign each hour to latest forecast arlfinder: with fewer_arl_file=true, correctly assign each hour to latest forecast Nov 17, 2020
@jdubowy jdubowy changed the title arlfinder: with fewer_arl_file=true, correctly assign each hour to latest forecast arlfinder: with fewer_arl_file=true, correctly assign each hour to latest forecast, when possible with minimum number of files Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant