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

First version of metadata2html converter #208

Merged
merged 6 commits into from
Aug 17, 2019

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Aug 13, 2019

Associated PRs:

https://github.com/NCAR/NEMSfv3gfs/pull/212
NCAR/ccpp-physics#293
https://github.com/NCAR/FV3/pull/184
#208
NCAR/NEMS#1

For regression testing, see https://github.com/NCAR/NEMSfv3gfs/pull/212.

Changes in ccpp-framework:

  • first version of metadata to html converter, making use of the existing metadata_header class and extending it with a to_html class function
  • scripts/convert_metadata*.py: skip adding \htmlinclude statements for blank metadata tables

…pment work for generating html table from metadata table
@climbfuji climbfuji changed the title Work in progress: metadata2html First version of metadata2html converter Aug 15, 2019
@climbfuji climbfuji marked this pull request as ready for review August 15, 2019 23:47
scripts/metadata_table.py Outdated Show resolved Hide resolved
Copy link
Contributor

@llpcarson llpcarson left a comment

Choose a reason for hiding this comment

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

Approved, pending regression test completion

help='directory where to write the html files',
required=True)

attributes = [ 'standard_name', 'long_name', 'units', 'local_name',
Copy link
Collaborator

@grantfirl grantfirl Aug 16, 2019

Choose a reason for hiding this comment

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

Which attributes should be displayed? I would argue not all of them in the scientific documentation. Maybe just standard_name, long_name, and units (intent might be useful too)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct. Something we need to iterate on with Ligia, Julie and Man as well. This script is a first version and I was hoping to improve it with the coming metadata conversions.

Copy link
Collaborator

@grantfirl grantfirl left a comment

Choose a reason for hiding this comment

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

Approved (pending title change?)

@climbfuji
Copy link
Collaborator Author

Approved (pending title change?)

Thanks - any input for a better title?

@grantfirl
Copy link
Collaborator

Approved (pending title change?)

Thanks - any input for a better title?

I was referring to your comment about the "My First HTML", which sounded like you were going to change it prior to this PR being merged.

@climbfuji
Copy link
Collaborator Author

Argh. Of course. Battling with theia. First, disk quota exceeded (project stmp3), now refuses to accept data transfers. Will change the title.

…table plus 'argument table', i.e. 'ozphys_run argument table'
@climbfuji
Copy link
Collaborator Author

Argh. Of course. Battling with theia. First, disk quota exceeded (project stmp3), now refuses to accept data transfers. Will change the title.

Done - also tested this on my Mac.

@ligiabernardet
Copy link
Collaborator

ligiabernardet commented Aug 16, 2019 via email

@grantfirl
Copy link
Collaborator

grantfirl commented Aug 16, 2019 via email

@ligiabernardet
Copy link
Collaborator

ligiabernardet commented Aug 16, 2019 via email

@climbfuji
Copy link
Collaborator Author

climbfuji commented Aug 17, 2019

@gold2718 technically speaking we don't require reviews from non-DTC NCAR for commits going into ccpp-framework gmtb/develop, but please feel free to check and comment on how I implemented the metadata2html conversion tool. I will merge this PR now, hence any improvements/suggestions from your side will be going into a follow-up PR to gmtb/develop, so that whatever gets merged into master later is OK with you. Thanks!

@climbfuji climbfuji merged commit 6d7d43e into NCAR:gmtb/develop Aug 17, 2019
@climbfuji climbfuji deleted the metadata2html branch June 27, 2022 03:04
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.

4 participants