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

Propose handling of prefixes in global attrs #104

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jyucsiro
Copy link
Contributor

@jyucsiro jyucsiro commented Jun 7, 2022

This PR allows users of the bald library to define a set of prefixes in netcdf global attributes. This is to accommodate the case where users are not able or willing to create a separate group or variable to contain a prefix_list. In this scenario, use of global attributes is a low barrier entry for defining prefixes.

See also opengeospatial/netcdf-ld#115

@jyucsiro jyucsiro requested a review from marqh June 7, 2022 09:51
@marqh
Copy link
Member

marqh commented Jun 28, 2022


#add prefixes defined in global attributes
#note: this will overwrite any in prefix_list
for k in fhandle.ncattrs():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider
opengeospatial/netcdf-ld#115

and only do if isPrefixedBy is not used

@jyucsiro jyucsiro self-assigned this Jun 30, 2022
@jyucsiro jyucsiro mentioned this pull request Aug 9, 2022
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

Successfully merging this pull request may close these issues.

2 participants