question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

documentation in metadata

See original GitHub issue

Can we document what we do in the nc attrs?

when we save skill to skill.nc, we could add the way how we calculated the skill in the nc attributes. To be seen in a terminal with ncdump -h

similar: https://github.com/NCAR/esmlab/blob/master/esmlab/utils/_variables.py

def get_original_attrs(x):
    attrs = x.attrs.copy()
    encoding = x.encoding
    if "_FillValue" not in encoding:
        encoding["_FillValue"] = None
    return attrs, encoding


def update_attrs(x, original_attrs, original_encoding):
    for att in ["grid_loc", "coordinates"]:
        if att in original_attrs:
            del original_attrs[att]

    x.attrs = original_attrs
    x.encoding = {
        key: val
        for key, val in original_encoding.items()
        if key in ["_FillValue", "dtype"]
    }
return x

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
aaronspringcommented, May 23, 2019

we can make the URL persist, when we dont change. and a broken link to an existing package is I think better than non.

skill.attrs['documentation'] = some_link_to_readthedocs or wiki page where PM or hindcast philosophy is explained
skill.attrs['best skill'] = 0
skill.attrs['worst skill'] = inf
0reactions
aaronspringcommented, Jun 10, 2019

optional: when bootstrapped results sig number of bootstrap

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation & metadata | Data management - MIT Libraries
Data documentation, also known as metadata, helps you understand your data in detail, and also helps other researchers find, use, and properly cite...
Read more >
Data Documentation and Metadata | Data Cooperative
Metadata explains the origin, purpose, time, geographic location, creator, access, and terms of use of the data. Information in the metadata is used...
Read more >
Metadata and Documentation - Axiom Data Science
Metadata describes information about a dataset to ensure that it can be understood and re-used properly in the future. Content of the metadata...
Read more >
Documentation & Metadata - Data Management Planning
Data documentation (also known as metadata) enables you understand your data in detail and will enable other researchers to find, ...
Read more >
Documentation & Metadata - Research Data Management
Metadata is the information that describes and documents research data. Metadata will make your datasets searchable in an archive or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found