Skip to content

Suggested changes for the Taylor Diagram notebook #1

@jypeter

Description

@jypeter

I don't know if I should ping @downiec or @jasonb5 or even if this issue is in the right place

I just had to answer questions from one of our PhD students who discovered the Taylor Diagram tuto by herself (she is not in our team). Great! \o/

I don't know how she generated her input data, but I had some trouble understanding how she was preparing her data before using it for the plot. Then I looked at the tuto, and found out that she was just following what was in there

I thinks the data preparation cells would be easier to understand if they did not use list and zip, and if the data variable was called taylor_data. I'd rather create an empty array and explicitly store the plot data in the columns:

>>> nb_data = len(std)
>>> taylor_data = MV2.zeros((nb_data, 2), dtype=np.float32)
>>> taylor_data[:, 0] = std
>>> taylor_data[:, 1] = corr
>>> taylor_data.id = "My Taylor Diagram Data"
>>> taylor_data
My Taylor Diagram Data
masked_array(
  data=[[1.6 , 0.2 ],
        [1.7 , 0.5 ],
        [1.5 , 0.7 ],
        [1.2 , 0.85],
        [0.8 , 0.9 ],
        [0.9 , 0.95],
        [0.98, 0.99]],
  mask=False,
  fill_value=1e+20,
  dtype=float32)

>>> taylor_data.shape
(7, 2)

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