-
Notifications
You must be signed in to change notification settings - Fork 145
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
bgrid_solo scripting and documentation update #689
Conversation
…(copying perfect_output.nc into filter_input.nc and setting perturb_from_single_instance = .true.
…un filter with a perturbed ensemble member restart files (what is done by running ./workshop_setup.sh). This makes the procedure more visible to the users and allows the users to see how the input files are being used.
i'm sorry if i missed this discussion, but we had originally not put netcdf files into the repo, partly because they're binary and can't be easily diff'd to see differences. instead we distributed the input for perfect model and filter as text .cdl files. the standard netcdf utility 'ncgen' used to be run in the workshop setup script to generate the .nc files at run time. was there a decision that this wasn't a good option? edit to add: there is still both a perfect_input.cdl as well as a perfect_input.nc in the bgrid_solo dir. i think running filter from a single ensemble member is a smart choice - did the old filter_input.cdl have something like 20 members so it was too big? |
Its unclear what the decisions where: The file in the repo appears to be a SHA (maybe for svn, doesn't seem to match DART or DART_development The history is not helpful either https://github.com/NCAR/DART/commits/main/models/bgrid_solo/work/filter_input.cdl.REMOVED.git-id and why this change was committed as part of 7aac084 - can't tell what the goal was here either. the workshop_setup.sh{csh} hasn't worked for 7+ years. |
i think some of the breakage happened when quickbuild was changed (and improved). the original older quickbuild used to look for .cdl files and run ncgen on the to make a .nc file on demand. then the workshop_setup scripts didn't have to do anything and they ran. i assume the new quickbuild doesn't do that anymore. it seems the choices are to remove the .cdl files from the repo (they exist in many of the lower order models) and commit the corresponding .nc files, or see if the quickbuild could generate .nc files on demand if a .cdl file exists. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tidying up this issue Marlee.
I've added some comments on your new documentation, I think it is worth thinking about what you want people to takeaway from your documentation.
There is documentation in the workshop_setup.sh header that doesn't match the directory or your new documentation.
the new quickbuild.sh runs ncgen. The brid_solo workshop script has not had a filter_input.cdl for 7+ years. bgrid_solo workshop_setup.csh did not work pre the new quickbuild.sh |
never mind any of my previous comments. i was completely confused about things. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I accidentally clicked "start review" instead of "add comment".
I don't see a way to cancel the review, so I'm submitting it with "Request Changes", but I'll add more comments.
So far I've focused on the proposed changes, but I have other comments which I'll make when the current changes are resolved.
Is workshop_setup.sh in work because it runs quickbuild.sh? |
i'm not sure about the bgrid_solo model, but workshop_setup.sh was in the work directory for some of the lorenz models because the tutorial used it to build and run pmo and filter so users could run the diagnostics right away. this whole script may have outlived its usefulness. |
Thanks for the context! I can see how it's simpler in the context of a workshop |
@hkershaw-brown @nancycollins @kdraeder Are we thinking we remove workshop_setup.sh all together then and update the docs accordingly? Or should we keep it in the repo? |
Update: removing the workshop_setup script from the repo and updating the docs accordingly. |
…t and improving the clarity of the doc
…iment's steps individually and better understand the process
I pulled the latest version and read through the readme.rst. Here are my top items or questions. There's no directory INPUT or template {atmos_model,?}.res file.
INPUT/atmos_model.res is hard-wired in fms_src/atmos_solo/atmos_model.f90. I also see Inconsistent formatting for programs and files; I have not worked through the test steps (an excellent addition!), but I will if that would be helpful. I also have a readme.rst with some typo fixes and suggested formatting. |
@kdraeder no need to work through the test steps, I have already done so. I will also update the formatting for programs and files. As for the model resolution, I think that the docs are okay in the sense that they already take approach number 2. Here it talks about how there is no INPUT directory the majority of the time.
I'm not sure if what we should do with the atmos_bgrid stuff. It is never used in DART, should we remove it @hkershaw-brown ? |
are we talking about the fms_src directory? If so the bgird is subroutine callable, so this code is used when the model is advanced in filter or perfect_model_obs. DART/models/bgrid_solo/work/quickbuild.sh Line 15 in 924182f
This file has all the bgrid src files that are compiled into dart. https://github.com/NCAR/DART/blob/main/models/bgrid_solo/work/extra_source.path_names |
@kdraeder does this answer all your questions? Either way, please go ahead and push your doc fixes or make them suggestions on the PR. Thanks! |
Thanks for your help @kdraeder @hkershaw-brown ! I think we are ready to release this - if one of you could just take one last quick look through and hopefully approve the PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only minor flaw that I see is that the updated format of the file names
in the namelist descriptions causes bits of text to be hidden.
It's still easily readable, and I don't know of an easy fix in rst, so it's fine with me to call it done.
I'm not seeing that in the docs that I've bit manually or in the docs built by the Github actions check. No text is hidden here on my end. Could you provide a screenshot? |
I see this in Firefox, but not Chrome, so it looks even less fixable and I still approve the PR. |
thanks @kdraeder and @mjs2369. Kevin's approved this so I'll bundle it in the next release. For the text problem, I can't reproduce the TOO LARGE TEXT issue on firefox, chrome, or safari. So I'm going to move this to its own issue, might be browser version, might be local build of docs vs readthedocs, might be something else.
|
Description:
cp perfect_output.nc filter_input.nc
and setting &filter_nml perturb_from_single_instance to .true. in input.nmlFixes issue
fixes #647
Types of changes
Documentation changes needed?
Tests
Checklist for merging
Checklist for release
Testing Datasets