-
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
w2w not successful in incorporating LCZ into geo files #132
Comments
I am not sure why you're encountering the error, but your re-installation command does not work because the branch does not exist anymore. Try this instead for the latest version on main pip install --upgrade --force-reinstall git+https://github.com/matthiasdemuzere/w2w.git or a version where we've made a few changes (which is not merged) pip install --upgrade --force-reinstall git+https://github.com/matthiasdemuzere/w2w.git@add_wrf_version If you're error still persists, you will probably have to provide your geo_em files, for someone to have a look. |
Thank you so much for replying so quickly. It took me some time to apply both suggestions but essentially, while both suggested re-installation commands worked, I still encounter the same error message I posted about when the checks and cleaning are being made. For some reason, the LCZ data is not being incorporated into the new geo_em.d0X.nc files. It may not have been seen but I do provide all files I have in this drive as the TIFF file was quite large: https://drive.google.com/drive/u/1/folders/1J6sm3QQZaSg0JaYaPG4mezDLTx_k7eA5 Please advise me on further courses of action I can take, thank you! |
Hi @GLlorin, Thanks for reporting this. The first thing I noticed is the large size of your PAR.tif file, that seems to cover an area that is many times larger than your target WRF d02 domain. When using that file, my local machine actually did not have anough memory :) So, I just cropped a smaller area out of the global LCZ map, using the code below (you can get v3 of global LCZ map here):
When I execute w2w with this smaller file, I can actually reproduce your error:
I can also confirm to get this error in both these versions:
Based on the output, it seems to go wrong when introducing the LCZ labels into the LU_INDEX, because of:
At the same time, Check 3 seems also misleading: I'll try to look into this further ... |
Dear @matthiasdemuzere , I am using the global LCZ map produced by Demuzere et al. (2022) and encountered the same problem as Mr.GLlorin when research Hong Kong. Additionally, I followed the instructions in #38 and reinstalled the matthiasdemuzere version. However, the same problem persists. I was wondering if you have found a solution to this issue? After inspection, I can confirm that the LCZ import failed, as the resulting file still contains 21 classes instead of 41 classes. I hope this information might be helpful for your research. Thank you so much for your contributions to this project. Wish you have a great day! My error message is as follows: --> Set data, arguments and files
--> Start sanity check and clean-up ...
|
Describe your issue
Hello!
I am trying to use the global LCZ map produced by Demuzere et al. (2022), cut to the Philippines (~5-25N, 115-130E), in simulations over Metro Manila to test the performance of different urban canopy models. However, I am running into trouble at the first step of using the w2w python utility to incorporate the TIFF file into the prepared geo_em.d0X.nc files.
Following its recommended use, I run this line in the directory where I have my LCZ file (PAR.tif) and my two domain geo files:
> w2w ./ PAR.tif geo_em.d02.nc
It runs well until the check and cleaning starts, giving the following messages and ending in an error:
I know this error was already brought up in Issue #38, but when I tried to follow the recommended course of action from the thread by executing:
pip install --upgrade --force-reinstall git+https://github.com/matthiasdemuzere/w2w.git@add_tests
I run into this error:
I have uploaded my geo_em.d0X.nc files and the TIFF file I have cropped from the global map by Demuzere et al. (2022) in this GDrive. I've also included the produced geo_em.d02_LCZ_params.nc file which confirms that the LU_INDEX was not updated. Please advise me on my next steps.
Thank you very much!
w2w --version
w2w 0.5.0
nc-config --all
Installed Packages
Traceback
No response
The text was updated successfully, but these errors were encountered: