pygmt.grdpaste: Join two grids along their common edge#4399
pygmt.grdpaste: Join two grids along their common edge#4399Chuan1937 wants to merge 37 commits intoGenericMappingTools:mainfrom
Conversation
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
|
Also need to add it to |
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
|
|
I think this points to an upstream GMT bug, which should be fixed. |
Yes, But |
Yes please |
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
|
Could you please add one more test with grid1 as file and grid2 as xr.dataarray? |
When the first input is a real file path and the second is a virtual file (from a DataArray), a GMT_GRID_READ_ERROR is raised. However, if the first input is a virtual file and the second is a real file, it works normally. success: failure: A temporary workaround is to detect mixed inputs in PyGMT and load the files as DataArrays, making both inputs virtual files: This may be an issue with upstream GMT. Should we use the workaround or report the problem to upstream? |
pygmt.grdpaste: Join two grids along their common edge
Preview: https://pygmt-dev--4399.org.readthedocs.build/en/4399/api/generated/pygmt.grdpaste.html#pygmt.grdpaste