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

Time dimension missing in diurnal time series #488

Closed
AugustinMortier opened this issue Oct 13, 2021 · 11 comments · Fixed by #502
Closed

Time dimension missing in diurnal time series #488

AugustinMortier opened this issue Oct 13, 2021 · 11 comments · Fixed by #502
Assignees
Labels
aeroval-tools Issues related to AeroVal web tools
Milestone

Comments

@AugustinMortier
Copy link
Member

The time dimension (year/period) is missing in the diurnal time series files. For now, there is just one entry per model.

For now, it looks like this:

{
    "model_id": {
        "time": [...],
        "seasonal": {
            "obs": {...},
            "mod": {...}
        },
        "yearly": {
            "obs": {...},
            "mod": {...}
        },
        "meta1": "meta1",
        "meta2": "meta2"
    }
}

it should look something like this:

{
    "model_id": {
        "time": {
            "year1": [...],
            "year2": [...]
        },
        "seasonal": {
            "obs": {
                "year1": {...},
                "year2": {...}
            },
            "mod": {
                "year1": {...},
                "year2": {...}
            }
        },
        "yearly": {
            "obs": {
                "year1": {...},
                "year2": {...}
            },
            "mod": {
                "year1": {...},
                "year2": {...}
            }
        },
        "meta1": "meta1",
        "meta2": "meta2"
    }
}

The time dimension could also be just after the "model_id", but this would repeat the meta data for each time key.

e.g: of current file: emep/2021-reporting-debug/ts/diurnal/WORLD_EBAS-h-vmrox_Surface.json

@AugustinMortier AugustinMortier added the aeroval-tools Issues related to AeroVal web tools label Oct 13, 2021
@AugustinMortier AugustinMortier added this to the v0.13.0 milestone Oct 13, 2021
@jgliss
Copy link
Contributor

jgliss commented Oct 13, 2021

@hansbrenna, since you wrote the code for the diurnal processing, perhaps you could have a look at that?

I guess the code below here needs to be modified to comply with the new setup.

Probably relevant here are the parameters "periods" (and perhaps "seasons") to be added to the code through a loop in which the colocated data is "cropped" in time for the corresponding period and season.

See e.g. here for an example where this is implemented in the heatmap processing.

@hansbrenna
Copy link
Contributor

Yes, I can have a look at this.

@hansbrenna
Copy link
Contributor

@AugustinMortier "time" is just the float representation of the day of the week. Shouldn't this be kept unchanged and the time series for the different years be shown stacked?

i.e. there only needs to be 1 entry under time or the multiple entries will be the same.

@AugustinMortier
Copy link
Member Author

True, I forgot that time is the same. We can have just one entry for this key then!

@hansbrenna
Copy link
Contributor

I have made a pull request for this now in #502.

@dulte do you have a test case to run through the modified branch?

@dulte
Copy link
Collaborator

dulte commented Oct 22, 2021

@hansbrenna, I've been working exclusively with EMEP models uptill now, so I don't have anything with multiple years (I working on implementing a multiyear feature for EMEP, but that is work in progress). But I can create a test case? I busy updating eEMEP to the latest version for an upcoming VOLCEX exercise, so I won't be able to look at this issue before next week

@hansbrenna
Copy link
Contributor

OK. I can try to make a test case myself.

@hansbrenna
Copy link
Contributor

or maybe @AugustinMortier has a test case I could use?

@AugustinMortier
Copy link
Member Author

AugustinMortier commented Oct 22, 2021 via email

@hansbrenna
Copy link
Contributor

@AugustinMortier I have run a test case and generated some json files. Are these Ok for you to use?

https://github.com/hansbrenna/pyaerocom_dev_scripts/tree/master/2021/test/dw

@AugustinMortier
Copy link
Member Author

I think it is! I'll try it as soon as possible!

@hansbrenna hansbrenna linked a pull request Oct 26, 2021 that will close this issue
hansbrenna added a commit that referenced this issue Nov 8, 2021
Fix #488 (multiyear support for diurnal processing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aeroval-tools Issues related to AeroVal web tools
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants