Closed leonfoks closed 3 years ago
Hi @leonfoks, the xyz input into pygmt.blockmedian
is a feature available in PyGMT v0.4.0 (done in #1319), but it appears that you have PyGMT v0.3.1 installed. Could you try upgrading and see if it works?
It would be good to have examples in the documentation for the block filtering and surface methods (as a side note :) ) Thanks in advance for your help!
And yes, agree that we should have some examples for those methods. Would you prefer a full tutorial or just a gallery example? I did make a blockmedian
/surface
example a while ago at a workshop (see https://github.com/GenericMappingTools/foss4g2019oceania/blob/v1/3_lidar_to_surface.ipynb) but definitely should have it in the PyGMT docs somewhere for better visibility.
Hi @weiji14 , Another easy one from me. Thanks for the quick response. I updated and it's working just fine!
Personally, I think a gallery example would suffice. Perhaps containing a surface example, then a surface example that produces the block median warning message and finally use of the block median to reduce and then use surface, showing that the images look visually the same before and after reduction. Great link to the lidar example, I would parse that down a little for the gallery but the data would be a good set.
Thanks again!
Hi @weiji14 , Another easy one from me. Thanks for the quick response. I updated and it's working just fine!
No worries :)
Personally, I think a gallery example would suffice. Perhaps containing a surface example, then a surface example that produces the block median warning message and finally use of the block median to reduce and then use surface, showing that the images look visually the same before and after reduction. Great link to the lidar example, I would parse that down a little for the gallery but the data would be a good set.
Ok, I'll open a separate issue for this documentation suggestion, and maybe someone will work on it for the upcoming SciPy sprint in July.
Description of the problem Im trying to use block median before surface and I want to specify x, y, z instead of casting into a dataframe or other format. I'm looking at the docs here which state this is possible.
It would be good to have examples in the documentation for the block filtering and surface methods (as a side note :) ) Thanks in advance for your help!
Full code that generated the error
Full error message
System information
Please paste the output of
python -c "import pygmt; pygmt.show_versions()"
: