-
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
Length mismatch: Expected axis has 38 elements, new values have 24 elements #609
Comments
Hi @marciaamatias,
Thanks! |
Hello @biglimp I assume the SUEWS simple plugin would only use the default dataset shipped in UMEP, right? if so, I guest this issue is related to some upstream packages used in pre-processing the default dataset. |
We will have to see when the user submit the data. |
I'm sorry I am taking so long to get you the files But first I need to complete the problems I'm having with the Tree morphology |
So this is the input data that I have. I think that is all you need. If there is anything missing I'll send it. I've run the model again after I've fixed the tree morphology problem with @biglimp's help but the same error appeared. And this is the version of QGIS and umep I'm using |
Hello @biglimp, it seems the issue could be on the upstream side since the error message doesn't appear to be directly generated by SuPy itself. Also, the data provided by UMEP users isn’t immediately usable for testing on the SuPy side. We need to determine whether the problem originates from SuPy or elsewhere. (This might be more of a UMEP development issue that should be branched out separately.) |
Is there anything missing I should have provided for testing on the SuPy side? |
No, not at the moment - Fredrik and I need to figure sth else first and update this further. |
Your attached data is not complete. If you want run use your own data in SUEWSSimple, you need isotrophic files from buildings, vegetation and landcover using DSM, DEM, CDSM and LandCover rasters. Please provide your isotrphic file for buildings. |
Sorry, here it is |
Your data is inconsistent. In your land cover file, building fraction is 0.233 whereas in your building file you have a building fraction of 0.338. Furthermore, when I look at your geodata, you lack a DEM and your DSM has tall vegetation included. Is should consist of only buildings and ground. Have a close look at the tutorial data for our London test case. There you can see how the data should be. |
Not sure yet where your error come from but you still have large differences between your land cover building fraction and Building morphology fraction. When I test with your data I get this message since the data is inconsistent: I also see that you are using the met_data from London (if the attached files are correct. That is not possible since that dataset is only valid for that location. Please clean your data and resubmit for us to test. As it is now I cannot debug your problem. |
@sunt05 , I was able to debug and it seem to be something wrong with the input metfile (apart from the issues with the input surface data). Do you automatically add a spinup year? I attached the data used. Can you check? |
This is the met data I'm using for the model. I've created this based on the data EPW data for Lisbon. That is the file I've sent you. |
What grid are you using as landcover? |
A raster with the classification that UMEP requires, from 1 to 5 |
I've moved the point and changed the search area to 130 meters, so now everything is within the area and the values do change a little bit. However, the morphometric values for the trees I can't calculate because of this error, that I think is the same I've had before This is the data I'm using. I'm only using the CDSM And I've checked the box for the DSM (only 3D objects) ERROR: Point location obtained from point in vector layer Execution failed after 0.09 segundos |
Sorry, cannot help since i cannot replicate your error. |
can you send me the output file you got on the morphometric calculator? so I can see if with that I can run the model? |
Thank you. It seems the problem remains in the difference between Land Cover and the DSM, manly on the vegetation difference My question is: beeing a possitive differece means there is more vegetation in the DSM than in the Land Cover? I've updated the Land Cover, to account for all the trees the morphometric calculator is assuming but the difference remains |
You have 12.2% evergreen in your landcover and 0.4% tree cover from the morphology file, i.e. no trees in your CDSM. |
Can you help me with this error the plugin is crashing on? What GridLayoutMETDATA_NEW.nml file is UMEP referring to? This is what is on the Supy.log 2024-05-13 15:13:48,999 - SuPy - INFO - All cache cleared. |
And what about this error (again) on the Land Cover Grid? I'm using new shapes, on a blank project so I make sure is not that that is making the error. I've seen that all layers have the same CRS, same size, extent and resolution. I was able to use the same grid on the Morphometric calculator and it added to the grid attribute table the values. But with the Land cover is not working. |
This error indicates that you have i discrapency in CRS between your land cover and vector data OR that your land cover consist of NoData values. The land cover dataset should only consist of values between 1 and 7. |
Your new error is different. Now 25 vs 24 mismatch. This indicated that it is something wrong with the number of columns in your met forcing data. |
What abou this error? What file is the Supy log referring? 2024-05-14 13:36:56,878 - SuPy - ERROR - C:\Users\marci\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\UMEP\suewsmodel\Input\GridLayoutMETEO1.nml does not exists! |
I need more info. When does this error occur? |
This is a new error? Please be more detailed in your error description and submit all data used. Otherwise we cannot help you. |
I fixed the length mismatch error. Now, this is the error appearing The data I'm using is the same I've been using before. Nothing changed, except the met file that I've changed with your suggestions. **The error now is: Check also: C:\Users\marci\Documents\SuPy.log Please report any errors to https://github.com/UMEP-dev/UMEP/issues** ON the supy log: I understand the plugin is trying to find the GridLayoutMETEO1.nml. So my questions are:
The tutorials are a great help but they lack several intermediate steps so "normal" people that are using the plugin with the QGIS software are able to use it. This is the data I'm entering in the SUEWS simple. |
I think a know what the issue might be. Try again but dont change file prefix, i.e. keep 'kc'. Let me know what the result will be. The GridlayoutFile is for a newer version of the SUEWSmodel. See possibly SUEWS-manual for more info. This file is not used in SUEWSSimple but it has to exist. This folder includes many files required to run the model. |
Ok, so I've tried again, replacing the file code to Kc and this is what the model said. On the Supy log: |
I have no idea what this error means but it might be related to errors in your met forcing data. @sunt05 , do you have an idea about this error? |
It appears your forcing file contains invalid wind speed values—please refer to the log information above to debug your file. I suspect there are some zero wind speeds in your forcing file. |
@sunt05 thank you I did have 0 values for wind speed. I replaced them with 0.0001. However, is not running. I've checked and all values are within the range from 0.0001 to 60. This is what the supy log says
this is the txt file I'm using |
Please make the |
Ok, I replaced the values for 0.1. I tried to run and QGIS just shuts down completely. Is this normal? Not just the UMEP plugin but QGIS programme. completely |
Sorry to hear that – it seems beyond our control. However, I checked the forcing file. After replacing the invalid |
Ok. I dont know if we can assist in this issue any more (see point 2)
I cannot replicate your error. I runs fine on my computer. What version of QGIS are your using? At the moment we are having issues with the latest version that we are trying to solve(3.36.2). |
I'm running the SUEWS model within UMEP and I get this error when runngi the SUEWS simple
Length mismatch: Expected axis has 38 elements, new values have 24 elements
What length?!! Can someone help?
I checked the Supy.log and it doesn't present any information on the error
"2024-04-28 18:47:38,762 - SuPy - INFO - All cache cleared.
2024-04-28 18:47:39,549 - SuPy - INFO - All cache cleared."
The text was updated successfully, but these errors were encountered: