-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a tutorial explaining the generally accepted input types #1268
Comments
Also should mention that plotting shapefiles directly using |
|
Working on supporting 3-band |
Inspired by PR #1186.
For GMT CLI, there are mainly two types of input: a table or a grid. PyGMT is more powerful and can accept more input types.
For a table input, PyGMT functions generally accept the following input types:
data="input.dat"
data=data
x
,y
, e.g.,x=5.0, y=5.0
x
andy
, e.g.,x=[1.0, 2.0], y=[3.0, 4.0]
x
andy
, e.g.,x=np.array([1.0, 2.0]), y=np.array([3.0, 4.0])
geopandas.GeoDataFrame
(see Integration with geopandas to plot shapely geometries #608 & Handle geopandas and shapely geometries via geo_interface link #1000)xarray.Dataset
io.StringIO
(once RFC Allow for io.StringIO inputs to certain modules #576 is done)For a grid input, PyGMT functions generally accept the following input types:
grid="input_grid.nc"
grid=grid
Although these various input data types are already used in different tutorials and examples, I think it would be better to have a standalone tutorial, explaining these input types.
The text was updated successfully, but these errors were encountered: