modelskill icon indicating copy to clipboard operation
modelskill copied to clipboard

Skill plot by aux variable

Open ecomodeller opened this issue 11 months ago • 2 comments

In an attempt to work with forecast skill, which seems possible to achieve using aux variables and no other changes, I wanted to plot the rmse as a function of lead time. A bar chart works where each lead time is interpreted as a category, but a line plot is not correct. image

ecomodeller avatar Mar 20 '24 13:03 ecomodeller

This is the problem, but I am not certain why this special case was there in the first place. https://github.com/DHI/modelskill/blob/eab37442da2bae385903c22da488671dd5c1227c/modelskill/skill.py#L106

ecomodeller avatar Mar 20 '24 15:03 ecomodeller

Cool

jsmariegaard avatar Mar 26 '24 14:03 jsmariegaard

@jpalm3r - is this still a problem? (the line chart) - could you check?

jsmariegaard avatar Sep 20 '24 11:09 jsmariegaard

I think the problem is here in line 107. np.arange(nx) will always return an array that looks like [0, 1, 2, 3, ..., nx-1], which do not correspond to the lead time values when the time step is different than 1 (like in this case, which is 24).

I can fix it and make a PR.

jpalm3r avatar Sep 20 '24 13:09 jpalm3r

Great - thanks

jsmariegaard avatar Sep 20 '24 13:09 jsmariegaard

Done in PR #446.

jpalm3r avatar Sep 20 '24 15:09 jpalm3r

Closed by #446

jsmariegaard avatar Sep 24 '24 11:09 jsmariegaard