Skip to content

Commit 7d762b4

Browse files
committed
Add mosaic docs
1 parent 04bc518 commit 7d762b4

File tree

15 files changed

+187
-94
lines changed

15 files changed

+187
-94
lines changed

_assets/common_opts/opt__j.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- **j** or **spherical_dist** or **spherical** : -- *spherical=greatcirc* or *spherical=:flat* or *spherical=:ellipsoidal*\
1+
- **j** or **metric** or **spherical_dist** or **spherical** : -- *metric=greatcirc* or *spherical=:flat* or *spherical=:ellipsoidal*\
22
Determine how spherical distances are calculated in modules that support this [Default is `spherical=:greatcirc`].
33
GMT has different ways to compute distances on planetary bodies:
44

documentation/all_docs_ref/all_refs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ its use requires resorting to the \myreflink{Monolithic} mode.
4646
| | | | | | | | | | |
4747
|:-----|:----|:----|:----|:----|:----|:----|:----|:----|:----|
4848
| \myreflink{ablines} | \myreflink{append2fig} | \myreflink{blendimg!} | \myreflink{colorzones!} | \myreflink{cpt4dcw} | \myreflink{crop} | \myreflink{cubeplot} | \myreflink{imagesc} | \myreflink{inwhichpolygon} | \myreflink{lelandshade} |
49-
| \myreflink{coastlinesproj} | \myreflink{cubeslice} | \myreflink{gadm} | \myreflink{geodetic2enu} | \myreflink{info} | \myreflink{lelandshade} | \myreflink{linearfitxy} | \myreflink{getbyattrib} | \myreflink{gmtread} | \myreflink{gmtwrite} |
50-
| \myreflink{graticules} | \myreflink{gridit} | \myreflink{image_alpha!} | \myreflink{image_cpt!} | \myreflink{imshow} | \myreflink{ind2rgb} | \myreflink{mat2ds} | \myreflink{mat2grid} | \myreflink{mat2img} | \myreflink{orbits} |
51-
| \myreflink{pca} | \myreflink{plotgrid!} | \myreflink{polygonlevels} | \myreflink{rasterzones!} | \myreflink{rescale} | \myreflink{slicecube} | \myreflink{stackgrids} | \myreflink{theme} | \myreflink{wmsinfo} | \myreflink{wmsread} |
52-
| \myreflink{wmstest} | \myreflink{worldrectgrid} | \myreflink{worldrectcoast} | \myreflink{worldrectangular} | \myreflink{xyzw2cube} | | | | | |
49+
| \myreflink{coastlinesproj} | \myreflink{cubeslice} | \myreflink{gadm} | \myreflink{geocoder} | \myreflink{geodetic2enu} | \myreflink{info} | \myreflink{lelandshade} | \myreflink{linearfitxy} | \myreflink{getbyattrib} | \myreflink{gmtread} |
50+
| \myreflink{gmtwrite} | \myreflink{graticules} | \myreflink{gridit} | \myreflink{image_alpha!} | \myreflink{image_cpt!} | \myreflink{imshow} | \myreflink{ind2rgb} | \myreflink{mat2ds} | \myreflink{mat2grid} | \myreflink{mat2img} |
51+
| \myreflink{mosaic} | \myreflink{orbits} | \myreflink{pca} | \myreflink{plotgrid!} | \myreflink{polygonlevels} | \myreflink{rasterzones!} | \myreflink{rescale} | \myreflink{slicecube} | \myreflink{stackgrids} | \myreflink{theme} |
52+
| \myreflink{wmsinfo} | \myreflink{wmsread} | \myreflink{wmstest} | \myreflink{worldrectgrid} | \myreflink{worldrectcoast} | \myreflink{worldrectangular} | \myreflink{xyzw2cube} | | | |
5353

5454
## Utility functions
5555

documentation/modules/arrows.md

Lines changed: 0 additions & 65 deletions
This file was deleted.

documentation/modules/filter1d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Optional Arguments
9393
convolution. Enter *q_factor* between 0 and 1. If mean weight <
9494
*q_factor*, output is suppressed at this point [Default does not check Quality].
9595

96-
- **S** or **symetry** : -- *symetry=factor*\
96+
- **S** or **symmetry** : -- *symmetry=factor*\
9797
Checks symmetry of data about window center. Enter a factor between
9898
0 and 1. If ( (abs(n_left - n_right)) / (n_left + n_right) ) >
9999
*factor*, then no output will be given at this point [Default does not check Symmetry].

documentation/modules/gmtconnect.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ Optional Arguments
4646
segment header will be written and the segment headers of individual pieces will be written
4747
out as comments to make it possible to identify where the connected pieces came from.
4848

49-
- **L** or **linkfile** : -- *linkfile=true* **|** *linkfile="file"*\
50-
Writes link information to the specified file [gmtconnect_link.txt]. For each segment we
49+
- **L** or **links** or **linkfile** : -- *links=true* **|** *linkfile="file"*\
50+
Writes link information to the specified file [gmtconnect_link.txt] (or return its contents). For each segment we
5151
write the original segment id, and for the beginning and end point of the segment we report the
5252
id of the nearest segment, whether it is the beginning (B) or end (E) point that is closest,
5353
and the distance between those points in units determined by **tolerance**.
5454

55-
- **Q** or **list_file** : -- *list_file=true* **|** *list_file="template"*\
55+
- **Q** or **list** or **listfile** : -- *list=true* **|** *listfile="template"*\
5656
Used with **dump** to write a list file with the names of the individual output files.
5757
Optionally, append a filename template for the individual file names; this template
5858
**may** contain a C format specifier that can format an character (C or O for closed

documentation/modules/gmtconvert.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Optional Arguments
106106
combined with any other ordering scheme except **conn_method** (segmentation)
107107
and is applied at the end.
108108

109-
- **Q** or **select_num** : -- *select_num=[**~**]\ *selection* *\
109+
- **Q** or **segments** : -- *segments=[**~**]\ *selection* *\
110110
Only write segments whose number is included in *selection* and skip
111111
all others. Cannot be used with |-S|. The *selection* syntax is
112112
*range*[,*range*,...] where each *range* of items is either a single
@@ -239,7 +239,7 @@ of records within each segment, try:
239239
To extract segments 20 to 40 in steps of 2, plus segment 0 in a file, try:
240240

241241
```julia
242-
convert("lots_of_segments.txt", select_num="0,20:2:40")
242+
convert("lots_of_segments.txt", segments="0,20:2:40")
243243
```
244244

245245
To extract the attribute ELEVATION from an ogr gmt file like this:

documentation/modules/gmtselect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Optional Arguments
6464
Pass all locations that are inside the valid data area of the *grid*R, which can be either a
6565
file name or an *in-memory* grid object. Nodes that are outside are either NaN or zero.
6666

67-
- **I** or **reverse** or **revert** : -- *reverse=:c|f|l|r|s|z*\
67+
- **I** or **invert** or **reverse** : -- *invert=:c|f|l|r|s|z*\
6868
Reverses the sense of the test for each of the criteria specified:
6969

7070
- **c** - select records NOT inside any point's circle of influence.

documentation/modules/histogram.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Optional Arguments
4141
- **D** or **annot** or **annotate** or **count** : -- *annot=true* **|** *annot=(beneath=|font=|offset=|vertical=,)*\
4242
Annotate each bar with the count it represents. Add any of the following options: Use **annot=(beneath=true,)** to place the labels beneath the bars instead of above; use **annot=(font="font",)** to change to another font than the default annotation font; use **annot=(offset=val,)** to change the offset between bar and label [6p]; use **annot=(vertical=true,)** to rotate the labels from horizontal to vertical.
4343

44-
- **E** or **width** : -- *width=val* **|** *width=(width=val, offset=val)*\
44+
- **E** or **width** : -- *width=val* **|** *width=(width=val, offset=val)*\
4545
Use an alternative histogram bar width than the default set via **bin**, and optionally shift all bars by an offset. Here width is either an alternative width in data units, or the user may append a valid plot dimension unit ("c|i|p") for a fixed dimension instead. Optionally, all bins may be shifted along the axis by offset. As for width, it may be given in data units of plot dimension units by appending the relevant unit.
4646

4747
- **binmethod** or **BinMethod** : -- *binmethod=mthod*\
@@ -52,7 +52,7 @@ Optional Arguments
5252

5353
For DateTime data: "**second**", "**minute**", "**hour**", "**day**", "**week**", "**month**" or "**year**"
5454

55-
- **F** or **center** : -- *center=true*\
55+
- **F** or **center** : -- *center=true*\
5656
Center bin on each value. [Default is left edge].
5757

5858
- **full_histo** : -- *full_histo=true*\

documentation/utilities/geocoder.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# geocoder
2+
3+
```julia
4+
D = geocoder(address::String; options=String[])
5+
```
6+
7+
Get the geocoder info for a given address by calling the GDAL/OGR
8+
[geocoding functions](https://gdal.org/doxygen/ogr__geocoding_8h.html).
9+
10+
### Arguments
11+
- `address`: The string to geocode.
12+
13+
- `options`: These are the options passed to GDAL and in the form of a vector of strings. For example,
14+
the default is equivalent to `options=["SERVICE", "OSM_NOMINATIM"]`.
15+
- ``"CACHE_FILE"`` : Defaults to ``"ogr_geocode_cache.sqlite"`` (or otherwise ``"ogr_geocode_cache.csv"`` if the
16+
SQLite driver isn't available). Might be any CSV, SQLite or PostgreSQL datasource.
17+
- ``"READ_CACHE"`` : ``"TRUE"`` (default) or "FALSE"
18+
- ``"WRITE_CACHE"`` : ``"TRUE"`` (default) or "FALSE"
19+
- ``"SERVICE"``: ``"OSM_NOMINATIM"`` (default), ``"MAPQUEST_NOMINATIM"``, ``"YAHOO"``, ``"GEONAMES"``,
20+
``"BING"`` or other value.
21+
Note: ``"YAHOO"`` is no longer available as a free service.
22+
- ``"EMAIL"``: used by ``"OSM_NOMINATIM"``. Optional, but recommended.
23+
- ``"USERNAME"``: used by ``"GEONAMES"``. Compulsory in that case.
24+
- ``"KEY"``: used by BING. Compulsory in that case.
25+
- ``"APPLICATION"``: used to set the User-Agent MIME header. Defaults to GDAL/OGR version string.
26+
- ``"LANGUAGE"``: used to set the Accept-Language MIME header. Preferred language order for showing search results.
27+
- ``"DELAY"``: minimum delay, in second, between 2 consecutive queries. Defaults to 1.0.
28+
- ``"QUERY_TEMPLATE"``: URL template for GET requests. Must contain one and only one occurrence of %s in it.
29+
If not specified, for ``["SERVICE", "OSM_NOMINATIM"]``, ``"MAPQUEST_NOMINATIM"``, ``"YAHOO"``, ``"GEONAMES"``
30+
or ``"BING"``, the URL template is hard-coded.
31+
- ``"REVERSE_QUERY_TEMPLATE"``: URL template for GET requests for reverse geocoding. Must contain one and only
32+
one occurrence of {lon} and {lat} in it. If not specified, for ``["SERVICE", "OSM_NOMINATIM"]``,
33+
``"MAPQUEST_NOMINATIM"``, ``"YAHOO"``, ``"GEONAMES"`` or ``"BING"``, the URL template is hard-coded.
34+
35+
36+
Returns
37+
-------
38+
A \myreflink{GMTdataset} with the longitude, latitude, and full attribute dictionary returned by the geocoder for
39+
the input address. This dataset contains only one point but geocoding service resturns also a BoundingBox
40+
containing that point. When the `address` is very specific that BB is tiny arround the point, but when the
41+
query is general (for example,just the name of a city or even a country), the BB is large and may be very
42+
useful to use in the `mosaic` program. For that purpose, the returned BB is sored in the \myreflink{GMTdatset}
43+
``ds_bbox`` field.
44+
45+
Examples
46+
--------
47+
48+
```julia
49+
geocoder("Paris, France")
50+
```
51+
52+
See Also
53+
--------
54+
55+
\myreflink{mosaic}

documentation/utilities/gridit.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
G = gridit(fname="", indata=nothing; method="surface", gdopts="", proj="", epsg=0, kw...)
55
```
66

7-
*keywords: GMT, Julia, gris interpolations, GDAL interpolate*
7+
*keywords: GMT, Julia, 2D interpolations, grid interpolations, GDAL interpolate*
88

99
Wrapper function to interpolate scattered data into a grid.
1010
Interpolation methods may be those of GMT and GDAL (gdal_grid).
@@ -18,12 +18,12 @@ Interpolation methods may be those of GMT and GDAL (gdal_grid).
1818
"nearneighbor", "sphtriangulate", "greenspline". The arguments: "mean", "median", "mode", "std", "highest",
1919
"lowest" will compute those amounts inside each *rectangular* cell.
2020

21-
- Or (GDAL): "invdist", "invdistnn", "average", "nearest", "linear", "minimum", "maximum", "range",
22-
"count", "average_distance", "average_distance_pts". See https://gdal.org/programs/gdal_grid.html#gdal-grid
21+
- Or (GDAL): "invdist", "invdistnn", "average", "nearest", "linear", "minimum", "maximum", "range",
22+
"count", "average_distance", "average_distance_pts". See https://gdal.org/programs/gdal_grid.html#gdal-grid
2323

24-
- Note that there is some overlap between the diverse methods. For example, the GMT's \myreflink{nearneighbor}
25-
and GDAL's ``invdist`` apply the same algorithm (the Inverse Distance Weight) but they difer on how
26-
to select the points to do the weighted average.
24+
- Note that there is some overlap between the diverse methods. For example, the GMT's \myreflink{nearneighbor}
25+
and GDAL's `invdist` apply the same algorithm (the Inverse Distance Weight) but they difer on how
26+
to select the points to do the weighted average.
2727

2828
- `gdopts`: List of options, in the form of a single string, accepted by the gdal_grid utility. This option
2929
only applies to the GDAL methods.

0 commit comments

Comments
 (0)