urban updates: urb solar panel, green roof, building drag coeff; local climate zone#1385
urban updates: urb solar panel, green roof, building drag coeff; local climate zone#1385andreazonato wants to merge 4 commits intowrf-model:developfrom universita-di-trento:WRF_GREENROOF_LCZ
Conversation
…drag coefficient, diffuse and direct radiation and building materials permeability in BEP+BEM /sf_urban_physics=3)
|
@andreazonato Does this mean that we need to set a flag in the namelist, or does this mean that we should be linking in another file from the run directory? For example, it looks like run/URBPARM_LCZ.TBL needs to be in the list. We can handle adding the file to the list of linked files. However, we need to know what this error message means for us. These are the only failures that I see so far. |
|
@andreazonato |
|
@davegill |
|
@andreazonato @dudhia @weiwangncar
What if a user just wants to use their existing namelist options? For example, the regression test failures all have urban activated (option 1, 2, 3). We are not requiring users to adopt wudapt, are we? |
|
Use_wudapt_lcz=1 is needed only if the number of landuse classes is >33, on
the contrary it should be set =0. How are you conducting the test?
Il mer 27 gen 2021, 18:19 Dave Gill <notifications@github.com> ha scritto:
… @andreazonato <https://github.com/andreazonato> @dudhia
<https://github.com/dudhia> @weiwangncar <https://github.com/weiwangncar>
You should add the flag use_wudapt_lcz=1 in the &physics paragraph in the
namelist.
What if a user just wants to use their existing namelist options? For
example, the regression test failures all have urban activated (option 1,
2, 3). We are not requiring users to adopt wudapt, are we?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1385 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALWNNTT63JRXWQU7QYQ74YLS4BDIPANCNFSM4WTG26QQ>
.
|
|
@andreazonato @dudhia @weiwangncar The output from the original WRF had this line: The output after your mods has this: How do we use the original urban options? |
The default value for this variable is defined in the Registry (set to zero), and still unable to use the traditional urban options. |
|
Despite it gives 41 landuse classes, it should take just the first three urban classes since it switches to URBPARM.TBL instead of URBPARM_LCZ.TBL. Could you please send me the wrfinput_d0* so I can check the error and correct the mistake? |
|
Ok Dave, i solved the bug. I added a switch depending on use_wudapt_lcz for the utype_urb2d. Now it works even for LANDUSE<33 |
|
@andreazonato @dudhia @weiwangncar |
|
This is one where we may want to separate the LCZ from urban changes into different PRs |
|
@dudhia @weiwangncar @andreazonato
What is the ruling on this: do we require a split PR, or accept as-is? |
|
I think they are going to go ahead and split it.
…On Tue, Feb 9, 2021 at 10:00 AM Dave Gill ***@***.***> wrote:
@dudhia <https://github.com/dudhia> @weiwangncar
<https://github.com/weiwangncar> @andreazonato
<https://github.com/andreazonato>
This is one where we may want to separate the LCZ from urban changes into
different PRs
What is the ruling on this: do we require a split PR, or accept as-is?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1385 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIZ77HNJUS2SKGUTDT2BBLS6FS2PANCNFSM4WTG26QQ>
.
|
|
Sorry, I didn't see the updates of this chat. Andrea |
|
Yes, please do that. It helps to keep these separate,
Jimy
…On Tue, Feb 9, 2021 at 11:27 AM andreazonato ***@***.***> wrote:
Sorry, I didn't see the updates of this chat.
Should I separate it into the WUDAPT and GREENROOF pull requests?
Andrea
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1385 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIZ77FBDDTCNCYUOQW4BKLS6F5BVANCNFSM4WTG26QQ>
.
|
|
Reminder - we are still waiting for this PR to separate the LCZ part into a separate PR |
|
Sorry, I finally implemented it. However github does not allow me to create
the pull request.
Andrea
Il giorno mar 16 feb 2021 alle ore 17:58 dudhia <notifications@github.com>
ha scritto:
… Reminder - we are still waiting for this PR to separate the LCZ part into
a separate PR
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1385 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALWNNTUZCMBVRL3TI7PRC3LS7KP2ZANCNFSM4WTG26QQ>
.
|
|
Can you tell us the error message?
…On Wed, Feb 17, 2021 at 3:07 AM andreazonato ***@***.***> wrote:
Sorry, I finally implemented it. However github does not allow me to create
the pull request.
Andrea
Il giorno mar 16 feb 2021 alle ore 17:58 dudhia ***@***.***>
ha scritto:
> Reminder - we are still waiting for this PR to separate the LCZ part into
> a separate PR
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#1385 (comment)>, or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ALWNNTUZCMBVRL3TI7PRC3LS7KP2ZANCNFSM4WTG26QQ
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1385 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIZ77HUKQZT6Z4QRQM2QK3S7OIOPANCNFSM4WTG26QQ>
.
|
|
git push origin WRF_LCZ:WRF_LCZ
fatal: unable to access 'https://github.com/wrf-model/WRF/': The requested
URL returned error: 403
Il giorno mer 17 feb 2021 alle ore 17:11 dudhia <notifications@github.com>
ha scritto:
… Can you tell us the error message?
On Wed, Feb 17, 2021 at 3:07 AM andreazonato ***@***.***>
wrote:
> Sorry, I finally implemented it. However github does not allow me to
create
> the pull request.
>
> Andrea
>
> Il giorno mar 16 feb 2021 alle ore 17:58 dudhia <
***@***.***>
> ha scritto:
>
> > Reminder - we are still waiting for this PR to separate the LCZ part
into
> > a separate PR
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <#1385 (comment)>,
or
> > unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/ALWNNTUZCMBVRL3TI7PRC3LS7KP2ZANCNFSM4WTG26QQ
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#1385 (comment)>, or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AEIZ77HUKQZT6Z4QRQM2QK3S7OIOPANCNFSM4WTG26QQ
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1385 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALWNNTUQOXQ3CAFNZOBAILLS7PTBTANCNFSM4WTG26QQ>
.
|
|
git remote add LCZ https://github.com/universita-di-trento/WRF |
|
So the error means you are not pushing to your own fork but directly to our
repo.
You should push to your fork and do a PR from there.
…On Wed, Feb 17, 2021 at 10:22 AM Dave Gill ***@***.***> wrote:
@andreazonato <https://github.com/andreazonato> @dudhia
<https://github.com/dudhia>
git remote add LCZ https://github.com/universita-di-trento/WRF
git push -u LCZ WRF_GREENROOF_LCZ
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1385 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIZ77CPJD5LE7FDNKFMZTTS7P3N7ANCNFSM4WTG26QQ>
.
|
|
I created the fork, but now the error is:
remote: Permission to wrf-model/WRF.git denied to andreazonato.
fatal: unable to access 'https://github.com/wrf-model/WRF/': The requested
URL returned error: 403
Il giorno mer 17 feb 2021 alle ore 18:42 dudhia <notifications@github.com>
ha scritto:
… So the error means you are not pushing to your own fork but directly to our
repo.
You should push to your fork and do a PR from there.
On Wed, Feb 17, 2021 at 10:22 AM Dave Gill ***@***.***>
wrote:
> @andreazonato <https://github.com/andreazonato> @dudhia
> <https://github.com/dudhia>
>
> git remote add LCZ https://github.com/universita-di-trento/WRF
> git push -u LCZ WRF_GREENROOF_LCZ
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#1385 (comment)>, or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AEIZ77CPJD5LE7FDNKFMZTTS7P3N7ANCNFSM4WTG26QQ
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1385 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALWNNTSWSZBFON2MC3YUCGLS7P5X7ANCNFSM4WTG26QQ>
.
|
|
Ok, i submitted the pull request.
Andrea
Il giorno gio 18 feb 2021 alle ore 09:52 Andrea Zonato <
andrea.zonato@gmail.com> ha scritto:
… I created the fork, but now the error is:
remote: Permission to wrf-model/WRF.git denied to andreazonato.
fatal: unable to access 'https://github.com/wrf-model/WRF/': The
requested URL returned error: 403
Il giorno mer 17 feb 2021 alle ore 18:42 dudhia ***@***.***>
ha scritto:
> So the error means you are not pushing to your own fork but directly to
> our
> repo.
> You should push to your fork and do a PR from there.
>
> On Wed, Feb 17, 2021 at 10:22 AM Dave Gill ***@***.***>
> wrote:
>
> > @andreazonato <https://github.com/andreazonato> @dudhia
> > <https://github.com/dudhia>
> >
> > git remote add LCZ https://github.com/universita-di-trento/WRF
> > git push -u LCZ WRF_GREENROOF_LCZ
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <#1385 (comment)>, or
> > unsubscribe
> > <
> https://github.com/notifications/unsubscribe-auth/AEIZ77CPJD5LE7FDNKFMZTTS7P3N7ANCNFSM4WTG26QQ
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#1385 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALWNNTSWSZBFON2MC3YUCGLS7P5X7ANCNFSM4WTG26QQ>
> .
>
|
|
I am still only seeing the PR from WRF_GREENROOF_LCZ which contains everything together. |
|
done
Il giorno gio 18 feb 2021 alle ore 17:31 dudhia <notifications@github.com>
ha scritto:
… I am still only seeing the PR from WRF_GREENROOF_LCZ which contains
everything together.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1385 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALWNNTXNHLAMI6KT5SOK5XLS7U6GVANCNFSM4WTG26QQ>
.
|
|
Hi folks, I am doing another independent test using this new urban code and found a few issues in module_sf_bep_bem.F for sf_urban_physics = 3. I am debugging with the help from Andrea and Jimy. There will probably be a few more changes in the code for several default parameter values (nurbm, nz_um, nbui_max) in module_sf_bep_bem.F after testing. I will follow up with more updates very soon today. |
|
@andreazonato @dudhia The downward solar radiation issue I mentioned in the WRF committee meeting today is a false alarm. The solar radiation output variables look good. The reason for this is that when I opened wrfout* files for several days together using ncview, somehow it reported all zeros for solar radiation variables, but when I opened these files for each day, the solar radiation variables look reasonable. This is probably related to ncview (I ran into similar issues before too). So everything's good. |
|
Andrea, just repeat my question of PR #1411 here, if you make changes to URBPARM_LCZ.TBL in that PR code, you also need to make the same changes to URBPARM_LCZ.TBL in this PR code. Otherwise, the changes will be gone when merging this one after that one (#1411). |
|
This would probably show up as a conflict and won't merge automatically
without a decision being made.
Dave and I think it is OK to resolve conflicts at that stage making sure
1411 goes in first.
…On Wed, Feb 24, 2021 at 1:44 PM Cenlin_He ***@***.***> wrote:
Repeat my question of PR #1411
<#1411> here, if you make changes to
URBPARM_LCZ.TBL in that PR code, you also need to make the same changes to
URBPARM_LCZ.TBL in this PR code. Otherwise, the changes will be gone when
merging this one after that one (#1411
<#1411>).
"I saw that in the URBPARM_LCZ.TBL, there are no GR_FLAG, GR_TYPE,
GR_FRAC_ROOF, IRHO, PV_FRAC_ROOF. Will this cause any problems when users
want to run PVP and/or Greenroof together with LCZ turned on? It seems that
the model the above GR/PVP -related variables are also needed for
URBPARM_LCZ.TBL to allow users activate greenroof and/or solar panel when
turning on the LCZ mode."
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1385 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIZ77HESAIQVZTA2EORQR3TAVQKBANCNFSM4WTG26QQ>
.
|
|
@andreazonato @cenlinhe @dudhia |
|
@cenlinhe, I noticed that in this PR, GR_FLAG, GR_TYPE, GR_FRAC_ROOF, IRHO, PV_FRAC_ROOF are present inside URBPARM_LCZ.TBL. Do you agree with me? |
|
@andreazonato Yes, you are right. The parameters are there in the URBPARM_LCZ.TBL of this PR code, so it should be fine as long as the PR #1411 is merged first and then this one. No need to update the URBPARM_LCZ.TBL in the PR #1411. |
|
I looked through the code changes again and did not spot any other outstanding issues. The current version of this PR after Andrea's update of the two parameters (nz_um & nbui_max) should be fine. |
|
After my discussion with Dave, regarding the slow-down issue (caused by nurbm) in PR #1411 , Dave will fix the bug and then submit a new PR based on Andrea's urban code to facilitate the PR process (since there is a significant time lag between Italy and US). Do we need to update the LCZ code here accordingly as well? If not, then there may be conflicts when merging that new PR and this one here, and we need to be careful about not replacing the new update (fixing the LCZ nurbm issue) with this one. |
|
This PR code has also been tested by another outside researcher (Jie Wang, China) by applying to a Chinese urban area. The test results are here: /glade/scratch/jiewang/ExtremeRainfall/WUDAPT/WRF_urban_test/ |
|
The LCZ code should be merged before we can approve this one since there
may be
overlapping or conflicting mods.
…On Tue, Mar 2, 2021 at 9:44 AM Cenlin_He ***@***.***> wrote:
This PR code has also been tested by another outside researcher (Jie Wang,
China) by applying to a Chinese urban area. The test results are here:
/glade/scratch/jiewang/ExtremeRainfall/WUDAPT/WRF_urban_test/
All urban physics with nested domains seem to run successfully and work
fine.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1385 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIZ77CPXXGEKCICQUQPDZDTBUIYDANCNFSM4WTG26QQ>
.
|
|
Hopefully, this PR is replaced by PR #1427 "urban updates: solar panel, green roof, building drag coefficient" |
TYPE: new feature
KEYWORDS: urban, green roof, solar panel, local climate zone, new building drag coefficient
SOURCE: Developer: Andrea Zonato (University of Trento, Italy, andrea.zonato@unitn.it)
DESCRIPTION OF CHANGES:
This update includes new capabilities to account for urban solar panel, green roof, new building drag coefficient, and local climate zone (LCZ). The first three new capabilities are for BEP+BEM. The new building drag coefficient is based on Santiago and Martilli (2010) and Guti ́errez et al. (2015). The newly added LCZs are all related to urban and all urban updates are still controlled by sf_urban_physics options. More details are available in the WRF User's Guide.
Briefly, a new urban parameter table (URBPARAM_LCZ.TBL) has been added for using the new LCZ urban category. The new LCZ definition has LU_INDEX=LCZ+30. If a user still wants to keep using the traditional 33 classes (31st-33rd for urban), please specify the namelist option "use_wudapt_lcz = 0". If a user wants to use the new LCZ, please specify the namelist option "use_wudapt_lcz = 1". If the number of urban category in the input files is inconsistent with the namelist option, error messages will occur. Only the LCZ modeling capability is provided here, not the dataset which is the responsibility of users. The method to create the LCZ data is described in the World Urban Database website: http://www.wudapt.org/
LIST OF MODIFIED FILES:
M Registry/Registry.EM_COMMON
M Registry/Registry.NMM
M Registry/registry.dimspec
M dyn_em/module_first_rk_step_part1.F
M dyn_em/module_initialize_real.F
M dyn_em/start_em.F
M dyn_nmm/module_PHYSICS_CALLS.F
M dyn_nmm/start_domain_nmm.F
M phys/module_physics_init.F
M phys/module_sf_bem.F
M phys/module_sf_bep.F
M phys/module_sf_bep_bem.F
M phys/module_sf_clm.F
M phys/module_sf_noahdrv.F
M phys/module_sf_noahlsm.F
M phys/module_sf_noahmpdrv.F
M phys/module_sf_noahmplsm.F
M phys/module_sf_urban.F
M phys/module_surface_driver.F
M run/LANDUSE.TBL
M run/MPTABLE.TBL
M run/URBPARM.TBL
A run/URBPARM_LCZ.TBL
M run/VEGPARM.TBL
M share/module_check_a_mundo.F
TESTS CONDUCTED:
RELEASE NOTE: WRF-urban updates for green roof, solar panel, and new building drag coefficient for BEP+BEM, and local climate zone for all urban schemes. The paper describing the roof and LCZ update is under development. The new building drag coefficient is based on Santiago and Martilli (2010) and Guti ́errez et al. (2015).
Santiago, J. L. and Martilli, A. (2010). A Dynamic Urban Canopy Parameterization for Mesoscale Models Based on Computational Fluid Dynamics Reynolds-Averaged Navier-Stokes Microscale Simulations. Boundary- Layer Meteorology, 137(3):417–439.
Guti ́errez, E., Martilli, A., Santiago, J. L., and Gonz ́alez, J. E. (2015). A Mechanical Drag Coefficient Formulation and Urban Canopy Parameter Assimilation Technique for Complex Urban Environments. Boundary-Layer Meteorology, 157(2):333–341.