-
Notifications
You must be signed in to change notification settings - Fork 16
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
Using urbparm_lcz.tbl with old 3 urban classes. Set use_wudapt_lcz=0 #125
Comments
Hi @VladimirSobral, Thanks for reaching out. What WRF/WPS version are you using? I wonder whether this error message has to do with the change in LCZ class numbers in the latest releases? @andreazonato? |
I'm using WRF 4.5.2 and WPS 4.5. Cheers, |
I see. Ok, so this version of WRF expects the LCZ classes to be numbered 50-61, consistent with the CGLC-MODIS-LCZ dataset. So good to hear that this works. But ... as far as I know the full integration of W2W in WPS/WRF is not finished yet? Is this correct @andreazonato? The CGLC-MODIS-LCZ data is based on the global LCZ map. So if you use this map in W2W, the urban areas should be more or less the same. What might differ are the natural areas, that are based on CGLC data or the default MODIS data. Also, the treatment of LCZ-based urban canopy parameters should be improved in the latest WRF releases compared to what I developed for W2W. But again here, I am not sure if these developments are already available ... |
Hello everyone, Yes @matthiasdemuzere, now the 4.5* version uses 50-61 LCZ instead of 30-41, in order to avoid the overlapping with NLCD landuse categories. So, @VladimirSobral you have 2 possibilities
I have a WRF-integrated version of W2W right now. However, since it takes some time to release this in the new WRF version, it may takes some month to have it publicly available Andrea |
Hi everyone, Thank you so much @matthiasdemuzere and @andreazonato for the information. Vladimir |
Hello everyone, Since I am not familiar with doing this, I am curious to know if anyone has done this before or has some recommended steps to take in addition to what @andreazonato posted. I am not tied to any particular library (xarray was also attempted) so any suggestion is welcome. Lastly, I apologize in advance if this is not the appropriate place to post, but I could not find a better area. (For reference: this is the most basic iteration of the command I have been using, and I've made many attempts surrounding this: ~Eliott |
Hi @wefoust, The only thing you need to do is to change the LCZ class values in LU_INDEX. There is no need to change any of the other parameters. Changing the LCZ class values in LU_INDEX can be done with the following code snippet: import xarray as xr
import os
ds = xr.open_dataset('./geo_em.d04_LCZ_params.nc')
print(ds['LU_INDEX'].max())
ds['LU_INDEX'] = ds['LU_INDEX'].where(ds['LU_INDEX'] <= 30, ds['LU_INDEX'] + 20)
print(ds['LU_INDEX'].max())
ds.to_netcdf('./geo_em.d04_LCZ_params_UPDATED.nc') You probably also have to change the number of land catagories, from 41 to 61? ds.attrs['NUM_LAND_CAT'] = 61 I hope this helps. |
Hi @wefoust Andrea |
Thank you all! I was surprised how I got stuck on this. Xarray turned out to be a great tool to do this, and that helped me convert the LANDUSEF variable is well (Needed to maintain consistency as I pass files along to others) |
Hi @wefoust are you able to solve the problem, I am using the 4.5.1 version WRF and got the same problem (able to run metgrid, real.exe but fails at wrf.exe), then I changed the LCZ class values in LU_INDEX (as suggested by @matthiasdemuzere but now I got a problem in metgrid.exe), any suggestions?? |
Yes, I also have this issue (v4.5.1), even if the geo_em has 61 categories. I'm investigating what may be the problem. |
In my case, this error pops up when using the NoUrban file and may be related to this bug wrf-model/WRF#1878. Was this fix in 4.5.2 @andreazonato? I will try with that version... The geo_em.d0?.LCZ_params.nc file doesn't work either, but the error message is more cryptic and produces a memory issue (?) |
Hi @dargueso , I do not think the NoUrban file should be the problem. The params too is strange! What are the errors? |
My setup is a large domain and then two identical domains focused on a city, one with urban areas and the other without. That's why I thought the NoUrban file could be the problem, but I'm not sure. Still looking at it. |
Could it be related to the bug above (wrf-model/WRF#1878)? Because using only the NoUrb and setting:
and setting it to: I get:
|
Not at all @andreazonato? I'm trying to implement the option of having different LCZs in the input (geo_em) and when running WRF, it reverts LU_INDEX to 13, despite the fact that the met_em files have LCZs. I've been ignoring LANDUSEF based on this comment but I suspect that real.exe is actually using LANDUSEF to set LU_INDEX in the wrfinput files. |
No, it doesn't use LANDUSEF. It is used just for tiling NOAH in case you use the MOSAIC approach. BUT it is the variable I'm using in WRF to use LCZ from geo em, ad it is the one you should use to employ LCZ from geo em (it brings the subgrid information, i.e. the percentage of every landuse classes on every grid cell) Hope I explained pretty clear Andrea |
OK, I've updated the code to define LANDUSEF based on LCZ categories, so WRF doesn't revert LU_INDEX to 13. See #127. |
Describe your issue
Hi @matthiasdemuzere
Could you help me with this bug?
After use w2w, I have this message running wrf.exe: USING URBPARM_LCZ.TBL WITH OLD 3 URBAN CLASSES. SET USE_WUDAPT_LCZ=0
I supposed that the w2w output is correct (please see the attached figure - there are 39 classes because the region doesn't have classes 1 and 11). ). I can't find a solution on WRF forum or similar.
I also attached the namelist.input and a screenshot of the wrf.
namelist.txt
Cheers,
Vladimir
w2w --version
w2w 0.5.0
nc-config --all
Installed Packages
.
Traceback
No response
The text was updated successfully, but these errors were encountered: