File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1958,15 +1958,15 @@ def virtualfile_to_raster(
1958
1958
outgrid : str | None = None ,
1959
1959
) -> xr .DataArray | None :
1960
1960
"""
1961
- Output a raster data stored in a virtual file to an :class:`xarray.DataArray`
1961
+ Output raster data stored in a virtual file to an :class:`xarray.DataArray`
1962
1962
object.
1963
1963
1964
1964
The raster data can be a grid, an image or a cube.
1965
1965
1966
1966
Parameters
1967
1967
----------
1968
1968
vfname
1969
- The virtual file name that stores the result grid.
1969
+ The virtual file name that stores the result grid/image/cube .
1970
1970
kind
1971
1971
Type of the raster data. Valid values are ``"grid"``, ``"image"``,
1972
1972
``"cube"`` or ``None``. If ``None``, will inquire the data type from the
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class _GMT_GRID(ctp.Structure): # noqa: N801
14
14
"""
15
15
GMT grid structure for holding a grid and its header.
16
16
17
- The class is only meant for internal use and is not exposed to users. See the GMT
17
+ This class is only meant for internal use and is not exposed to users. See the GMT
18
18
source code gmt_resources.h for the original C structure definitions.
19
19
20
20
Examples
@@ -192,8 +192,8 @@ def to_dataarray(self) -> xr.DataArray:
192
192
if grid [dim ][0 ] > grid [dim ][1 ]:
193
193
grid = grid .isel ({dim : slice (None , None , - 1 )})
194
194
195
- # Set the gmt accessor .
196
- # Must put at the end. The information get lost after specific grid operation .
195
+ # Set GMT accessors .
196
+ # Must put at the end, otherwise info gets lost after certain grid operations .
197
197
grid .gmt .registration = header .registration
198
198
grid .gmt .gtype = header .gtype
199
199
return grid
You can’t perform that action at this time.
0 commit comments