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

HTML table view of variable definitions in MIP tables #372

Open
matthew-mizielinski opened this issue Jul 1, 2022 · 10 comments
Open

HTML table view of variable definitions in MIP tables #372

matthew-mizielinski opened this issue Jul 1, 2022 · 10 comments

Comments

@matthew-mizielinski
Copy link
Collaborator

For another project we needed an easy, searchable view of the variable definitions within the MIP tables to go alongside a table of our "mappings" (how we produce a particular variable from our "raw" model output). @mo-jareddrayton in my team put together an html table using those used in the CMIP6_CVs for the experiment_id as a template.

I've added this to a fork of this repository that I've used for another project called ARISE* and you can see an example here (note that I'm trying to move this into the MetOffice organisation at which point this link is likely to become valid).

While the table is a little clunky (1 row for each of the 2,000+ variables) it is very quick to find all the relevant details for a particular variable through the search interface. The same information is available via the data request HTML interface, but this is quicker to navigate and could be augmented with additional fields.

It would probably take about 10 minutes to copy the code into this repo, generate the tables and deploy github pages if you think this is a useful addition.

*I'm not looking to merge these "ARISE" tables back to this repository, so I'll break the link at some point.

@taylor13
Copy link
Collaborator

taylor13 commented Jul 1, 2022

I have done something similar: downloaded the MIP tables from the data request site in excel format; then combined them into a single table. The result has many more additional columns (of not quite so useful information). Anyway combining the multiple spreadsheets into a single spreadsheet took some time, so I think what @mo-jareddrayton has done will be quite a nice overview interface to the variables.

By the way I don't quite understand what you meant by "used in the CMIP6_CVs for the experiment_id as a template." What does experiment_id have to do with it?

@matthew-mizielinski
Copy link
Collaborator Author

By the way I don't quite understand what you meant by "used in the CMIP6_CVs for the experiment_id as a template." What does experiment_id have to do with it?

Hi @taylor13, what I was trying to say is that we took the CMIP6 experiment id HTML page, and used the structure (all the javascript stuff that makes it searchable) as a template for creating another page with different columns & information.

@taylor13
Copy link
Collaborator

taylor13 commented Jul 4, 2022 via email

@matthew-mizielinski
Copy link
Collaborator Author

@durack1 if you have a moment could you give me rights to push to this repo I've got a branch ready to add the searchable table here

@durack1
Copy link
Contributor

durack1 commented Nov 18, 2022

@mauzey1 just FYI, @matthew-mizielinski was planning on adding some html to this repo - it would be great if you can review to ensure that we're not messing anything up, and also see if a future update (not planned) could also update the HTML if an update occurs (I hope not)

@durack1
Copy link
Contributor

durack1 commented Nov 18, 2022

@matthew-mizielinski just an FYI, we hadn't planned to turn on github pages on this repo - I wonder whether CMIP6_CVs (which does have github pages active) would be a better place to drop HTML (into the /docs subdir?)

@mauzey1
Copy link
Collaborator

mauzey1 commented Nov 18, 2022

@durack1 @matthew-mizielinski I can enable pages for this repo once we have the branch with the HTML.

@durack1
Copy link
Contributor

durack1 commented Nov 21, 2022

@mauzey1 I might hold off with that. @matthew-mizielinski would it be better for all new activity to occur under the mip-cmor-tables repo, including the "origin" tables?

@matthew-mizielinski
Copy link
Collaborator Author

@durack1, @mauzey1

Fair point on whether to put anything new in this repository -- I could hold off and just target the new tables instead. I've used these pages elsewhere (e.g. here) where I've needed to make a set of scientist readable tables and have had some other questions on this recently that poked me into doing something :-)

I could put them alongside the CVs, as long as we're happy with having dependencies in the HTML pages on information outside of that repo.

I would be tempted to serve them from here/the CVs and the new project, but with a heading linking to the new variables once the pages are set up.

@durack1
Copy link
Contributor

durack1 commented Nov 22, 2022

@matthew-mizielinski let's add this to the agenda for discussion tomorrow - 8 am (PST) good for you? We can also add WCRP-CMIP/CMIP6_CVs#1062

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

No branches or pull requests

4 participants