From d3ed614106078a1125a448903b0ae436cbacdb6c Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Wed, 26 May 2021 07:45:39 +0100 Subject: [PATCH] add unit and slice parameters --- pygmt/src/grdvolume.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pygmt/src/grdvolume.py b/pygmt/src/grdvolume.py index 0f67302686f..02c5567f1b9 100644 --- a/pygmt/src/grdvolume.py +++ b/pygmt/src/grdvolume.py @@ -13,9 +13,11 @@ @fmt_docstring @use_alias( - C="above", - Cr="below", + C="plane", + Cr="outside_volume", + D="slice", R="region", + S="unit", V="verbose", ) @kwargs_to_strings(C="sequence", R="sequence") @@ -40,7 +42,9 @@ def grdvolume(grid, **kwargs): with Session() as lib: file_context = lib.virtualfile_from_data(check_kind="raster", data=grid) with file_context as infile: - arg_str = " ".join([infile, build_arg_string(kwargs)]) + arg_str = " ".join( + [infile, build_arg_string(kwargs), "->" + outfile.name] + ) lib.call_module("grdvolume", arg_str) result = outfile.read() return result