You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
blockmedian fails with x,y,z options and not table. #1351
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!
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!
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.
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.
Activity
weiji14 commentedon Jun 23, 2021
Hi @leonfoks, the xyz input into
pygmt.blockmedianis 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?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/surfaceexample 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.leonfoks commentedon Jun 23, 2021
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!
weiji14 commentedon Jun 23, 2021
No worries :)
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.