-
Notifications
You must be signed in to change notification settings - Fork 2
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
change the way for Noah-MP to read in the parameter table #46
Comments
@barlage Do you have a better way to do step 1? Now I have to do it line by line ! mptable.tbl vegetation parameters ..... |
@HelinWei-NOAA I think we should use MPTABLE.TBL as it is formatted in the noahmp repo. https://github.com/NCAR/noahmp/blob/master/parameters/MPTABLE.TBL Ultimately that's what we will use when we have a submodule. We can change the values that are different to be the same as those in noahmp_tables. We can also use the same code to read the parameter tables. |
I'm wondering if we can do something similar to what thompson microphysics does in that it looks like the parameter read code and parameter read call are both in ccpp. That way we don't have to touch fv3atm or anything above ccpp. parameter read code: called from: called from |
I just spoke with Cenlin. I think we should follow the approach he did with this file: Basically the same as MPTABLE but added the soil and general parameters at the end. |
This is great and what I want.
|
My plan will also not touch fv3atm above but need to change the workflow. Since the parameter file is not a fixed file we should probably put it under global-workflow/parm
|
@barlage Where is the corresponding code to read this table?
|
My suggestion would be to use the same code that is here, slightly modified for any updates to the current table: We can also use the same code to read the parameter tables. |
Right now Noah-MP parameter table is part of source code. You have to re-compile the entire UFS code whenever the value of the parameter in the table is changed. The goal here is to change the code structure and workflow to have this table as an input file to the model. We will just follow what the model reads in aerosol data.
(1) move the values of those parameters in noahmp_tables.f90 to a new file called noahmp_tables.dat. This file will be placed to $FIX_AM
(2) add a link in global-workflow/ush/forecast_postdet.sh
if [$(grep noahmpdrv $ {_suite_file} | wc -l ) -gt 0 ]; then
$NLN $FIX_AM/noahmp_table.dat $DATA/noahmp_table.dat
(3)modify physparam.f
data noahmp_file / 'noahmp_table.dat ' /
(4)modify iounitdef.f
! --- ... input units
.......
integer, parameter ::NINOAHMP =49 ! for reading noahmp table
(5) modify noahmp_tables.f90 to read the parameters from unit 49, file=noahmp_file
The text was updated successfully, but these errors were encountered: