Skip to content

Commit

Permalink
Com
Browse files Browse the repository at this point in the history
  • Loading branch information
joa-quim committed Oct 3, 2023
1 parent c1062a7 commit 6ab9671
Show file tree
Hide file tree
Showing 54 changed files with 110 additions and 107 deletions.
4 changes: 2 additions & 2 deletions _libs/lunr/lunr_index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions documentation/general/quick_learn.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ coast(R="-10/0/35/45", J="M15c", B="afg", W="0.5p", show=true)
but what if you need to make a map with some data, a grid for example. Simple, give it as a first argument as in:

```julia
grdimage("@earth_relief_20m.grd", J="R15c", B="a", show=true)
grdimage("@earth_relief_20m", J="R15c", B="a", show=true)
```

This will compute a cpt under the hood and use it. But what if you want to use another cpt? Also simple,
just make one and use it in the above command. *i.e.*:

```julia
CPT = makecpt(T="-10000/8000/1000");
grdimage("@earth_relief_20m.grd", J="R15c", B="a", C=CPT, show=true)
grdimage("@earth_relief_20m", J="R15c", B="a", C=CPT, show=true)
```

The last command introduced a novelty in using the **C** option and that's where things start to be interesting.
Instead of using a previously existing cpt file, *e.g.* a file called `color.cpt` and used it as C="color.cpt",
we created a `GMTcpt` object that resides only in Julia memory space and passed it directly via the **C** option.
The same could have been done if we had the `earth_relief_20m.grd` grid in memory, which, for example sake, can
The same could have been done if we had the `earth_relief_20m` grid in memory, which, for example sake, can
be achieved by previously reading the grid file.

```julia
CPT = makecpt(T="-10000/8000/1000");
G = gmtread("@earth_relief_20m.grd");
G = gmtread("@earth_relief_20m");
grdimage(G, J="R15c", B="a", C=CPT, show=true)
```

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/clip.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
clip(cmd0::String="", arg1=[]; kwargs...)
```

Initialize or terminate polygonal clip paths

*keywords: GMT, Julia, clip paths*

Initialize or terminate polygonal clip paths

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/coast.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
coast(cmd0::String=""; kwargs...)
```

Plot continents, shorelines, rivers, and borders on maps

*keywords: GMT, Julia, geographical mapping*

Plot continents, shorelines, rivers, and borders on maps

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/contour.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
contour(cmd0::String="", arg1=nothing; kwargs...)
```

Contour plot from table data by direct triangulation

*keywords: GMT, Julia, contour plots, mapping*

Contour plot from table data by direct triangulation


Description
-----------
Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/contourf.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
contourf(cmd0::String="", arg1=nothing, arg2=nothing; kwargs...)
```

Create filled contour mapps.

*keywords: GMT, Julia, filled contour plots, visualization, mapping*

Create filled contour mapps.

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/earthregions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
res, registration="", exact=false)
```

Plots or automatically extracts grid/image over a named geographic region.

*keywords: GMT, Julia, geography*

Plots or automatically extracts grid/image over a named geographic region.

---
Many predefined regions are provided via *collections*. These collections contain names, rectangular
geographic boundaries, and access codes for various geographic areas. There are two types of collections:
Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/fill_between.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
fill_between(D1 [,D2]; kwargs...)
```

Fill the area between two horizontal curves.

*keywords: GMT, Julia, area fill plots*

Fill the area between two horizontal curves.

The curves are defined by the points (x, y1, y2) in matrix or GMTdataset `D1`. This creates one or
multiple polygons describing the filled area. Alternatively, give a second matrix, `D2` (or a scalar y=cte)
and the polygons are constructed from the intersections of curves `D1` and `D2`. The `D1` arg can
Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/filter1d.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
filter1d(cmd0::String="", arg1=[]; kwargs...)
```

Time domain filtering of 1-D data tables

*keywords: GMT, Julia, 1D filter*

Time domain filtering of 1-D data tables

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/fitcircle.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
fitcircle(cmd0::String="", arg1=nothing, kwargs...)
```

Find mean position and great [or small] circle fit to points on sphere

*keywords: GMT, Julia, fit circles*

Find mean position and great [or small] circle fit to points on sphere

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/gmtbinstats.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
gmtbinstats(cmd0::String="", arg1=nothing; kwargs...)
```

Bin spatial data and determine statistics per bin.

*keywords: GMT, Julia, hexagonal statistics*

Bin spatial data and determine statistics per bin.

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/gmtconnect.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
gmtconnect(cmd0::String="", arg1=nothing, kwargs...)
```

Connect individual lines whose end points match within tolerance

*keywords: GMT, Julia, line connect*

Connect individual lines whose end points match within tolerance

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/gmtselect.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
gmtselect(cmd0::String="", arg1=nothing, kwargs...)
```

Select data table subsets based on multiple spatial criteria

*keywords: GMT, Julia, spatial*

Select data table subsets based on multiple spatial criteria


Description
-----------
Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/gmtsimplify.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
gmtsimplify(cmd0::String="", arg1=nothing; kwargs...)
```

Line reduction using the Douglas-Peucker algorithm

*keywords: GMT, Julia, line simplification*

Line reduction using the Douglas-Peucker algorithm

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/gmtsplit.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
gmtsplit(cmd0::String="", arg1=nothing; kwargs...)
```

Split xyz[dh] data tables into individual segments

*keywords: GMT, Julia, break lines*

Split xyz[dh] data tables into individual segments

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/grd2cpt.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grd2cpt(cmd0::String="", arg1=nothing, kwargs...)
```

Make linear or histogram-equalized color palette table from grid

*keywords: GMT, Julia, histogram equalizetiond, colormaps*

Make linear or histogram-equalized color palette table from grid

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/grd2kml.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grd2kml(cmd0::String="", arg1=nothing, kwargs...)
```

Create KML image quadtree from single grid

*keywords: GMT, Julia, grid KML*

Create KML image quadtree from single grid

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/grd2xyz.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grd2xyz(cmd0::String="", arg1=nothing, kwargs...)
```

Convert grid to data table

*keywords: GMT, Julia, grid*

Convert grid to data table

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/grdclip.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grdclip(cmd0::String="", arg1=nothing; kwargs...)
```

Clip the range of grid values

*keywords: GMT, Julia, grid clip*

Clip the range of grid values

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/grdcontour.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grdcontour(cmd0::String="", arg1=nothing; kwargs...)
```

Make contour plot or map (using a projection) from a grid.

*keywords: GMT, Julia, grid contour plots, mapping*

Make contour plot or map (using a projection) from a grid.

Read a 2-D grid and produces a contour plot by tracing each contour through the grid. Various options
that affect the plotting are available. Alternatively, the *x, y, z* positions of the contour lines may be
saved to one or more output files (or memory) and no plot is produced.
Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/grdcut.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grdcut(cmd0::String="", arg1=[], kwargs...)
```

Extract subregion from a grid or image

*keywords: GMT, Julia, grid sub-region*

Extract subregion from a grid or image

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/grdedit.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grdedit(cmd0::String="", arg1=nothing, kwargs...)
```

Modify header or content of a grid

*keywords: GMT, Julia, grid edit*

Modify header or content of a grid

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/grdfill.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grdfill(cmd0::String="", arg1=nothing, kwargs...)
```

Interpolate across holes in a grid.

*keywords: GMT, Julia, grid filling*

Interpolate across holes in a grid.

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/grdgradient.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grdgradient(cmd0::String="", arg1=nothing; kwargs...)
```

Compute directional derivative or gradient from a grid

*keywords: GMT, Julia, grid gradients, derivatives*

Compute directional derivative or gradient from a grid

Description
-----------

Expand Down
6 changes: 3 additions & 3 deletions documentation/modules/grdimage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grdimage(cmd0::String=""; kwargs...)
```

Project grids or images and plot them on maps

*keywords: GMT, Julia, grid visualization, Geotiff, mapping*

Project grids or images and plot them on maps

Description
-----------

Expand Down Expand Up @@ -142,7 +142,7 @@ add coast lines, a colorbar and do an histogram equalization with 64 colors, do:
\begin{examplefig}{}
```julia
using GMT
grdimage("@earth_relief_20m.grd", proj=:Winkel, equalize=64, coast=true,
grdimage("@earth_relief_20m", proj=:Winkel, equalize=64, coast=true,
colorbar=true, shade=true, show=true)
```
\end{examplefig}
Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/grdinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grdinfo(cmd0::String="", arg1=nothing; kwargs...)
```

Reads a 2-D grid file and reports metadata and various statistics for the (x,y,z) data in the grid file

*keywords: GMT, Julia, grid info*

Reads a 2-D grid file and reports metadata and various statistics for the (x,y,z) data in the grid file


Description
-----------
Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/grdlandmask.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grdlandmask(area=, resolution=, border=, save=, maskvalues=, registration=, cores=)
```

Create a "wet-dry" mask grid from shoreline data base

*keywords: GMT, Julia, land masks, mapping*

Create a "wet-dry" mask grid from shoreline data base


Description
-----------
Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/grdmask.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grdmask(cmd0::String="", arg1=nothing, kwargs...)
```

Create mask grid from polygons or point coverage.

*keywords: GMT, Julia, masks, grid*

Create mask grid from polygons or point coverage.

Description
-----------

Expand Down
4 changes: 2 additions & 2 deletions documentation/modules/grdpaste.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
grdpaste(cmd0::String="", arg1=nothing, arg2=nothing, kwargs...)
```

Join two grids along their common edge

*keywords: GMT, Julia, grid join*

Join two grids along their common edge


Description
-----------
Expand Down
Loading

0 comments on commit 6ab9671

Please sign in to comment.