-
Notifications
You must be signed in to change notification settings - Fork 37
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
Convert Multiband Raster to WPS binary #145
Comments
I do not quite understand why you want to convert a multi band to WPS binary but in any case this feature is not supported. You need to convert to single band first. |
My idea is to update geogrid database to increase coast line resolution in my WRF simulations. If you know another way to do this, please share it with me. Thank you for your attention. Taoan |
We do not support that feature at the moment. @letmaik I was going to add this as a feature request under the |
That's right, this is not supported currently and there is no work-around for this either. We should really print an error message in that case instead of simply converting the first band. @dmey @taoansf Contributions are always welcome. The code is here: https://github.com/GIS4WRF/gis4wrf/blob/master/gis4wrf/core/writers/wps_binary.py. |
Thanks all I also found this explanation about wps format that give some insights http://www.met.wur.nl/Summerinthecity/posts/2014/03/wrfgisinput/ If wps format is similar to ENVI image format, so I will look for some solution by this way using GDAL. However, I have another question related with "wordsize" parameter on wps index file. I got this error when I try to convert a geotiff float32 to wps and open the output with GIS4WRF. Is there some trick for conversion of geotiff and get a "wordsize=2"? because I only get wordsize=4 on my output. These are my test files. |
Currently wordsize is determined automatically with a heuristic with the goal of trying to represent the input as accurately as possible. Feel free to open a separate feature request about this as it should really be an option for the user to choose it manually if needed, typically to reduce data volume. The error you got is correct and a limitation of GDAL which doesn't support this high bit depth natively. Again, feel free to open a feature request for that. The way to do it would be to preprocess the WPS data (downsampling) before handing it to GDAL. |
Greetings Taoan, |
Hello samp7, I'm sorry for the late answer. I hope this help you. With best regards, Taoan |
Hello,
I'm trying do convert a multiband raster to WPS binary by GIS4WRF process tool
However the resulting output is a single band binary file.
I attached my input and and output data for your checking.
green-mask-final-small.zip
greenfrac_fpar_modis-07-2019-wps.zip
Any help will be very appreciated.
With best regards,
Taoan
The text was updated successfully, but these errors were encountered: