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

added option to write units in netCDF files based on comment argument #106

Merged
merged 6 commits into from
Sep 27, 2021

Conversation

flohump
Copy link
Contributor

@flohump flohump commented Sep 27, 2021

No description provided.

Copy link
Member

@tscheypidi tscheypidi left a comment

Choose a reason for hiding this comment

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

Interpreting the "comment" section of a magclass object as unit will often lead to errors. What you could do instead is a) introduce a "unit" argument in the function call to specify the unit, or b) use the madrat-based naming conventions that comment lines containing the unit start with "unit: " and only use that part as unit (if existing). The comment could then look for instance like: comment <- "unit: m^3" and unit would be m^3. Important for this implementation would be that also other comment lines would be allowed

Copy link
Member

@tscheypidi tscheypidi left a comment

Choose a reason for hiding this comment

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

looks good

@tscheypidi tscheypidi merged commit 014596d into pik-piam:master Sep 27, 2021
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