Index

Functions

GMT.arrowsFunction
arrows(cmd0::String="", arg1=nothing; arrow=(...), kwargs...)

Plots an arrow field. When the keyword arrow=(...) or vector=(...) is used, the direction (in degrees counter-clockwise from horizontal) and length must be found in columns 3 and 4, and size, if not specified on the command-line, should be present in column 5. The size is the length of the vector head. Vector stem width is set by option pen or line_attrib.

The vecmap=(...) variation is similar to above except azimuth (in degrees east of north) should be given instead of direction. The azimuth will be mapped into an angle based on the chosen map projection. If length is not in plot units but in arbitrary user units (e.g., a rate in mm/yr) then you can use the input_col option to scale the corresponding column via the +sscale modifier.

The geovec=(...) or geovector=(...) keywords plot geovectors. In geovectors azimuth (in degrees east from north) and geographical length must be found in columns 3 and 4. The size is the length of the vector head. Vector width is set by pen or line_attrib. Note: Geovector stems are drawn as thin filled polygons and hence pen attributes like dashed and dotted are not available. For allowable geographical units, see the units=() option.

The full arrow options list can be consulted at Vector Attributes

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • W | pen | line_attrib :: [Type => Str]

    Set pen attributes for lines or the outline of symbols (http://docs.generic-mapping-tools.org/latest/plot.html#w)

Example:

arrows([0 8.2 0 6], limits=(-2,4,0,9), arrow=(len=2,stop=1,shape=0.5,fill=:red), axis=:a, pen="6p", show=true)
GMT.barFunction
bar(cmd0::String="", arg1=nothing; kwargs...)

Reads a file or (x,y) pairs and plots vertical bars extending from base to y.

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • fill :: [Type => Str –

    Select color or pattern for filling the bars (http://docs.generic-mapping-tools.org/latest/plot.html#g)

  • base | bottom :: [Type => Str | Num] $key=value$

    By default, base = ymin. Use this option to change that value. If base is not appended then we read it. from the last input data column.

  • size | width :: [Type => Str | Num] $key=value$

    The size or width is the bar width. Append u if size is in x-units. When width is used the default is plot-distance units.

Example:

bar(sort(randn(10)), fill=:black, axis=:auto, show=true)
GMT.bar3Function
bar3(cmd0::String="", arg1=nothing; kwargs...)

Read a grid file, a grid or a MxN matrix and plots vertical bars extending from base to z.

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • fill :: [Type => Str] $key=color$

    Select color or pattern for filling the bars (http://docs.generic-mapping-tools.org/latest/plot.html#g)

  • base :: [Type => Str | Num] $key=value$

    By default, base = ymin. Use this option to change that value. If base is not appended then we read it.

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

Example:

G = gmt("grdmath -R-15/15/-15/15 -I0.5 X Y HYPOT DUP 2 MUL PI MUL 8 DIV COS EXCH NEG 10 DIV EXP MUL =");
bar3(G, lw=:thinnest, show=true)
GMT.basemapFunction
basemap(cmd0::String=""; kwargs...)

Plot base maps and frames.

Full option list at psbasemap

Parameters

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • A | polygon :: [Type => Str | []]

    No plotting is performed. Instead, we determine the geographical coordinates of the polygon outline for the (possibly oblique) rectangular map domain. (http://docs.generic-mapping-tools.org/latest/basemap.html#a)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • D | inset | inset_box :: [Type => Str]

    Draw a simple map insert box on the map. Requires -F. (http://docs.generic-mapping-tools.org/latest/basemap.html#d)

  • F | box :: [Type => Str]

    Without further options, draws a rectangular border around any map insert (D), map scale (L) or map rose (T) (http://docs.generic-mapping-tools.org/latest/basemap.html#f)

  • Jz | zscale | zsize :: [Type => String]

  • L | map_scale :: [Type => Str]

    Draw a map scale. (http://docs.generic-mapping-tools.org/latest/basemap.html#l)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • Td | rose :: [Type => Str]

    Draws a map directional rose on the map at the location defined by the reference and anchor points. (http://docs.generic-mapping-tools.org/latest/basemap.html#t)

  • Tm | compass :: [Type => Str]

    Draws a map magnetic rose on the map at the location defined by the reference and anchor points. (http://docs.generic-mapping-tools.org/latest/basemap.html#t)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • bo | binary_out :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary output. (http://docs.generic-mapping-tools.org/latest/gmt.html#bo-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

GMT.blockmeanFunction
blockmean(cmd0::String="", arg1=nothing; kwargs...)

Block average (x,y,z) data tables by L2 norm.

Full option list at blockmean

Parameters

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • I | inc :: [Type => Str | Number]

    x_inc [and optionally y_inc] is the grid spacing. (http://docs.generic-mapping-tools.org/latest/blockmean.html#i)

  • A | fields :: [Type => Str]

    Select which fields to write to individual grids. Append comma-separated codes for available fields: z (the mean data z, but see -S), s (standard deviation), l (lowest value), h (highest value) and w (the output weight; requires -W). [Default is just z]. (http://docs.generic-mapping-tools.org/latest/blockmean.html#a)

  • C | center :: [Type => Bool]

    Use the center of the block as the output location [Default uses the mean location]. Not used when -A (http://docs.generic-mapping-tools.org/latest/blockmean.html#c)

  • E | extend :: [Type => Str | []]

    Provide Extended report which includes s (the standard deviation about the mean), l, the lowest value, and h, the high value for each block. Output order becomes x,y,z,s,l,h[,w]. [Default outputs x,y,z[,w]. See -W for w output. If -Ep is used we assume weights are 1/(sigma squared) and s becomes the propagated error of the mean. (http://docs.generic-mapping-tools.org/latest/blockmean.html#e)

  • G | outgrid :: [Type => Str | []]

    Write one or more fields directly to grids on disk; no table data are return. If more than one fields are specified via A then grdfile must contain the format flag %s so that we can embed the field code in the file names. If not provided but A is used, return 1 or more GMTgrid type(s). (http://docs.generic-mapping-tools.org/latest/blockmean.html#g)

  • S :: [Type => Str | Symb]

    Use S=:n to report the number of points inside each block, S=:s to report the sum of all z-values inside a block, S=:w to report the sum of weights [Default (or S=:m reports mean value]. (http://docs.generic-mapping-tools.org/latest/blockmean.html#s)

  • npts | counts :: [Type => Any]

    Report the number of points inside each block

  • sum :: [Type => Any]

    Report the sum of all z-values inside each block

  • sum_weights :: [Type => Any]

    Report the the sum of weights

  • W | weights :: [Type => Str | []]

    Unweighted input and output have 3 columns x,y,z; Weighted i/o has 4 columns x,y,z,w. Weights can be used in input to construct weighted mean values for each block. (http://docs.generic-mapping-tools.org/latest/blockmean.html#w)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.blockmedianFunction
blockmedian(cmd0::String="", arg1=nothing; kwargs...)

Block average (x,y,z) data tables by L1 norm.

Full option list at blockmedian

GMT.blockmodeFunction
blockmode(cmd0::String="", arg1=nothing; kwargs...)

Block average (x,y,z) data tables by mode estimation.

Full option list at blockmode

GMT.clipFunction
clip(cmd0::String="", arg1=nothing; kwargs...)

Reads (length,azimuth) pairs from file and plot a windclip diagram.

Full option list at psclip

Parameters

  • C | endclippath :: [Type => Bool]

    Mark end of existing clip path. No input file is needed. (http://docs.generic-mapping-tools.org/latest/psclip.html#c)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • A | inc :: [Type => Str or []]

    By default, geographic line segments are connected as great circle arcs. To connect them as straight lines, use A (http://docs.generic-mapping-tools.org/latest/psclip.html#a)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • Jz | zscale | zsize :: [Type => String]

  • N | invert :: [Type => Bool]

    Invert the sense of the test, i.e., clip regions where there is data coverage. (http://docs.generic-mapping-tools.org/latest/psclip.html#n)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • T | clip_limits :: [Type => Bool]

    Rather than read any input files, simply turn on clipping for the current map region. (http://docs.generic-mapping-tools.org/latest/psclip.html#t)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.coastFunction
coast(cmd0::String=""; kwargs...)

Plot continents, shorelines, rivers, and borders on maps. Plots grayshaded, colored, or textured land-masses [or water-masses] on maps and [optionally] draws coastlines, rivers, and political boundaries. A map projection must be supplied.

Full option list at coast

Parameters

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • A | area :: [Type => Str or Number]

    Features with an area smaller than minarea in km^2 or of hierarchical level that is lower than minlevel or higher than max_level will not be plotted. (http://docs.generic-mapping-tools.org/latest/coast.html#a)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | river_fill :: [Type => Str]

    Set the shade, color, or pattern for lakes and river-lakes. (http://docs.generic-mapping-tools.org/latest/coast.html#c)

  • D | res | resolution :: [Type => Str] $Arg = c|l|i|h|f|a$

    Selects the resolution of the data set to use ((f)ull, (h)igh, (i)ntermediate, (l)ow, (c)rude), or (a)uto). (http://docs.generic-mapping-tools.org/latest/coast.html#d)

  • E | DCW :: [Type => Str]

    Select painting or dumping country polygons from the Digital Chart of the World. (http://docs.generic-mapping-tools.org/latest/coast.html#e)

    • Tuple("code", Str); Tuple("code" [,"fill"], (pen)); Tuple((...),(...),...)
    • ex: ("PT",(0.5,"red","–")); (("PT","gblue",(0.5,"red"),("ES",(0.5,"yellow")))
  • F | box :: [Type => Str]

    Draws a rectangular border around the map scale or rose. (http://docs.generic-mapping-tools.org/latest/coast.html#f)

  • G | land :: [Type => Str]

    Select filling or clipping of “dry” areas. (http://docs.generic-mapping-tools.org/latest/coast.html#g)

  • I | rivers :: [Type => Str]

    Draw rivers. Specify the type of rivers and [optionally] append pen attributes. (http://docs.generic-mapping-tools.org/latest/coast.html#i)

  • L | map_scale :: [Type => Str]

    Draw a map scale. (http://docs.generic-mapping-tools.org/latest/coast.html#l)

  • M | dump :: [Type => Str]

    Dumps a single multisegment ASCII output. No plotting occurs. (http://docs.generic-mapping-tools.org/latest/coast.html#m)

  • N | borders :: [Type => Str]

    Draw political boundaries. Specify the type of boundary and [optionally] append pen attributes (http://docs.generic-mapping-tools.org/latest/coast.html#n)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • clip :: [Type => Str] $Arg = land|water|end$

    To clip land do clip=:land, clip=:water clips water. Use end to mark end of existing clip path. No projection information is needed. (http://docs.generic-mapping-tools.org/latest/coast.html#q)

  • S | water | ocean :: [Type => Str]

    Select filling or clipping of “wet” areas. (http://docs.generic-mapping-tools.org/latest/coast.html#s)

  • Td | rose` :: [Type => Str]

    Draws a map directional rose on the map at the location defined by the reference and anchor points. (http://docs.generic-mapping-tools.org/latest/coast.html#t)

  • Tm | compass :: [Type => Str]

    Draws a map magnetic rose on the map at the location defined by the reference and anchor points. (http://docs.generic-mapping-tools.org/latest/coast.html#t)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • W | shore :: [Type => Str] Draw shorelines [Default is no shorelines]. Append pen attributes. (http://docs.generic-mapping-tools.org/latest/coast.html#w)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • bo | binary_out :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary output. (http://docs.generic-mapping-tools.org/latest/gmt.html#bo-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

GMT.colorbarFunction
colorbar(cmd0::String="", arg1=nothing; kwargs...)

Plots gray scales or color scales on maps.

Full option list at psscale

  • D | pos | position :: [Type => Str]

    Defines the reference point on the map for the color scale using one of four coordinate systems. (http://docs.generic-mapping-tools.org/latest/psscale.html#d)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | color | cmap :: [Type => Str] $Arg = [cpt |master[+izinc] |color1,color2[,*color3*,…]]$

    Give a CPT name or specify -Ccolor1,color2[,color3,...] to build a linear continuous CPT from those colors automatically. (http://docs.generic-mapping-tools.org/latest/grdimage.html#c)

  • F | box :: [Type => Str]

    Draws a rectangular border around the scale. (http://docs.generic-mapping-tools.org/latest/psscale.html#f)

  • G | truncate :: [Type => Str]

    Truncate the incoming CPT so that the lowest and highest z-levels are to zlo and zhi. (http://docs.generic-mapping-tools.org/latest/psscale.html#g)

  • I | shade :: [Type => Number | Str]

    Add illumination effects. (http://docs.generic-mapping-tools.org/latest/psscale.html#i)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • Jz | zscale | zsize :: [Type => String]

  • L | equal | equal_size :: [Type => Str | Bool] Arg = [i][gap]

    Gives equal-sized color rectangles. Default scales rectangles according to the z-range in the CPT. (http://docs.generic-mapping-tools.org/latest/psscale.html#l)

  • M | monochrome :: [Type => Bool]

    Force conversion to monochrome image using the (television) YIQ transformation. (http://docs.generic-mapping-tools.org/latest/psscale.html#m)

  • N | dpi :: [Type => Str | Number]

    Controls how the color scale is represented by the PostScript language. (http://docs.generic-mapping-tools.org/latest/psscale.html#n)

  • Q | log :: [Type => Str]

    Selects a logarithmic interpolation scheme [Default is linear]. (http://docs.generic-mapping-tools.org/latest/psscale.html#q)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | nolines :: [Type => Bool | []]

    Do not separate different color intervals with black grid lines.

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • W | zscale :: [Type => Number]

    Multiply all z-values in the CPT by the provided scale. (http://docs.generic-mapping-tools.org/latest/psscale.html#w)

  • Z | zfile :: [Type => Str]

    File with colorbar-width per color entry. (http://docs.generic-mapping-tools.org/latest/psscale.html#z)

GMT.contourFunction
contour(cmd0::String="", arg1=nothing; kwargs...)

Reads a table data and produces a raw contour plot by triangulation.

Full option list at contour

Parameters

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • A | annot :: [Type => Str | Number] $Arg = [-|[+]annot_int][labelinfo]$

    annot_int is annotation interval in data units; it is ignored if contour levels are given in a file. (http://docs.generic-mapping-tools.org/latest/contour.html#a)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | cont | contour | contours | levels :: [Type => Str | Number | GMTcpt] $Arg = [+]cont_int$

    Contours to be drawn may be specified in one of three possible ways. (http://docs.generic-mapping-tools.org/latest/contour.html#c)

  • D | dump :: [Type => Str]

    Dump contours as data line segments; no plotting takes place. (http://docs.generic-mapping-tools.org/latest/contour.html#d)

  • E | index :: [Type => Str | Mx3 array]

    Give name of file with network information. Each record must contain triplets of node numbers for a triangle. (http://docs.generic-mapping-tools.org/latest/contour.html#e)

  • G | labels :: [Type => Str]

    Controls the placement of labels along the quoted lines. (http://docs.generic-mapping-tools.org/latest/contour.html#g)

  • I | fill | colorize :: [Type => Bool]

    Color the triangles using the color scale provided via C. (http://docs.generic-mapping-tools.org/latest/contour.html#i)

  • Jz | zscale | zsize :: [Type => String]

  • L | mesh :: [Type => Str | Number]

    Draw the underlying triangular mesh using the specified pen attributes (if not provided, use default pen) (http://docs.generic-mapping-tools.org/latest/contour.html#l)

  • N | no_clip :: [Type => Bool]

    Do NOT clip contours or image at the boundaries [Default will clip to fit inside region]. (http://docs.generic-mapping-tools.org/latest/contour.html#n)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • Q | cut :: [Type => Str | Number] $Arg = [cut[unit]][+z]]$

    Do not draw contours with less than cut number of points. (http://docs.generic-mapping-tools.org/latest/contour.html#q)

  • S | skip :: [Type => Str | []] $Arg = [p|t]$

    Skip all input xyz points that fall outside the region. (http://docs.generic-mapping-tools.org/latest/contour.html#s)

  • T | ticks :: [Type => Str] $Arg = [+|-][+a][+dgap[/length]][+l[labels]]$

    Draw tick marks pointing in the downward direction every gap along the innermost closed contours. (http://docs.generic-mapping-tools.org/latest/contour.html#t)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • W | pen :: [Type => Str | Number]

    Sets the attributes for the particular line. (http://docs.generic-mapping-tools.org/latest/contour.html#w)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • Z | scale :: [Type => Str]

    Use to subtract shift from the data and multiply the results by factor before contouring starts. (http://docs.generic-mapping-tools.org/latest/contour.html#z)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • bo | binary_out :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary output. (http://docs.generic-mapping-tools.org/latest/gmt.html#bo-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • do | nodata_out :: [Type => Str or Number] $Arg = nodata$

    Examine all output columns and if any item equals NAN substitute it with the chosen missing data value. (http://docs.generic-mapping-tools.org/latest/gmt.html#do-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.contourfFunction
contourf(cmd0::String="", arg1=nothing; kwargs...)

Reads one or more ASCII [or binary] files (or standard input) containing x,y[,z] and performs Delaunay triangulation, i.e., it find how the points should be connected to give the most equilateral triangulation possible.

Full option list at triangulate

Parameters

  • A | annot :: [Type => Str | Number] $Arg = [-|[+]annot_int][labelinfo]$

    annot_int is annotation interval in data units; it is ignored if contour levels are given in a file. (http://docs.generic-mapping-tools.org/latest/contour.html#a)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | cont | contour | contours | levels :: [Type => Str | Number | GMTcpt] $Arg = [+]cont_int$

    Contours to be drawn may be specified in one of three possible ways. (http://docs.generic-mapping-tools.org/latest/grdcontour.html#c)

  • E | index :: [Type => Str | Mx3 array]

    Give name of file with network information. Each record must contain triplets of node numbers for a triangle. (http://docs.generic-mapping-tools.org/latest/contour.html#e)

  • G | labels :: [Type => Str]

    Controls the placement of labels along the quoted lines. (http://docs.generic-mapping-tools.org/latest/contour.html#g)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • Q | cut :: [Type => Str | Number] $Arg = [cut[unit]][+z]]$

    Do not draw contours with less than cut number of points. (http://docs.generic-mapping-tools.org/latest/contour.html#q)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | skip :: [Type => Str | []] $Arg = [p|t]$

    Skip all input xyz points that fall outside the region (Used when input data is a table). (http://docs.generic-mapping-tools.org/latest/contour.html#s)

  • S | smooth :: [Type => Number]

    Used to resample the contour lines at roughly every (gridbox_size/smoothfactor) interval. (Used when input data is a grid) (http://docs.generic-mapping-tools.org/latest/grdcontour.html#s)

  • T | ticks :: [Type => Str] $Arg = [+|-][+a][+dgap[/length]][+l[labels]]$

    Draw tick marks pointing in the downward direction every gap along the innermost closed contours. (http://docs.generic-mapping-tools.org/latest/contour.html#t)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • W | pen :: [Type => Str | Number]

    Sets the attributes for the particular line. (http://docs.generic-mapping-tools.org/latest/contour.html#w)

  • Z | xyz | triplets :: [Type => Bool]

    (http://docs.generic-mapping-tools.org/latest/triangulate.html#z)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • bo | binary_out :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary output. (http://docs.generic-mapping-tools.org/latest/gmt.html#bo-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

Examples

    G = GMT.peaks();
    C = makecpt(T=(-7,9,2));

    contourf(G, fmt=:png, show=1)
    contourf(G, C=[-2, 0, 2, 5], fmt=:png, show=1)
    contourf(G, C, contour=[-2, 0, 2, 5], fmt=:png, show=1)
    contourf(G, C, annot=[-2, 0, 2, 5], fmt=:png, show=1)
    contourf(G, C, annot=2, fmt=:png, show=1)
    contourf(G, C, contour=1, annot=[-2, 0, 2, 5], fmt=:png, show=1)
    contourf(G, C, annot=:none, fmt=:png, show=1)

    d = [0 2 5; 1 4 5; 2 0.5 5; 3 3 9; 4 4.5 5; 4.2 1.2 5; 6 3 1; 8 1 5; 9 4.5 5];
    contourf(d, limits=(-0.5,9.5,0,5), pen=0.25, labels=(line=(:min,:max),), fmt=:png, show=1)
GMT.coupeFunction
coupe(cmd0::String="", arg1=nothing; kwargs...)

Plot cross-sections of focal mechanisms.

Full option list at pscoupe. Essentially the same as meca plus A. Run gmthelp(coupe) to see the list.

GMT.cpt4dcwMethod

C = cpt4dcw(codes::String, vals::Vector{<:Number}; kwargs...)

Create a categorical CPT to use with the output of `coast(dcw=...)` to make Choropleth maps.
`codes` is a comma separated string with two chars country codes (ex: "PT,ES,FR,IT")
`vals` a vector with same size as number of country codes, with the values used to colorize the countries
Optionally provide a CPT in the kwarg `cmap=CPT` with a range sufficient to tansform the `vals` in colors.
As an alternative to the above provide a `makecpt` type `range` numeric vector to create a CPT.
If none of these are provided a default `CPT = makecpt(range=(0,255,1))` will be used.
GMT.earthtideFunction
earthtide(cmd0::String=""; kwargs...)

Compute grids or time-series of solid Earth tides.

Full option list at earthtide

	G = earthtide();
	imshow(G)
GMT.filter1dFunction
filter1d(cmd0::String="", arg1=nothing, kwargs...)

Time domain filtering of 1-D data tables.

Full option list at filter1d

Parameters

  • F | filter_type :: [Type => Str] Arg = type width[modifiers]

    Sets the filter type. Choose among convolution and non-convolution filters. Append the filter code followed by the full filter width in same units as time column. (http://docs.generic-mapping-tools.org/latest/filter1d.html#f)

  • D | inc :: [Type => Number] Arg = increment

    $increment$ is used when series is NOT equidistantly sampled. Then increment will be the abscissae resolution. (http://docs.generic-mapping-tools.org/latest/filter1d.html#d)

  • E | ends :: [Type => Bool | []]

    Include Ends of time series in output. Default loses half the filter-width of data at each end. (http://docs.generic-mapping-tools.org/latest/filter1d.html#e)

  • L | gap_width :: [Type => Number | Str] Arg = width

    Checks for Lack of data condition. If input data has a gap exceeding width then no output will be given at that point. (http://docs.generic-mapping-tools.org/latest/filter1d.html#l)

  • N | time_col :: [Type => Int] Arg = t_col

    Indicates which column contains the independent variable (time). The left-most column is # 0, the right-most is # (n_cols - 1). [Default is 0]. (http://docs.generic-mapping-tools.org/latest/filter1d.html#n)

  • Q | quality :: [Type => Number] Arg = q_factor

    Assess Quality of output value by checking mean weight in convolution. Enter q_factor between 0 and 1. (http://docs.generic-mapping-tools.org/latest/filter1d.html#q)

  • S | symetry :: [Type => Number] Arg = symmetry_factor

    Checks symmetry of data about window center. Enter a factor between 0 and 1. (http://docs.generic-mapping-tools.org/latest/filter1d.html#s)

  • T | equi_space :: [Type => List | Str] Arg = [min/max/]inc[+a|n]

    Make evenly spaced time-steps from min to max by inc [Default uses input times]. (http://docs.generic-mapping-tools.org/latest/filter1d.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.fitcircleFunction
fitcircle(cmd0::String="", arg1=nothing, kwargs...)

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

Full option list at fitcircle

Parameters

  • L | norm :: [Type => Int | []]

    Specify the desired norm as 1 or 2, or use [] or 3 to see both solutions. (http://docs.generic-mapping-tools.org/latest/fitcircle.html#l)

  • F | coord | coordinates :: [Type => Str] Arg = f|m|n|s|c

    Only return data coordinates, and append Arg to specify which coordinates you would like. (http://docs.generic-mapping-tools.org/latest/fitcircle.html#f)

  • S | symetry :: [Type => Number] Arg = symmetry_factor

    Attempt to (http://docs.generic-mapping-tools.org/latest/fitcircle.html#s)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.geodetic2enuMethod

Convert from geodetic coordinates to local East, North, Up (ENU) coordinates.

GMT.gmtMethod

Call a GMT module. Usage:

gmt("module_name `options`")

Example. To plot a simple map of Iberia in the postscript file nammed lixo.ps do:

gmt("pscoast -R-10/0/35/45 -B1 -W1 -Gbrown -JM14c -P -V > lixo.ps")
GMT.gmt2kmlFunction
gmt2kml(cmd0::String="", arg1=nothing, kwargs...)

Convert GMT data tables to KML files for Google Earth

Full option list at gmt2kml

Parameters

  • A | altitude_mode :: [Type => Str] $Arg = a|g|s[alt|xscale]$

    Select one of three altitude modes recognized by Google Earth that determines the altitude (in m) of the feature: $a$ absolute altitude, $g$ altitude relative to sea surface or ground, $s$ altitude relative to seafloor or ground. (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#a)

  • C | color | cmap :: [Type => Str] $Arg = [cpt |master[+izinc] |color1,color2[,*color3*,…]]$

    Give a CPT name or specify -Ccolor1,color2[,color3,...] to build a linear continuous CPT from those colors automatically. (http://docs.generic-mapping-tools.org/latest/grdimage.html#c)

  • D | descript :: [Type => Str] $Arg = descriptfile$

    File with HTML snippets that will be included as part of the main description content for the KML file. (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#d)

  • E | extrude :: [Type => Str | []] $Arg = [altitude]$

    Extrude feature down to ground level. (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#e)

  • F | feature_type :: [Type => Str] $Arg = e|s|t|l|p|w$

    Sets the feature type. Choose from points (event, symbol, or timespan), line, polygon, or wiggle. (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#f)

  • G | fill :: [Type => Str] $Arg = f|nfill$

    Sets color fill (G=:f) or label font color (G=:n). (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#g)

  • I | icon :: [Type => Str] $Arg = icon$

    Specify the URL to an alternative icon that should be used for the symbol [Default is a Google Earth circle]. (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#i)

  • K | not_finished :: [Type => Bool]

    Allow more KML code to be appended to the output later [finalize the KML file]. (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#k)

  • L | extended_data :: [Type => Str] $Arg = name1,name2,…$

    Extended data given. Append one or more column names separated by commas. (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#l)

  • N | feature_name :: [Type => Str | Number] $Arg = [t|col |name_template|name]$

    By default, if segment headers contain a -L”label string” then we use that for the name of the KML feature. (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#n)

  • O | overlay :: [Type => Bool]

    Append KML code to an existing KML file [initialize a new KML file]. (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#o)

  • Qa | wiggles :: [Type => Str] $Arg = azimuth$

    Option in support of wiggle plots (requires F=:w). (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#q)

  • Qs | wiggle_scale :: [Type => Str | Number] $Arg = scale[unit]$

    Required setting for wiggle plots (i.e., it requires F=:w). Sets a wiggle scale in z-data units per the user’s units (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#q)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | scale :: [Type => Str] $Arg = c|nscale$

    Scale icons or labels. Here, S=:c sets a scale for the symbol icon, whereas S=:n sets a scale for the name labels (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#s)

  • T | title :: [Type => Str] $Arg = title[/foldername]$

    Sets the document title [default is unset]. Optionally, append /FolderName; (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#t)

  • W | pen :: [Type => Str | []] $Arg = [pen][attr]$

    Set pen attributes for lines, wiggles or polygon outlines. (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#w)

  • Z | attrib :: [Type => Str] $Arg = args$

    Set one or more attributes of the Document and Region tags. (http://docs.generic-mapping-tools.org/latest/gmt2kml.html#z)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.gmtbeginFunction
gmtbegin(name::String=""; fmt)

Start a GMT session in modern mode (GMT >= 6). 'name' contains the figure name with or without extension. If an extension is used (e.g. "map.pdf") it is used to select the image format.

As an alternative use 'fmt' as a string or symbol containing the format (ps, pdf, png, PNG, tif, jpg, eps).

By default name="GMTplot" and fmt="ps"

GMT.gmtconnectFunction
gmtconnect(cmd0::String="", arg1=nothing, kwargs...)

Connect individual lines whose end points match within tolerance

Full option list at gmtconnect

Parameters

  • C | closed :: [Type => Str | []] Arg = [closed]

    Write all the closed polygons to closed [gmtgmtconnect_closed.txt] and return all other segments as they are. No gmtconnection takes place. (http://docs.generic-mapping-tools.org/latest/gmtconnect.html#c)

  • D | dump :: [Type => Str | []] Arg = [template]

    For multiple segment data, dump each segment to a separate output file (http://docs.generic-mapping-tools.org/latest/gmtconnect.html#d)

  • L | linkfile :: [Type => Str | []] Arg = [linkfile]

    Writes the link information to the specified file [gmtgmtconnect_link.txt]. (http://docs.generic-mapping-tools.org/latest/gmtconnect.html#l)

  • Q | list_file :: [Type => Str | []] Arg = [listfile]

    Used with D to write a list file with the names of the individual output files. (http://docs.generic-mapping-tools.org/latest/gmtconnect.html#q)

  • T | tolerance :: [Type => Str | List] Arg = [cutoff[unit][/nn_dist]]

    Specifies the separation tolerance in the data coordinate units [0]; append distance unit. If two lines has end-points that are closer than this cutoff they will be joined. (http://docs.generic-mapping-tools.org/latest/gmtconnect.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.gmtconvertFunction
gmtconvert(cmd0::String="", arg1=nothing, kwargs...)

Convert, Paste, and/or Extract columns from data tables

Full option list at gmtconvert

Parameters

  • A | h_cat :: [Type => Str | []]

    The records from the input files should be pasted horizontally, not appended vertically [Default]. (http://docs.generic-mapping-tools.org/latest/gmtconvert.html#a)

  • C | n_records :: [Type => Str] $Arg = [+lmin][+umax][+i]$

    Only output segments whose number of records matches your given criteria: (http://docs.generic-mapping-tools.org/latest/gmtconvert.html#c)

  • D | dump :: [Type => Str | []] $Arg = [template[+oorig]]$

    For multiple segment data, dump each segment to a separate output file. (http://docs.generic-mapping-tools.org/latest/gmtconvert.html#d)

  • E | first_last :: [Type => Str | []] $Arg = [f|l|m|Mstride]$

    Only extract the first and last record for each segment of interest. (http://docs.generic-mapping-tools.org/latest/gmtconvert.html#e)

  • F | conn_method :: [Type => Str | []] $Arg = [c|n|r|v][refpoint]$

    Alter the way points are connected (by specifying a scheme) and data are grouped (by specifying a method). (http://docs.generic-mapping-tools.org/latest/gmtconvert.html#f)

  • I | invert | reverse :: [Type => Str | Bool] $Arg = [tsr]$

    Invert the order of items, i.e., output the items in reverse order, starting with the last and ending up with the first item. (http://docs.generic-mapping-tools.org/latest/gmtconvert.html#i)

  • L | list_only :: -[Type => Bool]

    Only output a listing of all segment header records and no data records. (http://docs.generic-mapping-tools.org/latest/gmtconvert.html#l)

  • N | sort :: [Type => Str | Number] $Arg = [-|+]col$

    Numerically sort each segment based on values in column col. (http://docs.generic-mapping-tools.org/latest/gmtconvert.html#n)

  • Q | select_num :: [Type => Str] $Arg = [~]selection$

    Only write segments whose number is included in $selection$ and skip all others. (http://docs.generic-mapping-tools.org/latest/gmtconvert.html#q)

  • S | select_hdr :: [Type => Str] $Arg = [~]”search string” or [~]/regexp/[i]$

    Only output those segments whose header record contains the specified text string. (http://docs.generic-mapping-tools.org/latest/gmtconvert.html#s)

  • T | suppress | skip :: [Type => Str | []] $Arg = [h|d]$

    Suppress the writing of certain records on output. Append h to suppress segment headers [Default] or d to suppress duplicate data records. Use T=:hd to suppress both types of records. (http://docs.generic-mapping-tools.org/latest/gmtconvert.html#t)

  • W | word2num :: [Type => Str | []] $Arg = [+n]$

    Attempt to gmtconvert each word in the trialing text to a number and append such values to the numerical output columns. (http://docs.generic-mapping-tools.org/latest/gmtconvert.html#w)

  • Z | range :: [Type => Str | []] $Arg = [first][:last]$

    Limit output to the specified record range. If first is not set it defaults to record 0 (very first record) and if last is not set then it defaults to the very last record. (http://docs.generic-mapping-tools.org/latest/gmtconvert.html#z)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • bo | binary_out :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary output. (http://docs.generic-mapping-tools.org/latest/gmt.html#bo-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • s | skip_NaN :: [Type => Str] $Arg = [cols][a|r]$

    Suppress output for records whose z-value equals NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#s-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.gmtendFunction
gmtend(show=false, verbose=nothing)

Ends a GMT session in modern mode (GMT >= 6) and optionaly shows the figure

GMT.gmtfigMethod
function gmtfig(name::String; fmt=nothing, opts="")

Set attributes for the current modern mode session figure. 'name' name of the new (or resumed) figure. It may contain an extension. 'fmt' figures graphics format (or formats, e.g. fmt="eps,pdf"). Not needed if 'name' has extension 'opts' Sets one or more comma-separated options (and possibly arguments) that can be passed to psconvert when preparing this figure.

GMT.gmtinfoFunction
gmtinfo(cmd0::String="", arg1=nothing; kwargs...)

Reads files and finds the extreme values in each of the columns.

Full option list at gmtinfo

Parameters

  • A | ranges :: [Type => Str]

    Specify how the range should be reported. (http://docs.generic-mapping-tools.org/latest/gmtinfo.html#a)

  • C | per_column :: [Type => Bool]

    Report the min/max values per column in separate columns [Default uses <min/max> format]. (http://docs.generic-mapping-tools.org/latest/gmtinfo.html#c)

  • D | center :: [Type => Bool]

    Modifies results obtained by -I by shifting the region to better align with the center of the data. (http://docs.generic-mapping-tools.org/latest/gmtinfo.html#d)

  • E | get_record :: [Type => Str | []]

    Returns the record whose column col contains the minimum (l) or maximum (h) value. (http://docs.generic-mapping-tools.org/latest/gmtinfo.html#e)

  • F | counts :: [Type => Str | []]

    Returns the counts of various records depending on the appended mode. (http://docs.generic-mapping-tools.org/latest/gmtinfo.html#f)

  • I | inc :: [Type => Str | Number]

    Report the min/max of the first n columns to the nearest multiple of the provided increments and output results in the form -Rw/e/s/n (http://docs.generic-mapping-tools.org/latest/gmtinfo.html#i)

  • L | common_limits :: [Type => Bool]

    Determines common limits across tables or segments. (http://docs.generic-mapping-tools.org/latest/gmtinfo.html#l)

  • S | forerrorbars :: [Type => Str | []]

    Add extra space for error bars. Useful together with I option and when later plotting with plot E. (http://docs.generic-mapping-tools.org/latest/gmtinfo.html#s)

  • T | nearest_multiple :: [Type => Str | Number] $Arg = dz[+ccol]$

    Report the min/max of the first (0’th) column to the nearest multiple of dz and output this as the string -Tzmin/zmax/dz. (http://docs.generic-mapping-tools.org/latest/gmtinfo.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.gmtmathMethod
gmtmath(cmd::String, args...)

Call gmtmath with all commands in a single string 'cmd'. This is not useful in itself as compared to call gmt("gmtmath ....") but it's very useful in 'movie' because it can generate shell scripts from the julai command

Full option list at grdmath

GMT.gmtreadMethod
gmtread(fname::String, data; kwargs...)

Read GMT object from file. The object is one of "grid" or "grd", "image" or "img", "data" or "table", "cmap" or "cpt" and "ps" (for postscript), and OGR formats (shp, kml, json). Use a type specificatin to force a certain reading path (e.g. grd=true to read grids) or take the chance of letting the data type be guessed via the file extension. Known extensions are: Grids: .grd Images: .jpg, .png, .tif, .bmp Datasets: .dat, .txt, .csv Datasets: .shp, .kml, .json CPT: .cpt PostScript: .ps, .eps

Parameters

Specify data type. Choose among:

  • grd | grid :: [Type => Any]

    Load a grid.

  • img | image :: [Type => Any]

    Load an image.

  • cpt | cmap :: [Type => Any]

    Load a GMT color palette.

  • data | dataset | table :: [Type => Any]

    Load a dataset (a table of numbers).

  • ogr :: [Type => Any]

    Load a dataset via GDAL OGR (a table of numbers). Many things can happen here.

  • ps :: [Type => Any]

    Load a PostScript file

  • gdal :: [Type => Any]

    Force reading the file via GDAL. Should only be used to read grids.

  • varname :: [Type => Str]

    When netCDF files have more than one 2D (or higher) variables use varname to pick the wished variable. e.g. varname=:slp to read the variable named 'slp'. This option defaults data type to 'grid'

  • layer | band :: [Type => Str, Number, Array]

    When files are multiband or nc files with 3D or 4D arrays, we access them via these keywords. layer=4 reads the fourth layer (or band) of the file. But the file can be a grid or an image. If it is a grid layer can be a scalar (to read 3D arrays) or an array of two elements (to read a 4D array). If file is an image 'layer' can be a 1 or a 1x3 array (to read a RGB image). Not that in this later case bands do not need to be contiguous. A band=[0,5,2] composes an RGB out of those bands. See more at http://docs.generic-mapping-tools.org/latest//GMT_Docs.html#modifiers-for-coards-compliant-netcdf-files)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

Example: to read a nc called 'lixo.grd'

G = gmtread("lixo.grd");

to read a jpg image with the bands reversed (this example is currently broken in GMT5. Needs GMT6dev)

I = gmtread("image.jpg", band=[2,1,0]);
GMT.gmtselectFunction
gmtselect(cmd0::String="", arg1=nothing, kwargs...)

Select data table subsets based on multiple spatial criteria.

Full option list at gmtselect

Parameters

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • A | area :: [Type => Str | Number]

    Features with an area smaller than minarea in km^2 or of hierarchical level that is lower than minlevel or higher than max_level will not be plotted. (http://docs.generic-mapping-tools.org/latest/gmtselect.html#a)

  • C | dist2pt | dist :: [Type => Str | NamedTuple] Arg = pointfile+ddist[unit] | (pts=Array, dist=xx)

    Pass all records whose location is within dist of any of the points in the ASCII file pointfile. If dist is zero then the 3rd column of pointfile must have each point’s individual radius of influence. (http://docs.generic-mapping-tools.org/latest/gmtselect.html#c)

  • D | res | resolution :: [Type => Str] Arg = c|l|i|h|f

    Ignored unless N is set. Selects the resolution of the coastline data set to use ((f)ull, (h)igh, (i)ntermediate, (l)ow, or (c)rude). (http://docs.generic-mapping-tools.org/latest/gmtselect.html#d)

  • E | boundary :: [Type => Str | []] Arg = [fn]

    Specify how points exactly on a polygon boundary should be considered. (http://docs.generic-mapping-tools.org/latest/gmtselect.html#e)

  • F | polygon :: [Type => Str | GMTdaset | Mx2 array] Arg = polygonfile

    Pass all records whose location is within one of the closed polygons in the multiple-segment file $polygonfile$ or a GMTdataset type or a Mx2 array defining the polygon. (http://docs.generic-mapping-tools.org/latest/gmtselect.html#f)

  • G | gridmask :: [Type => Str | GRDgrid] Arg = gridmask

    Pass all locations that are inside the valid data area of the grid gridmask. Nodes that are outside are either NaN or zero. (http://docs.generic-mapping-tools.org/latest/gmtselect.html#g)

  • I | reverse :: [Type => Str | []] Arg = [cflrsz]

    Reverses the sense of the test for each of the criteria specified. (http://docs.generic-mapping-tools.org/latest/gmtselect.html#i)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • L | dist2line :: [Type => Str | NamedTuple] Arg = linefile+ddist[unit][+p] | (pts=Array, dist=xx, ortho=_)

    Pass all records whose location is within dist of any of the line segments in the ASCII multiple-segment file linefile. (http://docs.generic-mapping-tools.org/latest/gmtselect.html#l)

  • N | mask :: [Type => Str | List] Arg = ocean/land/lake/island/pond or wet/dry

    Pass all records whose location is inside specified geographical features. (http://docs.generic-mapping-tools.org/latest/gmtselect.html#n)

  • Z | in_range :: [Type => Str | List] Arg = min[/max][+a][+ccol][+i]

    Pass all records whose 3rd column (z; col = 2) lies within the given range or is NaN. (http://docs.generic-mapping-tools.org/latest/gmtselect.html#z)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.gmtsetFunction
gmtset(cmd0::String="", kwargs...)

Adjust individual GMT defaults settings in the current directory’s gmt.conf file.

Full option list at gmtset

Parameters

  • D | units :: [Type => Str | []]

    Modify the GMT defaults based on the system settings. Append u for US defaults or s for SI defaults. (http://docs.generic-mapping-tools.org/latest/gmtinfo.html#d)

  • G | defaultsfile :: [Type => Str]

    Name of specific gmt.conf file to read and modify. (http://docs.generic-mapping-tools.org/latest/gmtinfo.html#g)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

GMT.gmtsimplifyFunction
gmtsimplify(cmd0::String="", arg1=nothing, kwargs...)

Line reduction using the Douglas-Peucker algorithm.

Full option list at gmtsimplify

Parameters

  • T | tol | tolerance :: [Type => Str | Number] Arg = tolerance[unit]

    Specifies the maximum mismatch tolerance in the user units. If the data is not Cartesian then append the distance unit. (http://docs.generic-mapping-tools.org/latest/gmtsimplify.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.gmtspatialFunction
gmtspatial(cmd0::String="", arg1=nothing, kwargs...)

Geospatial operations on points, lines and polygons.

Full option list at gmtspatial

Parameters

  • A | nn | nearest_neighbor :: [Type => Str] Arg = [amin_dist][unit]

    Perform spatial nearest neighbor (NN) analysis: Determine the nearest neighbor of each point and report the NN distances and the point IDs involved in each pair. (http://docs.generic-mapping-tools.org/latest/gmtspatial.html#a)

  • C | clip :: [Type => Bool]

    Clips polygons to the map region, including map boundary to the polygon as needed. The result is a closed polygon. (http://docs.generic-mapping-tools.org/latest/gmtspatial.html#c)

  • D | duplicates :: [Type => Str] Arg = [+ffile][+aamax][+ddmax][+c|Ccmax][+sfact]

    Check for duplicates among the input lines or polygons, or, if file is given via +f, check if the input features already exist among the features in file. (http://docs.generic-mapping-tools.org/latest/gmtspatial.html#d)

  • E | handedness :: [Type => Str] Arg = +|-

    Reset the handedness of all polygons to match the given + (counter-clockwise) or - (clockwise). Implies Q+ (http://docs.generic-mapping-tools.org/latest/gmtspatial.html#e)

  • F | force_polygons :: [Type => Str | []] Arg = [l]

    Force input data to become polygons on output, i.e., close them explicitly if not already closed. Optionally, append l to force line geometry. (http://docs.generic-mapping-tools.org/latest/gmtspatial.html#f)

  • I | intersections :: [Type => Str | []] Arg = [e|i]

    Determine the intersection locations between all pairs of polygons. (http://docs.generic-mapping-tools.org/latest/gmtspatial.html#i)

  • N | in_polyg :: [Type => Str] Arg = pfile[+a][+pstart][+r][+z]

    Determine if one (or all, with +a) points of each feature in the input data are inside any of the polygons given in the pfile. (http://docs.generic-mapping-tools.org/latest/gmtspatial.html#n)

  • Q | area or length :: [Type => Str] Arg = [[-|+]unit][+cmin[/max]][+h][+l][+p][+s[a|d]]

    Measure the area of all polygons or length of line segments. (http://docs.generic-mapping-tools.org/latest/gmtspatial.html#q)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | polygons :: [Type => Str] Arg = h|i|j|s|u

    Spatial processing of polygons. (http://docs.generic-mapping-tools.org/latest/gmtspatial.html#s)

  • T | truncate :: [Type => Str | []] Arg = [clippolygon]

    Truncate polygons against the specified polygon given, possibly resulting in open polygons. (http://docs.generic-mapping-tools.org/latest/gmtspatial.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.gmtvectorFunction
gmtvector(cmd0::String="", arg1=nothing, kwargs...)

Time domain filtering of 1-D data tables.

Full option list at gmtvector

Parameters

  • A | single_vec :: [Type => Str] Arg = m[conf]|vector

    Specify a single, primary vector instead of reading tables. (http://docs.generic-mapping-tools.org/latest/gmtvector.html#a)

  • C | cartesian :: [Type => Str | []] Arg = [i|o]

    Select Cartesian coordinates on input and output. (http://docs.generic-mapping-tools.org/latest/gmtvector.html#c)

  • E | geod2geoc :: [Type => Bool]

    Convert input geographic coordinates from geodetic to geocentric and output geographic coordinates from geocentric to geodetic. (http://docs.generic-mapping-tools.org/latest/gmtvector.html#e)

  • N | normalize :: [Type => Bool]

    Normalize the resultant vectors prior to reporting the output. (http://docs.generic-mapping-tools.org/latest/gmtvector.html#n)

  • S | secondary_vec :: [Type => Str | List] Arg = [vector]

    Specify a single, secondary vector in the same format as the first vector. (http://docs.generic-mapping-tools.org/latest/gmtvector.html#s)

  • T | transform :: [Type => Str | List] Arg = a|d|D|paz|s|r[arg|R|x]

    Specify the vector transformation of interest. (http://docs.generic-mapping-tools.org/latest/gmtvector.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.gmtwhichMethod
gmtwhich(cmd0::String; kwargs...)

Find full path to specified files

Full option list at gmtwhich

Parameters

  • A | with_permissions :: [Type => Bool]
Only consider files that the user has permission to read [Default consider all files found].
(http://docs.generic-mapping-tools.org/latest/gmtwhich.html#a)
  • C | confirm :: [Type => Bool]
Instead of reporting the paths, print the confirmation Y if the file is found and N if it is not.
(http://docs.generic-mapping-tools.org/latest/gmtwhich.html#c)
  • D | report_dir :: [Type => Bool]
Instead of reporting the paths, print the directories that contains the files.
(http://docs.generic-mapping-tools.org/latest/gmtwhich.html#d)
  • G | download :: [Type => Str | []] $Arg = [c|l|u]$
If a file argument is a downloadable file (either a full URL, a @file for downloading from
the GMT Site Cache, or @earth_relief_*.grd) we will try to download the file if it is not
found in your local data or cache dirs.
(http://docs.generic-mapping-tools.org/latest/gmtwhich.html#g)
  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

GMT.gmtwriteMethod
gmtwrite(fname::String, data; kwargs...)

Write a GMT object to file. The object is one of "grid" or "grd", "image" or "img", "dataset" or "table", "cmap" or "cpt" and "ps" (for postscript).

When saving grids we have a large panoply of formats at our disposal.

Parameters

  • id :: [Type => Str]

    Use an $id$ code when not not saving a grid into a standard COARDS-compliant netCDF grid. This $id$ is made up of two characters like $ef$ to save in ESRI Arc/Info ASCII Grid Interchange format (ASCII float). See the full list of ids at http://docs.generic-mapping-tools.org/latest/grdconvert.html#format-identifier.

    (http://docs.generic-mapping-tools.org/latest/grdconvert.html#g)

  • scale | offset :: [Type => Number]

    You may optionally ask to scale the data and then offset them with the specified amounts. These modifiers are particularly practical when storing the data as integers, by first removing an offset and then scaling down the values.

  • nan | novalue | invalid | missing :: [Type => Number]

    Lets you supply a value that represents an invalid grid entry, i.e., ‘Not-a-Number’.

  • gdal :: [Type => Bool]

    Force the use of the GDAL library to write the grid (to be used only with grids). (http://docs.generic-mapping-tools.org/latest/GMT_Docs.html#grid-file-format-specifications)

  • driver :: [Type => Str]

    When saving in other than the netCDF format we must tell the GDAL library what is wished format. That is done by specifying the driver name used by GDAL itself (e.g., netCDF, GTiFF, etc...).

  • datatype :: [Type => Str] $Arg = u8|u16|i16|u32|i32|float32$

    When saving with GDAL we can specify the data type from u8|u16|i16|u32|i32|float32 where ‘i’ and ‘u’ denote signed and unsigned integers respectively.

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • bo | binary_out :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary output. (http://docs.generic-mapping-tools.org/latest/gmt.html#bo-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

Example: write the GMTgrid 'G' object into a nc file called 'lixo.grd'

gmtwrite("lixo.grd", G);
GMT.grd2cptFunction
grd2cpt(cmd0::String="", arg1=nothing, kwargs...)

Make linear or histogram-equalized color palette table from grid

Full option list at grd2cpt

Parameters

  • A | alpha | transparency :: [Type => Str]

    Sets a constant level of transparency (0-100) for all color slices. (http://docs.generic-mapping-tools.org/latest/grd2cpt.html#a)

  • C | color | cmap :: [Type => Str] $Arg = [cpt |master[+izinc] |color1,color2[,*color3*,…]]$

    Give a CPT name or specify -Ccolor1,color2[,color3,...] to build a linear continuous CPT from those colors automatically. (http://docs.generic-mapping-tools.org/latest/grdimage.html#c)

  • D | bg | background :: [Type => Str | []] Arg = [i|o]

    Select the back- and foreground colors to match the colors for lowest and highest z-values in the output CPT. (http://docs.generic-mapping-tools.org/latest/grd2cpt.html#d)

  • E | nlevels :: [Type => Int | []] Arg = [nlevels]

    Create a linear color table by using the grid z-range as the new limits in the CPT. Alternatively, append nlevels and we will resample the color table into nlevels equidistant slices. (http://docs.generic-mapping-tools.org/latest/grd2cpt.html#e)

  • F | color_model :: [Type => Str | []] Arg = [R|r|h|c][+c]]

    Force output CPT to written with r/g/b codes, gray-scale values or color name. (http://docs.generic-mapping-tools.org/latest/grd2cpt.html#f)

  • G | truncate :: [Type => Str] Arg = zlo/zhi

    Truncate the incoming CPT so that the lowest and highest z-levels are to zlo and zhi. (http://docs.generic-mapping-tools.org/latest/grd2cpt.html#g)

  • I | inverse | reverse :: [Type => Str] Arg = [c][z]

    Reverse the sense of color progression in the master CPT. (http://docs.generic-mapping-tools.org/latest/grd2cpt.html#i)

  • L | range :: [Type => Str] Arg = minlimit/maxlimit

    Limit range of CPT to minlimit/maxlimit, and don’t count data outside this range when estimating CDF(Z). Default uses min and max of data.

  • M | overrule_bg :: [Type => Bool]

    Overrule background, foreground, and NaN colors specified in the master CPT with the values of the parameters COLORBACKGROUND, COLORFOREGROUND, and COLOR_NAN. (http://docs.generic-mapping-tools.org/latest/grd2cpt.html#m)

  • N | no_bg | nobg :: [Type => Bool]

    Do not write out the background, foreground, and NaN-color fields. (http://docs.generic-mapping-tools.org/latest/grd2cpt.html#n)

  • Q | log :: [Type => Bool]

    Selects a logarithmic interpolation scheme [Default is linear]. (http://docs.generic-mapping-tools.org/latest/grd2cpt.html#q)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | symetric :: [Type => Str] Arg = h|l|m|u

    Force the color table to be symmetric about zero (from -R to +R). (http://docs.generic-mapping-tools.org/latest/grd2cpt.html#s)

  • T | range :: [Type => Str] Arg = (min,max,inc) or = "n"

    Set steps in CPT. Calculate entries in CPT from zstart to zstop in steps of (zinc). Default chooses arbitrary values by a crazy scheme based on equidistant values for a Gaussian CDF. (http://docs.generic-mapping-tools.org/latest/grd2cpt.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • W | wrap | categorical :: [Type => Bool | Str | []] Arg = [w]

    Do not interpolate the input color table but pick the output colors starting at the beginning of the color table, until colors for all intervals are assigned. (http://docs.generic-mapping-tools.org/latest/grd2cpt.html#w)

  • Z | continuous :: [Type => Bool]

    Creates a continuous CPT [Default is discontinuous, i.e., constant colors for each interval]. (http://docs.generic-mapping-tools.org/latest/grd2cpt.html#z)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

GMT.grd2kmlFunction
grd2kml(cmd0::String="", arg1=nothing, kwargs...)

Reads a 2-D grid file and makes a quadtree of PNG images and KML wrappers for Google Earth using the selected tile size [256x256 pixels].

Full option list at grd2kml

Parameters

  • C | color | cmap :: [Type => Str] $Arg = [cpt |master[+izinc] |color1,color2[,*color3*,…]]$

    Give a CPT name or specify -Ccolor1,color2[,color3,...] to build a linear continuous CPT from those colors automatically. (http://docs.generic-mapping-tools.org/latest/grdimage.html#c)

  • E | url :: [Type => Str] Arg = url

    Instead of hosting the files locally, prepend a site URL. The top-level prefix.kml file will then use this URL to find the other files it references.`` (http://docs.generic-mapping-tools.org/latest/grd2kml.html#e)

  • F | filter :: [Type => Str]

    Specifies the filter to use for the downsampling of the grid for more distant viewing. Choose among boxcar, cosine arch, gaussian, or median [Gaussian]. (http://docs.generic-mapping-tools.org/latest/grd2kml.html#e)

  • H | sub_pixel :: [Type => Int] Arg = factor

    Improve the quality of rasterization by passing the sub-pixel smoothing factor to psconvert. (http://docs.generic-mapping-tools.org/latest/grd2kml.html#h)

  • I | shade | shading | intensity :: [Type => Str | GMTgrid]

    Gives the name of a grid file or GMTgrid with intensities in the (-1,+1) range, or a grdgradient shading flags. (http://docs.generic-mapping-tools.org/latest/grd2kml.html#i)

  • L | tile_size :: [Type => Number] Arg = tilesize

    Sets the fixed size of the image building blocks. Must be an integer that is radix 2. Typical values are 256 or 512 [256]. (http://docs.generic-mapping-tools.org/latest/grd2kml.html#l)

  • N | prefix [Type => Str] Arg = prefix

    Sets a unique name prefixed used for the top-level KML filename and the directory where all referenced KML files and PNG images will be written [GMT_Quadtree]. (http://docs.generic-mapping-tools.org/latest/grd2kml.html#n)

  • Q | nan_t | nan_alpha :: [Type => Bool]

    Make grid nodes with z = NaN transparent, using the color-masking feature in PostScript Level 3. (http://docs.generic-mapping-tools.org/latest/grd2kml.html#q)

  • T | title :: [Type => Str] Arg = title

    Sets the title of the top-level document (i.e., its description). (http://docs.generic-mapping-tools.org/latest/grd2kml.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

GMT.grd2xyzFunction
grd2xyz(cmd0::String="", arg1=nothing, kwargs...)

Reads one 2-D grid and returns xyz-triplets.

Full option list at grd2xyz

Parameters

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • C | row_col :: [Type => Bool]

    Replace the x- and y-coordinates on output with the corresponding column and row numbers. (http://docs.generic-mapping-tools.org/latest/grd2xyz.html#c)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • W | weight :: [Type => Str] Arg = [a|weight]

    Write out x,y,z,w, where w is the supplied weight (or 1 if not supplied) [Default writes x,y,z only]. (http://docs.generic-mapping-tools.org/latest/grd2xyz.html#w)

  • Z | flags :: [Type => Str]

    Write a 1-column table. Output will be organized according to the specified ordering convention contained in $flags$. (http://docs.generic-mapping-tools.org/latest/grd2xyz.html#z)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • bo | binary_out :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary output. (http://docs.generic-mapping-tools.org/latest/gmt.html#bo-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • s | skip_NaN :: [Type => Str] $Arg = [cols][a|r]$

    Suppress output for records whose z-value equals NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#s-full)

GMT.grdblendFunction
grdblend(cmd0::String="", arg1=nothing, arg2=nothing, kwargs...)

Reads a listing of grid files and blend parameters, or up to 2 GTMgrid types, and creates a grid by blending the other grids using cosine-taper weights.

Full option list at grdblend

Parameters

  • I | inc :: [Type => Str | Number]

    x_inc [and optionally y_inc] is the grid spacing. (http://docs.generic-mapping-tools.org/latest/grdblend.html#i)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdblend(....) form. (http://docs.generic-mapping-tools.org/latest/grdblend.html#g)

  • C | clobber :: [Type => Str | []] $Arg = f|l|o|u[±]$

    Clobber mode: Instead of blending, simply pick the value of one of the grids that covers a node. (http://docs.generic-mapping-tools.org/latest/grdproject.html#c)

  • N | nodata :: [Type => Str | Number]

    No data. Set nodes with no input grid to this value [Default is NaN]. (http://docs.generic-mapping-tools.org/latest/grdblend.html#n)

  • Q | headless :: [Type => Bool]

    Create plain header-less grid file (for use with external tools). Requires that the output grid file is a native format (i.e., not netCDF). DO NOT USE WITH G. (http://docs.generic-mapping-tools.org/latest/grdblend.html#q)

  • W | no_blend :: [Type => Str | []]

    Do not blend, just output the weights used for each node [Default makes the blend]. Append $z$ to write the weight*z sum instead. (http://docs.generic-mapping-tools.org/latest/grdblend.html#w)

  • Z | scale :: [Type => Number]

    Scale output values by scale before writing to file. (http://docs.generic-mapping-tools.org/latest/grdblend.html#z)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • n | interp | interpol :: [Type => Str] $Arg = [b|c|l|n][+a][+bBC][+c][+tthreshold]$

    Select grid interpolation mode by adding b for B-spline smoothing, c for bicubic interpolation, l for bilinear interpolation, or n for nearest-neighbor value. (http://docs.generic-mapping-tools.org/latest/gmt.html#n-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

GMT.grdclipFunction
grdclip(cmd0::String="", arg1=nothing, kwargs...)

Clip the range of grid values. will set values < low to below and/or values > high to above. You can also specify one or more intervals where all values should be set to $between$, or replace individual values.

Full option list at grdclip

Parameters

  • cmd0 :: [Type => Str]

    Either the input file name or the full monolitic options string. Do not use this when the grid (a GMTgrid type) is passed via the $arg1$ argument.

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdclip(....) form. (http://docs.generic-mapping-tools.org/latest/grdclip.html#g)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • above | high :: [Type => Array | Str]

    Two elements array with $high$ and $above$ or a string with "high/above". It sets all data[i] > $high$ to $above$.

  • below | low :: [Type => Array | Str]

    Two elements array with $low$ and $below$ or a string with "low/below". It sets all data[i] < $low$ to $below$.

  • between :: [Type => Array | Str]

    Three elements array with $low, high$ and $between$ or a string with "low/high/between". It sets all data[i] >= $low$ and <= $high$ to $between$.

  • old | new :: [Type => Array | Str]

    Two elements array with $old$ and $new$ or a string with "old/new". It sets all data[i] == $old$ to $new$.

  • S :: [Type => Str]

    Condense all replacement options above in a single string. (http://docs.generic-mapping-tools.org/latest/grdclip.html#s)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • Examples:

      G=gmt("grdmath", "-R0/10/0/10 -I1 X");
      G2=grdclip(G, above=[5 6], low=[2 2], between="3/4/3.5")

    or (note the use of -S for second on options because we can't repeat a kwarg name)

      G2=grdclip(G, S="a5/6 -Sb2/2 -Si3/4/3.5")
GMT.grdcontourFunction
grdcontour(cmd0::String="", arg1=nothing; kwargs...)

Reads a 2-D grid file or a GMTgrid type and produces a contour map by tracing each contour through the grid.

Full option list at grdcontour

Parameters

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • A | annot :: [Type => Str or Number] $Arg = [-|[+]annot_int][labelinfo]$

    annot_int is annotation interval in data units; it is ignored if contour levels are given in a file. (http://docs.generic-mapping-tools.org/latest/grdcontour.html#a)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | cont | contour | contours | levels :: [Type => Str | Number | GMTcpt] $Arg = [+]cont_int$

    Contours to be drawn may be specified in one of three possible ways. (http://docs.generic-mapping-tools.org/latest/grdcontour.html#c)

  • D | dump :: [Type => Str]

    Dump contours as data line segments; no plotting takes place. (http://docs.generic-mapping-tools.org/latest/grdcontour.html#d)

  • F | force :: [Type => Str | []]

    Force dumped contours to be oriented so that higher z-values are to the left (-Fl [Default]) or right. (http://docs.generic-mapping-tools.org/latest/grdcontour.html#f)

  • G | labels :: [Type => Str]

    Controls the placement of labels along the quoted lines. (http://docs.generic-mapping-tools.org/latest/grdcontour.html#g)

  • Jz | zscale | zsize :: [Type => String]

  • L | range :: [Type => Str]

    Limit range: Do not draw contours for data values below low or above high. (http://docs.generic-mapping-tools.org/latest/grdcontour.html#l)

  • N | fill | colorize :: [Type => Bool]

    Fill the area between contours using the discrete color table given by cpt. (http://docs.generic-mapping-tools.org/latest/grdcontour.html#n)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • Q | cut :: [Type => Str | Number]

    Do not draw contours with less than cut number of points. (http://docs.generic-mapping-tools.org/latest/grdcontour.html#q)

  • S | smooth :: [Type => Number]

    Used to resample the contour lines at roughly every (gridbox_size/smoothfactor) interval. (http://docs.generic-mapping-tools.org/latest/grdcontour.html#s)

  • T | ticks :: [Type => Str]

    Draw tick marks pointing in the downward direction every gap along the innermost closed contours. (http://docs.generic-mapping-tools.org/latest/grdcontour.html#t)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • W | pen :: [Type => Str | Number]

    Sets the attributes for the particular line. (http://docs.generic-mapping-tools.org/latest/grdcontour.html#w)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • Z | scale :: [Type => Str]

    Use to subtract shift from the data and multiply the results by factor before contouring starts. (http://docs.generic-mapping-tools.org/latest/grdcontour.html#z)

  • bo | binary_out :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary output. (http://docs.generic-mapping-tools.org/latest/gmt.html#bo-full)

  • do | nodata_out :: [Type => Str or Number] $Arg = nodata$

    Examine all output columns and if any item equals NAN substitute it with the chosen missing data value. (http://docs.generic-mapping-tools.org/latest/gmt.html#do-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

GMT.grdcutFunction
grdcut(cmd0::String="", arg1=[], kwargs...)

Produce a new outgrid file which is a subregion of ingrid. The subregion is specified with $limits$ (the -R); the specified range must not exceed the range of ingrid (but see $extend$).

Full option list at grdcut

Parameters

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdcut(....) form. (http://docs.generic-mapping-tools.org/latest/grdcut.html#g)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • N | extend :: [Type => Str or []]

    Allow grid to be extended if new region exceeds existing boundaries. Append nodata value to initialize nodes outside current region [Default is NaN]. (http://docs.generic-mapping-tools.org/latest/grdcut.html#n)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | circ_subregion :: [Type => Str] $Arg = [n]lon/lat/radius[unit]$

    Specify an origin and radius; append a distance unit and we determine the corresponding rectangular region so that all grid nodes on or inside the circle are contained in the subset. (http://docs.generic-mapping-tools.org/latest/grdcut.html#s)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • Z | z_subregion :: [Type => Str] $Arg = [n|N |r][min/max]$

    Determine a new rectangular region so that all nodes outside this region are also outside the given z-range. (http://docs.generic-mapping-tools.org/latest/grdcut.html#z)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

GMT.grdeditFunction
grdedit(cmd0::String="", arg1=nothing, kwargs...)

Reads the header information in a binary 2-D grid file and replaces the information with values provided on the command line.

If single input is a G GMTgrid object, it will update the z_min|max values of the G.range member

Full option list at grdedit

Parameters

  • A | adjust :: [Type => Bool]

    If necessary, adjust the file’s xinc, yinc to be compatible with its domain. (http://docs.generic-mapping-tools.org/latest/grdedit.html#a)

  • C | adjust :: [Type => Bool]

    Clear the command history from the grid header. (http://docs.generic-mapping-tools.org/latest/grdedit.html#c)

  • D | header :: [Type => Str] $Arg = [+xxname][+yyname][+zzname][+sscale][+ooffset][+ninvalid][+ttitle][+rremark$

    Change these header parameters. (http://docs.generic-mapping-tools.org/latest/grdedit.html#d)

  • E | header :: [Type => Str] $Arg = [a|h|l|r|t|v]$

    Transform the grid in one of six ways and (for l|r|t) interchange the x and y information (http://docs.generic-mapping-tools.org/latest/grdedit.html#e)

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdedit(....) form. (http://docs.generic-mapping-tools.org/latest/grdedit.html#g)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • N | replace :: [Type => Str | Mx3 array] $Arg = replace=fname | replace=Array$

    Read the ASCII (or binary) file table and replace the corresponding nodal values in the grid with these x,y,z values. Alternatively, provide a Mx3 matrix with values to be changed. (http://docs.generic-mapping-tools.org/latest/grdedit.html#n)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | wrap :: [Type => Bool]

    For global, geographical grids only. Grid values will be shifted longitudinally according to the new borders given in $limits$ (R option). (http://docs.generic-mapping-tools.org/latest/grdedit.html#s)

  • T | toggle :: [Type => Bool]

    Make necessary changes in the header to convert a gridline-registered grid to a pixel-registered grid, or vice-versa. (http://docs.generic-mapping-tools.org/latest/grdedit.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.grdfftFunction
grdfft(cmd0::String="", arg1=nothing, [arg2=nothing,] kwargs...)

Take the 2-D forward Fast Fourier Transform and perform one or more mathematical operations in the frequency domain before transforming back to the space domain.

Full option list at grdfft

Parameters

  • A | azim :: [Type => Number] $Arg = azim$

    Take the directional derivative in the azimuth direction measured in degrees CW from north. (http://docs.generic-mapping-tools.org/latest/grdfft.html#a)

  • C | upward :: [Type => Number] $Arg = zlevel$

    Upward (for zlevel > 0) or downward (for zlevel < 0) continue the field zlevel meters. (http://docs.generic-mapping-tools.org/latest/grdfft.html#c)

  • D | dfdz :: [Type => Str or Number] $Arg = [scale|g]$

    Differentiate the field, i.e., take d(field)/dz. This is equivalent to multiplying by kr in the frequency domain (kr is radial wave number). (http://docs.generic-mapping-tools.org/latest/grdfft.html#d)

  • E | radial_power :: [Type => Str] $Arg = [r|x|y][+w[k]][+n]$

    Estimate power spectrum in the radial direction [r]. Place x or y immediately after E to compute the spectrum in the x or y direction instead. (http://docs.generic-mapping-tools.org/latest/grdfft.html#e)

  • F | filter :: [Type => Str or List– $Arg = [r|x|y]params$

    Filter the data. Place x or y immediately after -F to filter x or y direction only; default is isotropic [r]. Choose between a cosine-tapered band-pass, a Gaussian band-pass filter, or a Butterworth band-pass filter. (http://docs.generic-mapping-tools.org/latest/grdfft.html#f)

  • G | outgrid | table :: [Type => Str]

    Output grid file name (or table if radial_power is used). Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdfft(....) form. (http://docs.generic-mapping-tools.org/latest/grdfft.html#g)

  • I | integrate :: [Type => Str or Number] $Arg = [scale|g]$

    Integrate the field, i.e., compute integraloverz (field * dz). This is equivalent to divide by kr in the frequency domain (kr is radial wave number). (http://docs.generic-mapping-tools.org/latest/grdfft.html#i)

  • N | inquire :: [Type => Str] $Arg = [a|f|m|r|s|nx/ny][+a|[+d|h|l][+e|n|m][+twidth][+v][+w[suffix]][+z[p]]$

    Choose or inquire about suitable grid dimensions for FFT and set optional parameters. Control the FFT dimension: (http://docs.generic-mapping-tools.org/latest/grdfft.html#n)

  • S | scale :: [Type => Number] $Arg = scale$

    Multiply each element by scale in the space domain (after the frequency domain operations). (http://docs.generic-mapping-tools.org/latest/grdfft.html#s)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

GMT.grdfillFunction
grdfill(cmd0::String="", arg1=nothing, kwargs...)

Reads a grid that presumably has unfilled holes that the user wants to fill in some fashion. Holes are identified by NaN values but this criteria can be changed.

Full option list at grdfill

Parameters

  • A | algo :: [Type => Str] $Arg = mode[arg]$

    Specify the hole-filling algorithm to use. Choose from c for constant fill and append the constant value, n for nearest neighbor (and optionally append a search radius in pixels). (http://docs.generic-mapping-tools.org/latest/grdfill.html#a)

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdfill(....) form. (http://docs.generic-mapping-tools.org/latest/grdfill.html#g)

  • L | list :: [Type => Str] $Arg = [p]$

    Just list the rectangular subregions west east south north of each hole. No grid fill takes place and outgrid is ignored. Optionally, append p to instead write closed polygons for all subregions.

  • N | nodata :: [Type => Str] $Arg = nodata$

    Sets the node value that identifies a point as a member of a hole [Default is NaN]. (http://docs.generic-mapping-tools.org/latest/grdfill.html#n)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

GMT.grdfilterFunction
grdfilter(cmd0::String="", arg1=nothing, kwargs...)

Filter a grid file in the time domain using one of the selected convolution or non-convolution isotropic or rectangular filters and compute distances using Cartesian or Spherical geometries.

Full option list at grdfilter

Parameters

  • F | filter :: [Type => Str]

    Sets the filter type. (http://docs.generic-mapping-tools.org/latest/grdfilter.html#f)

  • D | distflag | distance :: [Type => Number]

    Distance flag tells how grid (x,y) relates to filter width. (http://docs.generic-mapping-tools.org/latest/grdfilter.html#d)

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdfilter(....) form. (http://docs.generic-mapping-tools.org/latest/grdfilter.html#g)

  • I | inc :: [Type => Str or Number]

    x_inc [and optionally y_inc] is the grid spacing. (http://docs.generic-mapping-tools.org/latest/grdfilter.html#i)

  • N | nans :: [Type => Str]

    Determine how NaN-values in the input grid affects the filtered output. Values are i|p|r (http://docs.generic-mapping-tools.org/latest/grdfilter.html#n)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • T | toggle :: [Type => Bool]

    Toggle the node registration for the output grid so as to become the opposite of the input grid (http://docs.generic-mapping-tools.org/latest/grdfilter.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

GMT.grdgradientFunction
grdgradient(cmd0::String="", arg1=nothing, kwargs...)

Compute the directional derivative in a given direction, or to find the direction [and the magnitude] of the vector gradient of the data.

Full option list at grdgradient

Parameters

  • A | azim :: [Type => Str | Number] $Arg = azim[/azim2]$

    Azimuthal direction for a directional derivative. (http://docs.generic-mapping-tools.org/latest/grdgradient.html#a)

  • D | find_dir :: [Type => Str] $Arg = [a][c][o][n]$

    Find the direction of the positive (up-slope) gradient of the data. (http://docs.generic-mapping-tools.org/latest/grdgradient.html#d)

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdgradient(....) form. (http://docs.generic-mapping-tools.org/latest/grdgradient.html#g)

  • E | lambert :: [Type => Str] $Arg = [m|s|p]azim/elev[+aambient][+ddiffuse][+pspecular][+sshine]$

    Compute Lambertian radiance appropriate to use with grdimage and grdview. (http://docs.generic-mapping-tools.org/latest/grdgradient.html#e)

  • N | norm | normalize :: [Type => Str] $Arg = [e|t][amp][+ssigma][+ooffset]$

    Normalization. [Default is no normalization.] The actual gradients g are offset and scaled to produce normalized gradients. (http://docs.generic-mapping-tools.org/latest/grdgradient.html#n)

  • Q | save_stats :: [Type => Str] $Arg = c|r|R$

    Controls how normalization via N is carried out. (http://docs.generic-mapping-tools.org/latest/grdgradient.html#q)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | slopegrid :: [Type => Str]

    Name of output grid file with scalar magnitudes of gradient vectors. Requires D but makes G optional. (http://docs.generic-mapping-tools.org/latest/grdgradient.html#s)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

GMT.grdhisteqFunction
grdhisteq(cmd0::String="", arg1=nothing, kwargs...)

Find the data values which divide a given grid file into patches of equal area. One common use of grdhisteq is in a kind of histogram equalization of an image.

Full option list at grdhisteq

Parameters

  • D | dump :: [Type => Str or []]

    Dump level information to file, or standard output if no file is provided. (http://docs.generic-mapping-tools.org/latest/grdhisteq.html#d)

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdhisteq(....) form. (http://docs.generic-mapping-tools.org/latest/grdhisteq.html#g)

  • N | gaussian :: [Type => Number or []]

    Gaussian output. (http://docs.generic-mapping-tools.org/latest/grdhisteq.html#n)

  • Q | quadratic :: [Type => Bool]

    Quadratic output. Selects quadratic histogram equalization. [Default is linear]. (http://docs.generic-mapping-tools.org/latest/grdhisteq.html#q)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

GMT.grdimageFunction
grdimage(cmd0::String="", arg1=nothing, arg2=nothing, arg3=nothing; kwargs...)

Produces a gray-shaded (or colored) map by plotting rectangles centered on each grid node and assigning them a gray-shade (or color) based on the z-value.

Full option list at grdimage

Parameters

  • A | img_out | image_out :: [Type => Str]

    Save an image in a raster format instead of PostScript. (http://docs.generic-mapping-tools.org/latest/grdimage.html#a)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | color | cmap :: [Type => Str] $Arg = [cpt |master[+izinc] |color1,color2[,*color3*,…]]$

    Give a CPT name or specify -Ccolor1,color2[,color3,...] to build a linear continuous CPT from those colors automatically. (http://docs.generic-mapping-tools.org/latest/grdimage.html#c)

  • D | img_in | image_in :: [Type => Str]

    Specifies that the grid supplied is an image file to be read via GDAL. (http://docs.generic-mapping-tools.org/latest/grdimage.html#d)

  • E | dpi :: [Type => Int]

    Sets the resolution of the projected grid that will be created. (http://docs.generic-mapping-tools.org/latest/grdimage.html#e)

  • G | bit_color :: [Type => Int]

    (http://docs.generic-mapping-tools.org/latest/grdimage.html#g)

  • I | shade | shading | intensity :: [Type => Bool | Str | GMTgrid]

    Gives the name of a grid file or GMTgrid with intensities in the (-1,+1) range, or a grdgradient shading flags. (http://docs.generic-mapping-tools.org/latest/grdimage.html#i)

  • M | monochrome :: [Type => Bool]

    Force conversion to monochrome image using the (television) YIQ transformation. (http://docs.generic-mapping-tools.org/latest/grdimage.html#m)

  • N | noclip :: [Type => Bool]

    Do not clip the image at the map boundary. (http://docs.generic-mapping-tools.org/latest/grdimage.html#n)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • Q | alpha_color | nan_alpha :: [Type => Bool | Tuple | Str] $Q = true | Q = (r,g,b)$

Make grid nodes with z = NaN transparent, or pick a color for transparency in a image.
  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • n | interp | interpol :: [Type => Str] $Arg = [b|c|l|n][+a][+bBC][+c][+tthreshold]$

    Select grid interpolation mode by adding b for B-spline smoothing, c for bicubic interpolation, l for bilinear interpolation, or n for nearest-neighbor value. (http://docs.generic-mapping-tools.org/latest/gmt.html#n-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

GMT.grdinfoFunction
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

Full option list at grdinfo

Parameters

  • C | numeric :: [Type => Str | Number]

    Formats the report using tab-separated fields on a single line. (http://docs.generic-mapping-tools.org/latest/grdinfo.html#c)

  • D | tiles :: [Type => Number | Str]

    Divide a single grid’s domain (or the -R domain, if no grid given) into tiles of size dx times dy (set via -I). (http://docs.generic-mapping-tools.org/latest/grdinfo.html#d)

  • F :: [Type => Bool]

    Report grid domain and x/y-increments in world mapping format. (http://docs.generic-mapping-tools.org/latest/grdinfo.html#f)

  • G | force_download :: [Type => Bool]

    Force (possible) download and mosaicing of all tiles of tiled global remote grids in order to report the requested information. (http://docs.generic-mapping-tools.org/latest/grdinfo.html#g)

  • I | nearest :: [Type => Number | Str] $Arg = [dx[/dy]|b|i|r]$

    Report the min/max of the region to the nearest multiple of dx and dy, and output this in the form -Rw/e/s/n (http://docs.generic-mapping-tools.org/latest/grdinfo.html#i)

  • L | force_scan :: [Type => Number | Str]

    Report stats after actually scanning the data. (http://docs.generic-mapping-tools.org/latest/grdinfo.html#l)

  • M | minmax_pos :: [Type => Bool]

    Find and report the location of min/max z-values. (http://docs.generic-mapping-tools.org/latest/grdinfo.html#m)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • T | zmin_max :: [Type => Number | Str] Determine min and max z-value. (http://docs.generic-mapping-tools.org/latest/grdinfo.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

GMT.grdlandmaskFunction
grdlandmask(cmd0::String="", arg1=nothing, kwargs...)

Reads the selected shoreline database and uses that information to decide which nodes in the specified grid are over land or over water.

Full option list at grdlandmask

Parameters

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • I | inc :: [Type => Str | Number]

    x_inc [and optionally y_inc] is the grid spacing. (http://docs.generic-mapping-tools.org/latest/grdlandmask.html#i)

  • A | area :: [Type => Str | Number]

    Features with an area smaller than minarea in km^2 or of hierarchical level that is lower than minlevel or higher than max_level will not be plotted. (http://docs.generic-mapping-tools.org/latest/grdlandmask.html#a)

  • D | res | resolution :: [Type => Str]

    Selects the resolution of the data set to use ((f)ull, (h)igh, (i)ntermediate, (l)ow, and (c)rude). (http://docs.generic-mapping-tools.org/latest/grdlandmask.html#d)

  • E | bordervalues :: [Type => Str | List] $Arg = cborder/lborder/iborder/pborder or bordervalue$

    Nodes that fall exactly on a polygon boundary should be considered to be outside the polygon [Default considers them to be inside]. (http://docs.generic-mapping-tools.org/latest/grdlandmask.html#e)

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdlandmask(....) form. (http://docs.generic-mapping-tools.org/latest/grdlandmask.html#g)

  • N | mask_geog :: [Type => Str | List] $Arg = wet/dry or ocean/land/lake/island/pond$

    Sets the values that will be assigned to nodes. Values can be any number, including the textstring NaN (http://docs.generic-mapping-tools.org/latest/grdlandmask.html#n)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • x | cores | n_threads :: [Type => Str or Number] $Arg = [[-]n]$

    Limit the number of cores to be used in any OpenMP-enabled multi-threaded algorithms. (http://docs.generic-mapping-tools.org/latest/gmt.html#x-full)

GMT.grdmaskFunction
grdmask(cmd0::String="", arg1=nothing, kwargs...)
  1. It reads one or more pathfiles that each define a closed polygon.
  2. The pathfiles simply represent data point locations and the mask is set to the inside or outside value depending on whether a node is within a maximum distance from the nearest data point.

Full option list at grdmask

Parameters

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • I | inc :: [Type => Str | Number]

    x_inc [and optionally y_inc] is the grid spacing. (http://docs.generic-mapping-tools.org/latest/grdmask.html#i)

  • A | steps | straight_lines :: [Type => Str | Number] $Arg = m|p|x|y$

    If the input data are geographic then the sides in the polygons will be approximated by great circle arcs. When using this option sides will be regarded as straight lines. (http://docs.generic-mapping-tools.org/latest/grdmask.html#a)

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdmask(....) form. (http://docs.generic-mapping-tools.org/latest/grdmask.html#g)

  • N | outedgein :: [Type => Str | List] $Arg = [z|Z|p|P]values$

    Sets the out/edge/in that will be assigned to nodes that are outside the polygons, on the edge, or inside. Values can be any number, including the textstring NaN [Default is 0/0/1]. (http://docs.generic-mapping-tools.org/latest/grdmask.html#n)

  • S | search_radius :: [Type => Str | List] $Arg = search_radius[unit] |xlim/ylim$

    Set nodes to inside, on edge, or outside depending on their distance to the nearest data point.

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • j | spheric_dist | spherical_dist :: [Type => Str] $Arg = e|f|g$

    Determine how spherical distances are calculated in modules that support this. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • n | interp | interpol :: [Type => Str] $Arg = [b|c|l|n][+a][+bBC][+c][+tthreshold]$

    Select grid interpolation mode by adding b for B-spline smoothing, c for bicubic interpolation, l for bilinear interpolation, or n for nearest-neighbor value. (http://docs.generic-mapping-tools.org/latest/gmt.html#n-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • x | cores | n_threads :: [Type => Str or Number] $Arg = [[-]n]$

    Limit the number of cores to be used in any OpenMP-enabled multi-threaded algorithms. (http://docs.generic-mapping-tools.org/latest/gmt.html#x-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.grdmathMethod
grdmath(cmd::String, args...)

Call grdmath with all commands in a single string 'cmd'. This is not useful in itself as compared to call gmt("grdmath ....") but it's very useful in 'movie' because it can generate shell scripts from the julai command

Full option list at grdmath

GMT.grdpasteFunction
grdpaste(cmd0::String="", arg1=nothing, arg2=nothing, kwargs...)

Combine grids $grid1$ and $grid2$ into $grid3$ by pasting them together along their common edge. Both grids must have the same dx, dy and have one edge in common.

Full option list at grdpaste

Parameters

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdpaste(....) form. (http://docs.generic-mapping-tools.org/latest/grdpaste.html#g)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

GMT.grdprojectFunction
grdproject(cmd0::String="", arg1=nothing, kwargs...)

Project a geographical gridded data set onto a rectangular grid or do the inverse projection.

Full option list at grdproject

Parameters

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • C | center :: [Type => Str | []] $Arg = [dx/dy]$

    Let projected coordinates be relative to projection center [Default is relative to lower left corner]. (http://docs.generic-mapping-tools.org/latest/grdproject.html#c)

  • D | inc :: [Type => Str | number] $Arg = xinc[unit][+e|n][/yinc[unit][+e|n]]$

    Set the grid spacing for the new grid. Append m for arc minute, s for arc second. (http://docs.generic-mapping-tools.org/latest/grdproject.html#d)

  • E | dpi :: [Type => Number]

    Set the resolution for the new grid in dots per inch. (http://docs.generic-mapping-tools.org/latest/grdproject.html#e)

  • F | one2one :: [Type => Str] $Arg = [c|i|p|e|f|k|M|n|u]$

    Force 1:1 scaling, i.e., output (or input, see -I) data are in actual projected meters [e]. (http://docs.generic-mapping-tools.org/latest/grdproject.html#f)

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdproject(....) form. (http://docs.generic-mapping-tools.org/latest/grdproject.html#g)

  • I | inverse :: [Type => Bool]

    Do the Inverse transformation, from rectangular to geographical. (http://docs.generic-mapping-tools.org/latest/grdproject.html#i)

  • M | projected_unit :: [Type => Str] $Arg = c|i|p$

    Append c, i, or p to indicate that cm, inch, or point should be the projected measure unit. (http://docs.generic-mapping-tools.org/latest/grdproject.html#m)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • n | interp | interpol :: [Type => Str] $Arg = [b|c|l|n][+a][+bBC][+c][+tthreshold]$

    Select grid interpolation mode by adding b for B-spline smoothing, c for bicubic interpolation, l for bilinear interpolation, or n for nearest-neighbor value. (http://docs.generic-mapping-tools.org/latest/gmt.html#n-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

GMT.grdsampleFunction
grdsample(cmd0::String="", arg1=nothing, kwargs...)

Reads a grid file and interpolates it to create a new grid file with either: a different registration; or a new grid-spacing or number of nodes, and perhaps also a new sub-region

Full option list at grdsample

Parameters

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdsample(....) form. (http://docs.generic-mapping-tools.org/latest/grdsample.html#g)

  • I | inc :: [Type => Str | Number]

    x_inc [and optionally y_inc] is the grid spacing. (http://docs.generic-mapping-tools.org/latest/grdsample.html#i)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • T | toggle :: [Type => Bool]

    Toggle the node registration for the output grid so as to become the opposite of the input grid (http://docs.generic-mapping-tools.org/latest/grdsample.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • n | interp | interpol :: [Type => Str] $Arg = [b|c|l|n][+a][+bBC][+c][+tthreshold]$

    Select grid interpolation mode by adding b for B-spline smoothing, c for bicubic interpolation, l for bilinear interpolation, or n for nearest-neighbor value. (http://docs.generic-mapping-tools.org/latest/gmt.html#n-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • x | cores | n_threads :: [Type => Str or Number] $Arg = [[-]n]$

    Limit the number of cores to be used in any OpenMP-enabled multi-threaded algorithms. (http://docs.generic-mapping-tools.org/latest/gmt.html#x-full)

GMT.grdtrackFunction
grdtrack(cmd0::String="", arg1=nothing, arg2=nothing; kwargs...)

Interpolates the grid(s) at the positions in the table and writes out the table with the interpolated values added as (one or more) new columns.

Full option list at grdtrack

Parameters

  • A | interp_path :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/grdtrack.html#a)

  • C | equidistant :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/grdtrack.html#c)

  • D | dfile :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/grdtrack.html#d)

  • E | by_coord :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/grdtrack.html#e)

  • G | grid :: [Type => Str | GMTgrid | Tuple(GMTgrid's)]

    (http://docs.generic-mapping-tools.org/latest/grdtrack.html#g)

  • N | no_skip :: [Type => Bool]

    (http://docs.generic-mapping-tools.org/latest/grdtrack.html#n)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | stack :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/grdtrack.html#s)

  • T | radius :: [Type => Number, Str | []]

    (http://docs.generic-mapping-tools.org/latest/grdtrack.html#t)

  • Z | z_only :: [Type => Bool]

    (http://docs.generic-mapping-tools.org/latest/grdtrack.html#z)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • bo | binary_out :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary output. (http://docs.generic-mapping-tools.org/latest/gmt.html#bo-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • n | interp | interpol :: [Type => Str] $Arg = [b|c|l|n][+a][+bBC][+c][+tthreshold]$

    Select grid interpolation mode by adding b for B-spline smoothing, c for bicubic interpolation, l for bilinear interpolation, or n for nearest-neighbor value. (http://docs.generic-mapping-tools.org/latest/gmt.html#n-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • s | skip_NaN :: [Type => Str] $Arg = [cols][a|r]$

    Suppress output for records whose z-value equals NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#s-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

When using two numeric inputs and no G option, the order of the x,y and grid is not important. That is, both of this will work: D = grdtrack([0 0], G); or D = grdtrack(G, [0 0]);

GMT.grdtrendFunction
grdtrend(cmd0::String="", arg1=nothing, arg2=nothing; kwargs...)

reads a 2-D grid file and fits a low-order polynomial trend to these data by [optionally weighted] least-squares.

Full option list at grdtrend

Parameters

  • N | model :: [Type => Str | Number]

    Sets the number of model parameters to fit. (http://docs.generic-mapping-tools.org/latest/grdtrend.html#n)

  • D | diff :: [Type => Str | []]

    Compute the difference (input data - trend). Optionaly provide a file name to save result on disk. (http://docs.generic-mapping-tools.org/latest/grdtrend.html#d)

  • T | trend :: [Type => Str | []]

    Compute the trend surface. Optionaly provide a file name to save result on disk. (http://docs.generic-mapping-tools.org/latest/grdtrend.html#t)

  • W | weights :: [Type => Str]

    If weight.nc exists, it will be read and used to solve a weighted least-squares problem. (http://docs.generic-mapping-tools.org/latest/grdtrend.html#w)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

GMT.grdvectorFunction
grdvector(cmd0::String="", arg1=nothing, arg2=nothing, kwargs...)

Takes two 2-D grid files which represents the x- and y-components of a vector field and produces a vector field plot by drawing vectors with orientation and length according to the information in the files. Alternatively, polar coordinate r, theta grids may be given instead.

Full option list at grdvector

Parameters

  • A | polar :: [Type => Bool]

    The grid contain polar (r, theta) components instead of Cartesian (x, y) [Default is Cartesian components]. (http://docs.generic-mapping-tools.org/latest/grdvector.html#a)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • G | fill :: [Type => Str | Number]

    Sets color or shade for vector interiors [Default is no fill]. (http://docs.generic-mapping-tools.org/latest/grdvector.html#g)

  • I | inc :: [Type => Sytr | Number] $Arg=[x]dx[/dy]$

    Only plot vectors at nodes every xinc, yinc apart (must be multiples of original grid spacing). (http://docs.generic-mapping-tools.org/latest/grdvector.html#i)

  • N | noclip | no_clip :: [Type => Bool]

    Do NOT clip symbols that fall outside map border (http://docs.generic-mapping-tools.org/latest/grdvector.html#n)

  • Q | vec | vector | arrow :: [Type => Str]

    Modify vector parameters. For vector heads, append vector head size [Default is 0, i.e., stick-plot]. (http://docs.generic-mapping-tools.org/latest/grdvector.html#q)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | vec_scale :: [Type => Str | Number] $Arg = [i|l]scale[unit]$

    Sets scale for vector plot length in data units per plot distance measurement unit [1]. (http://docs.generic-mapping-tools.org/latest/grdvector.html#s)

  • T | sign_scale :: [Type => Bool]

    Means the azimuths of Cartesian data sets should be adjusted according to the signs of the scales in the x- and y-directions [Leave alone]. (http://docs.generic-mapping-tools.org/latest/grdvector.html#t)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • W | pen :: [Type => Str | Number]

    Sets the attributes for the particular line. (http://docs.generic-mapping-tools.org/latest/grdvector.html#w)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • Z | azimuth :: [Type => Bool]

    The theta grid provided contains azimuths rather than directions (implies -A). (http://docs.generic-mapping-tools.org/latest/grdvector.html#z)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

GMT.grdviewFunction
grdview(cmd0::String="", arg1=nothing, arg2=nothing, arg3=nothing; kwargs...)

Reads a 2-D grid and produces a 3-D perspective plot by drawing a mesh, painting a colored/grayshaded surface made up of polygons, or by scanline conversion of these polygons to a raster image.

Full option list at grdview

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • Jz | zscale | zsize :: [Type => String]

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | color | cmap :: [Type => Str] $Arg = [cpt |master[+izinc] |color1,color2[,*color3*,…]]$

    Give a CPT name or specify -Ccolor1,color2[,color3,...] to build a linear continuous CPT from those colors automatically. (http://docs.generic-mapping-tools.org/latest/grdimage.html#c)

  • G | drapefile :: [Type => Str | GMTgrid | a Tuple with 3 GMTgrid types]

    Drape the image in drapefile on top of the relief provided by relief_file. (http://docs.generic-mapping-tools.org/latest/grdview.html#g)

  • I | shade | shading | intensity :: [Type => Str | GMTgrid] $Arg = GMTgrid | filename$

    Gives the name of a grid file or GMTgrid with intensities in the (-1,+1) range, or a grdgradient shading flags. (http://docs.generic-mapping-tools.org/latest/grdview.html#i)

  • N | plane :: [Type => Str | Int] $Arg = (level [,fill])$

    Draws a plane at this z-level. (http://docs.generic-mapping-tools.org/latest/grdview.html#n)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • Q | surftype | surf :: [Type => Str | Int] $Arg = mesh=Bool, surface=Bool, image=Bool, wterfall=(:rows|cols,[fill])$

    Specify m for mesh plot, s for surface, i for image. (http://docs.generic-mapping-tools.org/latest/grdview.html#q)

  • S | smoothfactor :: [Type => Number]

    Used to resample the contour lines at roughly every (gridbox_size/smoothfactor) interval.. (http://docs.generic-mapping-tools.org/latest/grdview.html#s)

  • T | tiles | no_interp :: [Type => Str | NT] $Arg = (skip|skip_nan=Bool, outlines=Bool|pen)$

    Plot image without any interpolation. (http://docs.generic-mapping-tools.org/latest/grdview.html#t)

  • W | pens | pen :: [Type => Str] $Arg = (contour=Bool|pen, mesh=Bool|pen, facade=Bool|pen)$

    Draw contour, mesh or facade. Append pen attributes. (http://docs.generic-mapping-tools.org/latest/grdview.html#w)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • n | interp | interpol :: [Type => Str] $Arg = [b|c|l|n][+a][+bBC][+c][+tthreshold]$

    Select grid interpolation mode by adding b for B-spline smoothing, c for bicubic interpolation, l for bilinear interpolation, or n for nearest-neighbor value. (http://docs.generic-mapping-tools.org/latest/gmt.html#n-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

GMT.grdvolumeFunction
grdvolume(cmd0::String="", arg1=nothing, kwargs...)

Reads one 2-D grid and returns xyz-triplets.

Full option list at grdvolume

Parameters

  • C | cont | contour :: [Type => Str | List] $Arg = cval or low/high/delta or rlow/high or rcval$

    Find area, volume and mean height (volume/area) inside the cval contour. (http://docs.generic-mapping-tools.org/latest/grdvolume.html#c)

  • L | base_level :: [Type => Number] $Arg = base$

    Also add in the volume from the level of the contour down to base [Default base is contour]. (http://docs.generic-mapping-tools.org/latest/grdvolume.html#l)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | unit :: [Type => Str] $Arg = e|f|k|M|n|u$

    For geographical grids, append a unit from e|f|k|M|n|u [Default is meter (e)]. (http://docs.generic-mapping-tools.org/latest/grdvolume.html#s)

  • T :: [Type => Str] $Arg = [c|h]$

    Determine the single contour that maximized the average height (= volume/area). (http://docs.generic-mapping-tools.org/latest/grdvolume.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • Z | scale :: [Type => Str or List] $Arg = fact[/shift]$

    Optionally subtract shift before scaling data by fact. [Default is no scaling]. (http://docs.generic-mapping-tools.org/latest/grdvolume.html#z)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

GMT.greensplineFunction
greenspline(cmd0::String="", arg1=nothing; kwargs...)

Reads randomly-spaced (x,y,z) triples and produces a binary grid file of gridded values z(x,y) by solving:

	(1 - T) * L (L (z)) + T * L (z) = 0

Full option list at greenspline

Parameters

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • I | inc :: [Type => Str | Number]

    x_inc [and optionally y_inc] is the grid spacing. (http://docs.generic-mapping-tools.org/latest/greenspline.html#i)

  • A | gradient :: [Type => Str | Array] $Arg = gradfile+f1|2|3|4|5 | (data=Array, format=x)$

    The solution will partly be constrained by surface gradients v = v*n, where v is the gradient magnitude and n its unit vector direction. (http://docs.generic-mapping-tools.org/latest/greenspline.html#a)

  • C | approx | approximate :: [Type => Str | Number] $Arg = [n]value[+ffile]$

    Find an approximate surface fit: Solve the linear system for the spline coefficients by SVD and eliminate the contribution from all eigenvalues whose ratio to the largest eigenvalue is less than value. (http://docs.generic-mapping-tools.org/latest/greenspline.html#c)

  • G | grid :: [Type => Str | []]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = greenspline(....) form. (http://docs.generic-mapping-tools.org/latest/greenspline.html#g)

  • D | mode :: [Type => Number]

    Sets the distance flag that determines how we calculate distances between data points. (http://docs.generic-mapping-tools.org/latest/greenspline.html#d)

  • E :|misfit :: [Type => Str | []] $Arg = [misfitfile]$

    Evaluate the spline exactly at the input data locations and report statistics of the misfit (mean, standard deviation, and rms). (http://docs.generic-mapping-tools.org/latest/greenspline.html#e)

  • L | leave_trend :: [Type => Bool]

    Do not remove a linear (1-D) or planer (2-D) trend when -D selects mode 0-3. (http://docs.generic-mapping-tools.org/latest/greenspline.html#l)

  • N | nodes :: [Type => Number | Array] $Arg = nodefile$

    ASCII file with coordinates of desired output locations x in the first column(s). (http://docs.generic-mapping-tools.org/latest/greenspline.html#n)

  • Q | dir_derivative :: [Type => Str] $Arg = az|x/y/z$

    Rather than evaluate the surface, take the directional derivative in the az azimuth and return the magnitude of this derivative instead. (http://docs.generic-mapping-tools.org/latest/greenspline.html#q)

  • S | splines :: [Type => Str] $Arg = c|t|l|r|p|q[pars]$

    Select one of six different splines. The first two are used for 1-D, 2-D, or 3-D Cartesian splines. (http://docs.generic-mapping-tools.org/latest/greenspline.html#s)

  • T | mask :: [Type => Str] $Arg = maskgrid$

    For 2-D interpolation only. Only evaluate the solution at the nodes in the maskgrid that are not equal to NaN. (http://docs.generic-mapping-tools.org/latest/greenspline.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • W | uncertainties :: [Type => Str | []] $Arg = [w]$

Data one-sigma uncertainties are provided in the last column. We then compute weights that
are inversely proportional to the uncertainties squared.
(http://docs.generic-mapping-tools.org/latest/greenspline.html#w)
  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • x | cores | n_threads :: [Type => Str or Number] $Arg = [[-]n]$

    Limit the number of cores to be used in any OpenMP-enabled multi-threaded algorithms. (http://docs.generic-mapping-tools.org/latest/gmt.html#x-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.histogramFunction
histogram(cmd0::String="", arg1=nothing; kwargs...)

Examines the first data column to calculate histogram parameters based on the bin-width provided. Alternatively, show histograms of GMTimage & GMTgrid objects directly. In the GMTimage case, the options 'auto=true' or 'thresholds=(0, 0.1)' will find the histogram bounds of UInt16 images convenient for contrast enhancement (histogram stretch). The values represent the percentage of countings used to estimate the boundings. The option 'zoom=true' will set 'auto=true' and show histogram only on the region of interest.

Full option list at pshistogram

Parameters

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • A | horizontal :: [Type => Bool]

    Plot the histogram horizontally from x = 0 [Default is vertically from y = 0]. (http://docs.generic-mapping-tools.org/latest/histogram.html#a)

  • Jz | zscale | zsize :: [Type => String]

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | color | cmap :: [Type => Str | GMTcpt]

    Give a CPT. The mid x-value for each bar is used to look-up the bar color. (http://docs.generic-mapping-tools.org/latest/histogram.html#c)

  • D | annot | annotate | counts :: [Type => Str | Tuple]

    Annotate each bar with the count it represents. (http://docs.generic-mapping-tools.org/latest/histogram.html#d)

  • E | width :: [Type => Bool] Arg = width[+ooffset]

    Use an alternative histogram bar width than the default set via T, and optionally shift all bars by an offset. (http://docs.generic-mapping-tools.org/latest/histogram.html#e)

  • binmethod | *BinMethod** :: [Type => Str] Arg = method

Binning algorithm: "scott", "fd", "sturges" or "sqrt" for floating point data. "second", "minute", "hour",
"day", "week", "month" or "year" for DateTime data.
  • F | center :: [Type => Bool]

    Center bin on each value. [Default is left edge]. (http://docs.generic-mapping-tools.org/latest/histogram.html#f)

  • G | fill :: [Type => Number | Str]

    Select filling of bars [if no G, L or C set G=100]. (http://docs.generic-mapping-tools.org/latest/histogram.html#g)

  • I | inquire | bins :: [Type => Bool | :O | :o | bins=(all=true,) | bins=(no_zero=true,) ]

    Inquire about min/max x and y after binning OR output the binned array. (http://docs.generic-mapping-tools.org/latest/histogram.html#i)

  • L | out_range :: [Type => Str] Arg = l|h|b

    Handling of extreme values that fall outside the range set by T. (http://docs.generic-mapping-tools.org/latest/histogram.html#l)

  • N | distribution :: [Type => Str]

    Draw the equivalent normal distribution; append desired pen [0.5p,black]. (http://docs.generic-mapping-tools.org/latest/histogram.html#n)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • Q | cumulative :: [Type => Bool | "r"]

    Draw a cumulative histogram. Append r to instead compute the reverse cumulative histogram. (http://docs.generic-mapping-tools.org/latest/histogram.html#q)

  • R | region :: [Type => Str]

    Specifies the ‘region’ of interest in (r,azimuth) space. r0 is 0, r1 is max length in units. (http://docs.generic-mapping-tools.org/latest/histogram.html#r)

  • S | stairs :: [Type => Str | number]

    Draws a stairs-step diagram which does not include the internal bars of the default histogram. (http://docs.generic-mapping-tools.org/latest/histogram.html#s)

  • T | range | bin :: [Type => Str] Arg = [min/max/]inc[+n] | file|list]

    Defines the range of the new CPT by giving the lowest and highest z-value and interval. (http://docs.generic-mapping-tools.org/latest/histogram.html#t)

  • W | pen :: [Type => Str | Tuple]

Set pen attributes for sector outline or rose plot. [Default is no outline].
(http://docs.generic-mapping-tools.org/latest/histogram.html#w)
  • Z | kind :: [Type => Number | Str]

    Choose between 6 types of histograms. (http://docs.generic-mapping-tools.org/latest/histogram.html#z)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.hlinesFunction
hlines(arg; decorated=(...), kwargs...)

Plots one or a collection of horizontal lines with eventual decorations

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • W | pen | line_attrib :: [Type => Str]

    Set pen attributes for the horizontal lines (http://docs.generic-mapping-tools.org/latest/plot.html#w)

Example:

plot(rand(5,3))
hlines!([0.2, 0.6], pen=(1, :red), show=true)
GMT.imageFunction
image(cmd0::String="", arg1=nothing; kwargs...)

Place images or EPS files on maps.

Full option list at psimage

Parameters

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • D | pos | position :: [Type => Str]

    Sets reference point on the map for the image using one of four coordinate systems. (http://docs.generic-mapping-tools.org/latest/image.html#d)

  • F | box :: [Type => Str | []]

    Without further options, draws a rectangular border around the image using MAPFRAMEPEN. (http://docs.generic-mapping-tools.org/latest/image.html#f)

  • I | invert_1bit :: [Type => Str | Number]

    Invert 1-bit image before plotting. (http://docs.generic-mapping-tools.org/latest/image.html#i)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • Jz | zscale | zsize :: [Type => String]

  • M | monochrome :: [Type => Bool]

    Convert color image to monochrome grayshades using the (television) YIQ-transformation. (http://docs.generic-mapping-tools.org/latest/image.html#m)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

GMT.image_alpha!Method

I = imagealpha!(img::GMTimage; alphaind::Integer, alphavec::Integer, alphaband::UInt8)

Change the alpha transparency of the GMTimage object 'img'. If the image is indexed, one can either
change just the color index that will be made transparent by uing 'alpha_ind=n' or provide a vector
of transaparency values in the range [0 255]; This vector can be shorter than the orginal number of colors.
Use 'alpha_band' to change, or add, the alpha of true color images (RGB).

Example1: change to the third color in cmap to represent the new transparent color
    image_alpha(img, alpha_ind=3)

Example2: change to the first 6 colors in cmap by assigning them random values
    image_alpha(img, alpha_vec=round.(Int32,rand(6).*255))
GMT.imshowFunction
imshow(arg1; kw...)

Is a simple front end to the grdimagegrdview programs that accepts GMTgrid, GMTimage, 2D array of floats or strings with file names of grids or images. The normal options of the grdimage and grdview programs also apply here but some clever guessing of suitable necessary parameters is done if they are not provided. Contrary to other image producing modules the "show' keyword is not necessary to display the image. Here it is set by default. If user wants to use imshow to create layers of a more complex fig he can use show=false for the intermediate layers.

This module uses some internal logic to decide whether use grdimge or grdview. Namely, when the view option is used grdview is choosed and a default vertical scale is assigned. However, sometimes we want a rotated plot, optionallt tilted, but not 3D view. In that case use the option flat=true, which forces the use of grdimage.

Examples

# Plot vertical shaded illuminated view of the Mexican hat
julia> G = gmt("grdmath -R-15/15/-15/15 -I0.3 X Y HYPOT DUP 2 MUL PI MUL 8 DIV COS EXCH NEG 10 DIV EXP MUL =");
julia> imshow(G, shade="+a45")

# Same as above but add automatic contours
julia> imshow(G, shade="+a45", contour=true)

# Plot a random heat map
julia> imshow(rand(128,128))

# Display a web downloaded jpeg image wrapped into a sinusoidal projection
julia> imshow("http://larryfire.files.wordpress.com/2009/07/untooned_jessicarabbit.jpg", region="d", frame="g", proj="I15", img_in="r", fmt=:jpg)

See also: grdimage

GMT.kml2gmtFunction
kml2gmt(cmd0::String="", arg1=nothing, kwargs...)

kml2gmt - Extract GMT table data from Google Earth KML files

Full option list at kml2gmt

Parameters

  • F | select :: [Type => Str] $Arg = s|l|p$

    Specify a particular feature type to output. Choose from points (s), line (l), or polygon (p). By default we output all geometries. (http://docs.generic-mapping-tools.org/latest/kml2gmt.html#f)

  • Z | altitudes :: [Type => Bool]

    Output the altitude coordinates as GMT z coordinates [Default will output just longitude and latitude]. (http://docs.generic-mapping-tools.org/latest/kml2gmt.html#z)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • bo | binary_out :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary output. (http://docs.generic-mapping-tools.org/latest/gmt.html#bo-full)

  • do | nodata_out :: [Type => Str or Number] $Arg = nodata$

    Examine all output columns and if any item equals NAN substitute it with the chosen missing data value. (http://docs.generic-mapping-tools.org/latest/gmt.html#do-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.legendFunction
legend(cmd0::String="", arg1=nothing; kwargs...)

Make legends that can be overlaid on maps. It reads specific legend-related information from input or file file.

Full option list at legend

Parameters

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | clearance :: [Type => Str]

    Sets the clearance between the legend frame and the internal items [4p/4p]. (http://docs.generic-mapping-tools.org/latest/legend.html#c)

  • D | pos | position :: [Type => Str] Arg=[g|j|J|n|x]refpoint+wwidth[/height][+jjustify][+lspacing][+odx[/dy]]

    Defines the reference point on the map for the legend using one of four coordinate systems. (http://docs.generic-mapping-tools.org/latest/legend.html#d)

  • F | box :: [Type => Str | Number] Arg=[+cclearances][+gfill][+i[[gap/]pen]][+p[pen]][+r[radius]][+s[[dx/dy/][shade]]]

    Without further options, draws a rectangular border around the legend using MAPFRAMEPEN. (http://docs.generic-mapping-tools.org/latest/legend.html#f)

  • Jz | zscale | zsize :: [Type => String]

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.linesFunction
lines(cmd0::String="", arg1=nothing; decorated=(...), kwargs...)

Reads a file or (x,y) pairs and plots a collection of different line with decorations

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • W | pen | line_attrib :: [Type => Str]

    Set pen attributes for lines or the outline of symbols (http://docs.generic-mapping-tools.org/latest/plot.html#w)

Examples:

lines([0, 10]; [0, 20], limits=(-2,12,-2,22), proj="M2.5", pen=1, fill=:red,
	  decorated=(dist=(val=1,size=0.25), symbol=:box), show=true)

lines(x -> cos(x) * x, y -> sin(y) * y, linspace(0,2pi,100), region=(-4,7,-5.5,2.5), lw=2, lc=:sienna,
      decorated=(quoted=true, const_label=" In Vino Veritas  - In Aqua, Rãs & Toads", font=(25,"Times-Italic"),
                 curved=true, pen=(0.5,:red)), aspect=:equal, fmt=:png, show=true)
Function
logo(cmd0::String=""; kwargs...)

Plots the GMT logo on a map. By default, the GMT logo is 5 cm wide and 2.5 cm high and will be positioned relative to the current plot origin. Use various options to change this and to place a transparent or opaque rectangular map panel behind the GMT logo.

Full option list at gmtlogo

Parameters

  • D | pos | position :: [Type => Str]

    Sets reference point on the map for the image using one of four coordinate systems. (http://docs.generic-mapping-tools.org/latest/gmtlogo.html#d)

  • F | box :: [Type => Str]

    Without further options, draws a rectangular border around the GMT logo using MAP_FRAME_PEN. or map rose (T) (http://docs.generic-mapping-tools.org/latest/gmtlogo.html#f)

  • julia :: [Type => Number]

    Create the Julia instead of the GMT logo. Provide circle diameter in centimeters

  • GMTjulia :: [Type => Number]

    Create the GMT Julia GMT logo. Provide circle diameter in centimeters

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • Jz | zscale | zsize :: [Type => String]

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

  • Example, make a GMT Julia logo with circles of 1 cm: logo(GMTjulia=1, show=true)

GMT.makecptFunction
makecpt(cmd0::String="", arg1=nothing; kwargs...)

Make static color palette tables (CPTs).

Full option list at makecpt

  • A | alpha | transparency :: [Type => Str]

    Sets a constant level of transparency (0-100) for all color slices. (http://docs.generic-mapping-tools.org/latest/makecpt.html#a)

  • C | color | cmap :: [Type => Str] $Arg = [cpt |master[+izinc] |color1,color2[,*color3*,…]]$

    Give a CPT name or specify -Ccolor1,color2[,color3,...] to build a linear continuous CPT from those colors automatically. (http://docs.generic-mapping-tools.org/latest/grdimage.html#c)

  • D | bg | background :: [Type => Str | []] Arg = [i|o]

    Select the back- and foreground colors to match the colors for lowest and highest z-values in the output CPT. (http://docs.generic-mapping-tools.org/latest/makecpt.html#d)

  • E | nlevels :: [Type => Int | []] Arg = [nlevels]

    Implies reading data table(s) from file or arrays. We use the last data column to determine the data range (http://docs.generic-mapping-tools.org/latest/makecpt.html#e)

  • F | color_model :: [Type => Str | []] Arg = [R|r|h|c][+c]]

    Force output CPT to written with r/g/b codes, gray-scale values or color name. (http://docs.generic-mapping-tools.org/latest/makecpt.html#f)

  • G | truncate :: [Type => Str] Arg = zlo/zhi

    Truncate the incoming CPT so that the lowest and highest z-levels are to zlo and zhi. (http://docs.generic-mapping-tools.org/latest/makecpt.html#g)

  • H | save :: [Type => Bool]

    Modern mode only: Write the CPT to disk [Default saves the CPT as the session current CPT]. Required for scripts used to make animations via movie where we must pass named CPT files. (http://docs.generic-mapping-tools.org/latest/makecpt.html#h)

  • I | inverse | reverse :: [Type => Str] Arg = [c][z]

    Reverse the sense of color progression in the master CPT. (http://docs.generic-mapping-tools.org/latest/makecpt.html#i)

  • M | overrule_bg :: [Type => Bool]

    Overrule background, foreground, and NaN colors specified in the master CPT with the values of the parameters COLORBACKGROUND, COLORFOREGROUND, and COLOR_NAN. (http://docs.generic-mapping-tools.org/latest/makecpt.html#m)

  • N | no_bg | nobg :: [Type => Bool]

    Do not write out the background, foreground, and NaN-color fields. (http://docs.generic-mapping-tools.org/latest/makecpt.html#n)

  • Q | log :: [Type => Bool | Str] Arg = [i|o]

    Selects a logarithmic interpolation scheme [Default is linear]. (http://docs.generic-mapping-tools.org/latest/makecpt.html#q)

  • S | auto :: [Type => Bool | Str] Arg = [mode]

    Determine a suitable range for the -T option from the input table(s) (or stdin). (http://docs.generic-mapping-tools.org/latest/makecpt.html#s)

  • T | range :: [Type => Str] Arg = [min/max/inc[+b|l|n]|file|list]

    Defines the range of the new CPT by giving the lowest and highest z-value and interval. (http://docs.generic-mapping-tools.org/latest/makecpt.html#t)

  • W | wrap | categorical :: [Type => Bool | Str | []] Arg = [w]

    Do not interpolate the input color table but pick the output colors starting at the beginning of the color table, until colors for all intervals are assigned. (http://docs.generic-mapping-tools.org/latest/makecpt.html#w)

  • Z | continuous :: [Type => Bool]

    Creates a continuous CPT [Default is discontinuous, i.e., constant colors for each interval]. (http://docs.generic-mapping-tools.org/latest/makecpt.html#z)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

GMT.mapprojectFunction
mapproject(cmd0::String="", arg1=nothing, kwargs...)

Forward and inverse map transformations, datum conversions and geodesy.

Full option list at mapproject

Parameters

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • A | origin :: [Type => Str] $Arg = b|B|f|F|o|O[lon0/lat0][+v]$

    Calculate azimuth along track or to the optional fixed point set with lon0/lat0. (http://docs.generic-mapping-tools.org/latest/mapproject.html#a)

  • C | center :: [Type => Str | List | []] $Arg = [dx/dy]$

    Set center of projected coordinates to be at map projection center [Default is lower left corner]. (http://docs.generic-mapping-tools.org/latest/mapproject.html#c)

  • D | override_units :: [Type => Str] $Arg = c|i|p$

    Temporarily override PROJLENGTHUNIT and use c (cm), i (inch), or p (points) instead. (http://docs.generic-mapping-tools.org/latest/mapproject.html#d)

  • E | geod2ecef | ecef :: [Type => Str | []] $Arg = [datum]$

    Convert from geodetic (lon, lat, height) to Earth Centered Earth Fixed (ECEF) (x,y,z) coordinates. (http://docs.generic-mapping-tools.org/latest/mapproject.html#e)

  • F | one2one :: [Type => Str | []] $Arg = [unit]$

    Force 1:1 scaling, i.e., output (or input, see I) data are in actual projected meters. (http://docs.generic-mapping-tools.org/latest/mapproject.html#f)

  • G | track_distances :: [Type => Str | List] $Arg = [lon0/lat0][+a][+i][+u[+|-]unit][+v]$

    Calculate distances along track or to the optional fixed point set with G="lon0/lat0". (http://docs.generic-mapping-tools.org/latest/mapproject.html#g)

  • I | inverse :: [Type => Bool]

    Do the Inverse transformation, i.e., get (longitude,latitude) from (x,y) data. (http://docs.generic-mapping-tools.org/latest/mapproject.html#i)

  • L | dist2line :: [Type => Str | NamedTuple] $Arg = line.xy[+u[+|-]unit][+p] | (line=Matrix, unit=x, fractional_pt=_,cartesian=true, projected=true)$

    Determine the shortest distance from the input data points to the line(s) given in the ASCII multisegment file line.xy. (http://docs.generic-mapping-tools.org/latest/mapproject.html#l)

  • N | geod2aux :: [Type => Str | []] $Arg = [a|c|g|m]$

    Convert from geodetic latitudes to one of four different auxiliary latitudes (longitudes are unaffected). (http://docs.generic-mapping-tools.org/latest/mapproject.html#n)

  • Q | list :: [Type => Str | []] $Arg = [d|e]$

    List all projection parameters. To only list datums, use Q=:d, to only list ellipsoids, use Q=:e. (http://docs.generic-mapping-tools.org/latest/mapproject.html#q)

  • S | supress :: [Type => Bool]

    Suppress points that fall outside the region. (http://docs.generic-mapping-tools.org/latest/mapproject.html#s)

  • T | change_datum :: [Type => Str] $Arg = [h]from[/to]$

    Coordinate conversions between datums from and to using the standard Molodensky transformation. (http://docs.generic-mapping-tools.org/latest/mapproject.html#t)

  • W | map_size :: [Type => Str | []] $Arg = [w|h]$

    Prints map width and height on standard output. No input files are read. (http://docs.generic-mapping-tools.org/latest/mapproject.html#w)

  • Z | travel_times :: [Type => Str | Number] $Arg = [speed][+a][+i][+f][+tepoch]$

    Calculate travel times along track as specified with -G. (http://docs.generic-mapping-tools.org/latest/mapproject.html#z)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • s | skip_NaN :: [Type => Str] $Arg = [cols][a|r]$

    Suppress output for records whose z-value equals NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#s-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.maskFunction
mask(cmd0::String="", arg1=nothing; kwargs...)

Reads (length,azimuth) pairs from file and plot a windmask diagram.

Full option list at psmask

Parameters

  • I | inc :: [Type => Number | Str]

    Set the grid spacing. (http://docs.generic-mapping-tools.org/latest/mask.html#i)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | endclippath :: [Type => Bool]

    Mark end of existing clip path. No input file is needed. (http://docs.generic-mapping-tools.org/latest/mask.html#c)

  • D | dump :: [Type => Str]

    Dump the (x,y) coordinates of each clipping polygon to one or more output files (or stdout if template is not given). (http://docs.generic-mapping-tools.org/latest/mask.html#d)

  • F | oriented_polygons :: [Type => Str | []]

    Force clip contours (polygons) to be oriented so that data points are to the left (-Fl [Default]) or right (-Fr) (http://docs.generic-mapping-tools.org/latest/mask.html#f)

  • G | fill :: [Type => Number | Str]

    Set fill shade, color or pattern for positive and/or negative masks [Default is no fill]. (http://docs.generic-mapping-tools.org/latest/mask.html#g)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • Jz | zscale | zsize :: [Type => String]

  • L | node_grid :: [Type => Str]

    Save the internal grid with ones (data constraint) and zeros (no data) to the named nodegrid. (http://docs.generic-mapping-tools.org/latest/mask.html#l)

  • N | invert :: [Type => Bool]

    Invert the sense of the test, i.e., clip regions where there is data coverage. (http://docs.generic-mapping-tools.org/latest/mask.html#n)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • Q | cut_number :: [Type => Number | Str]

    Do not dump polygons with less than cut number of points [Dumps all polygons]. (http://docs.generic-mapping-tools.org/latest/mask.html#q)

  • S | search_radius :: [Type => Number | Str]

    Sets radius of influence. Grid nodes within radius of a data point are considered reliable. (http://docs.generic-mapping-tools.org/latest/mask.html#s)

  • T | tiles :: [Type => Bool]

    Plot tiles instead of clip polygons. Use -G to set tile color or pattern. Cannot be used with -D. (http://docs.generic-mapping-tools.org/latest/mask.html#t)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.mat2dsFunction

D = mat2ds(mat [,txt]; x=nothing, hdr=nothing, color=nothing, fill=nothing, ls=nothing, text=nothing, multi=false)

Take a 2D `mat` array and convert it into a GMTdataset. `x` is an optional coordinates vector (must have the
same number of elements as rows in `mat`). Use `x=:ny` to generate a coords array 1:n_rows of `mat`.
`hdr` optional String vector with either one or n_rows multisegment headers.
`color` optional array os strings with color names/values. Its length can be smaller than n_rows, case in
which colors will be cycled.
`linethick`, or `lt` for selecting different line thicknesses. Work alike `color`, but should be 
        a vector of numbers, or just a single number that is then appl	ied to all lines.
`fill`  Optional string array with color names or array of "patterns"
`ls`    Line style. A string or an array of strings with ``length = size(mat,1)`` with line styles.
`txt`   Return a Text record which is a Dataset with data = Mx2 and text in third column. The ``text``
        can be an array with same size as ``mat``rows or a string (will be reapeated n_rows times.) 
`multi` When number of columns in `mat` > 2, or == 2 and x != nothing, make an multisegment Dataset with
first column and 2, first and 3, etc. Convenient when want to plot a matrix where each column is a line.
GMT.mat2gridFunction

G = mat2grid(mat; reg=nothing, x=nothing, y=nothing, hdr=nothing, proj4::String="", wkt::String="", tit::String="", rem::String="", cmd::String="")

Take a 2D `mat` array and a HDR 1x9 [xmin xmax ymin ymax zmin zmax reg xinc yinc] header descriptor
and return a grid GMTgrid type.
Alternatively to HDR, provide a pair of vectors, x & y, with the X and Y coordinates.
Optionaly, the HDR arg may be ommited and it will computed from `mat` alone, but then x=1:ncol, y=1:nrow
When HDR is not used, REG == nothing [default] means create a gridline registration grid and REG == 1,
or REG="pixel" a pixel registered grid.

Other methods of this function do:

G = mat2grid([val]; hdr=hdr_vec, reg=nothing, proj4::String="", wkt::String="", tit::String="", rem::String="")

Create Float GMTgrid with size, coordinates and increment determined by the contents of the HDR var. This
array, which is now MANDATORY, has either the same meaning as above OR, alternatively, containng only
[xmin xmax ymin ymax xinc yinc]
VAL is the value that will be fill the matrix (default VAL = Float32(0)). To get a Float64 array use, for
example, VAL = 1.0 Ay other non Float64 will be converted to Float32
Example: mat2grid(1, hdr=[0. 5 0 5 1 1])

G = mat2grid(f::Function, x, y; reg=nothing, proj4::String="", wkt::String="", epsg::Int=0, tit::String="", rem::String="")

Whre F is a function and X,Y the vectors coordinates defining it's domain. Creates a Float32 GMTgrid with
size determined by the sizes of the X & Y vectors.
Example: f(x,y) = x^2 + y^2;  G = mat2grid(f, x = -2:0.05:2, y = -2:0.05:2)

G = mat2grid(f::String, x=nothing, y=nothing) Whre F is a pre-set function name. Currently available: "ackley", "eggbox", "sombrero", "parabola" and "rosenbrock" X,Y are vectors coordinates defining the function's domain, but default values are provided for each function. creates a Float32 GMTgrid. Example: G = mat2grid("sombrero")

GMT.mat2imgFunction

I = mat2img(mat::Array{<:Unsigned}; x=nothing, y=nothing, hdr=nothing, proj4::String="", wkt::String="", cmap=nothing, kw...)

Take a 2D 'mat' array and a HDR 1x9 [xmin xmax ymin ymax zmin zmax reg xinc yinc] header descriptor
and return a GMTimage type.
Alternatively to HDR, provide a pair of vectors, x & y, with the X and Y coordinates.
Optionaly, the HDR arg may be ommited and it will computed from 'mat' alone, but then x=1:ncol, y=1:nrow
When 'mat' is a 3D UInt16 array we automatically compute a UInt8 RGB image. In that case 'cmap' is ignored.
But if no conversion is wanted use option 'noconv=true'

I = mat2img(mat::Array{UInt16}; x=nothing, y=nothing, hdr=nothing, proj4::String="", wkt::String="", kw...)

Take a 'mat' array of UInt16 and scale it down to UInt8. Input can be 2D or 3D.
If the kw variable 'stretch' is used, we stretch the intervals in 'stretch' to [0 255].
Use this option to stretch the image histogram.
If 'stretch' is a scalar, scale the values > 'stretch' to [0 255]
stretch = [v1 v2] scales all values >= v1 && <= v2 to [0 255]
stretch = [v1 v2 v3 v4 v5 v6] scales firts band >= v1 && <= v2 to [0 255], second >= v3 && <= v4, same for third
stretch = :auto | "auto" | true | 1 will do an automatic stretching from values obtained from histogram thresholds
GMT.mbgetdataFunction
mbgetdata(cmd0::String=""; kwargs...)

Extract bathymetry, sidescan or amplitude data from datafiles.

Parameters

  • A | flagged :: [Type => Number] $Arg = value$

    Replace flagged beans with NaN. Use -A<val> to assign a constant value to the flagged beans.

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • C | datatype | data_type :: [Type => Number | Str | Tuple] $Arg = 0 or "a"$

    Output SideScan, or amplitude, instead of bathymetry. This case ignores A

  • D | scaling :: [Type => Str | Tuple] $Arg = <mode>/<ampscale>/<ampmin>/<ampmax>$

    Sets scaling of beam amplitude or sidescan pixel values which can be applied before plotting.

  • F | format :: [Type => Int]

    Sets the format for the input swath sonar data using MBIO integer format identifiers.

  • S | speed :: [Type => Number]

    Sets the parameters controlng simulated illumination of bathymetry.

  • T | timegap :: [Type => number]

    Sets the maximum time gap in minutes between adjacent pings before being considered a gap.

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • n | interp | interpol :: [Type => Str] $Arg = [b|c|l|n][+a][+bBC][+c][+tthreshold]$

    Select grid interpolation mode by adding b for B-spline smoothing, c for bicubic interpolation, l for bilinear interpolation, or n for nearest-neighbor value. (http://docs.generic-mapping-tools.org/latest/gmt.html#n-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

GMT.mbimportFunction
mbimport(cmd0::String="", arg1=nothing, arg2=nothing, arg3=nothing; kwargs...)

Produces a gray-shaded (or colored) map by plotting rectangles centered on each grid node and assigning them a gray-shade (or color) based on the z-value.

Parameters

  • A | footprint :: [Type => Str | Tuple] $Arg = factor/mode/depth$

    Determines how the along-track dimension of the beam or pixel footprints is calculated.

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • C | color | cmap :: [Type => Str] $Arg = [cpt |master[+izinc] |color1,color2[,*color3*,…]]$

    Give a CPT name or specify -Ccolor1,color2[,color3,...] to build a linear continuous CPT from those colors automatically. (http://docs.generic-mapping-tools.org/latest/grdimage.html#c)

  • D | scaling :: [Type => Str | Tuple] $Arg = mode/scale/min/max$

    Sets scaling of beam amplitude or sidescan pixel values which can be applied before plotting.

  • E | dpi :: [Type => Int]

    Sets the resolution of the projected image that will be created.

  • G | bit_color :: [Type => Str | Tuple] $Arg = magnitude/azimuth or magnitude/median$

    Sets the parameters controlng simulated illumination of bathymetry.

  • S | speed :: [Type => Number]

    Sets the minimum speed in km/hr (5.5 kts ~ 10 km/hr) allowed in the input data.

  • T | timegap :: [Type => number]

    Sets the maximum time gap in minutes between adjacent pings before being considered a gap.

  • Z | type_plot :: [Type => Str | Number]

    Sets the style of the plot.

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • n | interp | interpol :: [Type => Str] $Arg = [b|c|l|n][+a][+bBC][+c][+tthreshold]$

    Select grid interpolation mode by adding b for B-spline smoothing, c for bicubic interpolation, l for bilinear interpolation, or n for nearest-neighbor value. (http://docs.generic-mapping-tools.org/latest/gmt.html#n-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

GMT.mblevitusFunction
mblevitus(cmd0::String=""; kwargs...)

Create a water velocity profile which is representative of the mean annual water column for a specified 1 degree by 1 degree region.

Parameters

  • A | all4 :: [Type => Bool]

    Pint also depth, velocity, temperature, salinity.

  • L | location :: [Type => Str | Tuple] $Arg = lon/lat$

    Sets the longitude and latitude of the location of the water velocity profile.

  • O | outfile | out_file :: [Type => Str]

    Write the SVP to <outfile>.

  • H | help :: [Type => Bool]

    Print out program's description.

  • z | z_down :: [Type => Bool]

    Makes Z axes positive down (default here is Z-up).

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

GMT.mbsvplistFunction
mbsvplist(cmd0::String=""; kwargs...)

List water sound velocity profiles in swath sonar data files.

Parameters

  • C | uniquesvp :: [Type => Bool]

    Output the number of unique SVPs in each file.

  • F | format :: [Type => Int]

    Sets the format for the input swath sonar data.

  • M | mode :: [Type => Int] $Arg = 1 or 2 or 3$

    Sets the SVP output mode..

  • S | ssv :: [Type => Bool]

    Sets the minimum speed in km/hr (5.5 kts ~ 10 km/hr) allowed in the input data.

  • Z | firstiszero :: [Type => Bool]

    Sets the style of the plot.

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

GMT.mecaFunction
meca(cmd0::String="", arg1=nothing; kwargs...)

Plot focal mechanisms.

Full option list at meca

Parameters

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | offset :: [Type => Bool | Str | GMTcpt]

    Offsets focal mechanisms to the longitude, latitude specified in the last two columns of the input (http://docs.generic-mapping-tools.org/latest/meca.html#c)

  • D | depth_limits :: [Type => Str | Tuple]

    Plots events between depmin and depmax. (http://docs.generic-mapping-tools.org/latest/meca.html#d)

  • E | fill_extensive :: [Type => Str | Number]

    Selects filling of extensive quadrants. [Default is white]. (http://docs.generic-mapping-tools.org/latest/meca.html#e)

  • Fa | Fe | Fg | Fo | Fp | Fr | Ft | Fz :: [Type => ]

    Sets one or more attributes. (http://docs.generic-mapping-tools.org/latest/meca.html#f)

  • G | fill :: [Type => Str | Number]

    Selects shade, color or pattern for filling the sectors [Default is no fill]. (http://docs.generic-mapping-tools.org/latest/meca.html#g)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • L | outline_pen | pen_outline :: [Type => Str | Number | Tuple]

    Draws the “beach ball” outline with pen attributes instead of with the default pen set by pen (http://docs.generic-mapping-tools.org/latest/meca.html#l)

  • M | same_size | samesize :: [Type => Bool]

    Use the same size for any magnitude. Size is given with S (http://docs.generic-mapping-tools.org/latest/meca.html#m)

  • N | no_clip | noclip :: [Type => Str | []]

    Do NOT skip symbols that fall outside frame boundary. (http://docs.generic-mapping-tools.org/latest/meca.html#n)

  • Sc|aki | Sc|CMT|gcmt | Sm|mt|moment_tensor | ... :: [Type => Str]

    Selects the meaning of the columns in the input data. (http://docs.generic-mapping-tools.org/latest/meca.html#s)

  • T | nodal :: [Type => Number | Str]

    Plots the nodal planes and outlines the bubble which is transparent. (http://docs.generic-mapping-tools.org/latest/meca.html#t)

  • W | pen :: [Type => Str | Tuple]

    Set pen attributes for all lines and the outline of symbols. (http://docs.generic-mapping-tools.org/latest/meca.html#w)

  • Z | color | cmap :: [Type => Number | Str | GMTcpt]

    Give a CPT and let compressive part color be determined by the z-value in the third column. (http://docs.generic-mapping-tools.org/latest/meca.html#z)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

Example: Plot a focal mechanism using the Aki & Richards convention

    psmeca([0.0 3.0 0.0 0 45 90 5 0 0], aki=true, fill=:black, region=(-1,4,0,6), proj=:Merc, show=1)

The same but add a Label

    psmeca(mat2ds([0.0 3.0 0.0 0 45 90 5 0 0], "Thrust"), aki=true, fill=:black, region=(-1,4,0,6), proj=:Merc, show=1)
GMT.movieMethod
movie(main; pre=nothing, post=nothing, kwargs...)

Create animation sequences and movies.

Full option list at movie

Parameters

  • main :: [Type => Str]

    Name of a stand-alone GMT.jl script that makes the frame-dependent plot.``

  • C | canvas :: [Type => Str]

    Specify the canvas size used when composing the movie frames. (http://docs.generic-mapping-tools.org/latest/movie.html#c)

  • N | name :: [Type => Str]

    Determines the name of a sub-directory with frame images as well as the final movie file. (http://docs.generic-mapping-tools.org/latest/movie.html#n)

  • T | frames :: [Type => Int | Str]

    Either specify how many image frames to make or supply a file with a set of parameters, one record per frame (i.e., row). (http://docs.generic-mapping-tools.org/latest/movie.html#t)

  • pre :: [Type => Str]

The optional *backgroundscript* file (a GMT.jl script) can be used one or two purposes: (1) It may create files
(such as timefile) that will be needed by mainscript to make the movie, and (2) It may make a static background
plot that should form the background for all frames.
(http://docs.generic-mapping-tools.org/latest/movie.html#s)
  • post :: [Type => Str]

    The optional foregroundscript file (a GMT.jl script) can be used to make a static foreground plot that should be overlain on all frames. (http://docs.generic-mapping-tools.org/latest/movie.html#s)

  • A | gif :: [Type => Str] $Args = [+l[n]][+sstride]$

    Build an animated GIF file. You may specify if the movie should play more than once and if so append how many times to repeat. (http://docs.generic-mapping-tools.org/latest/movie.html#a)

  • D | frame_rate :: [Type => Int]

    Set the display frame rate in frames per seconds for the final animation [24]. (http://docs.generic-mapping-tools.org/latest/movie.html#d)

  • E | titlepage :: [Type => Str | tuple]

    Give a titlepage script that creates a static title page for the movie [no title]. (http://docs.generic-mapping-tools.org/latest/movie.html#e)

  • F | format :: [Type => Str] $Arg = format[+ooptions]$

    Set the format of the final video product. Choose either mp4 (MPEG-4 movie) or webm (WebM movie). (http://docs.generic-mapping-tools.org/latest/movie.html#f)

  • G | fill :: [Type => Str | Int | Touple]

    Set the canvas color or fill before plotting commences [none]. (http://docs.generic-mapping-tools.org/latest/movie.html#g)

  • H | scale :: [Type => Number]

    Temporarily increases the effective dots-per-unit by factor, rasterizes the frame, then downsamples the image by the same factor at the end. (http://docs.generic-mapping-tools.org/latest/movie.html#h)

  • I | includefile :: [Type => Str]

    Insert the contents of includefile into the movie_init script that is accessed by all movie scripts. (http://docs.generic-mapping-tools.org/latest/movie.html#i)

  • K | fading :: [Type => Number | Str | Tuple] $Arg = [+f[i|o]fade[s]][+gfill][+p] ]$

    Add fading in and out for the main animation sequence [no fading]. (http://docs.generic-mapping-tools.org/latest/movie.html#k)

  • L | label :: [Type => Str]

    Automatic labeling of individual frames. (http://docs.generic-mapping-tools.org/latest/movie.html#l)

  • M | cover_page :: [Type => number] $Arg = frame[,format]$

    Select a single frame for a cover page. This frame will be written to the current directory. (http://docs.generic-mapping-tools.org/latest/movie.html#m)

  • P | progress :: [Type => Str | Tuple]

    Automatic placement of progress indicator(s). (http://docs.generic-mapping-tools.org/latest/movie.html#p)

  • Q | debug :: [Type => Bool | Str] $Arg = [s]$

    Debugging: Leave all files and directories we create behind for inspection. (http://docs.generic-mapping-tools.org/latest/movie.html#q)

  • Sb | background :: [Type => Str | Function]

    Optional background script or bg PS file GMT6.1 only

  • Sf | foreground :: [Type => Str | Function]

    Optional foreground script or fg PS file GMT6.1 only

  • W | work_dir :: [Type => Str]

By default, all temporary files and frame PNG file are built in the subdirectory prefix set via **name**.
You can override that by giving another workdir as a relative or full directory path.
(http://docs.generic-mapping-tools.org/latest/movie.html#w)
  • Z | clean :: [Type => Bool]

    Erase the entire name directory after assembling the final movie [Default leaves directory with all images. (http://docs.generic-mapping-tools.org/latest/movie.html#z)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • x | cores | n_threads :: [Type => Str or Number] $Arg = [[-]n]$

    Limit the number of cores to be used in any OpenMP-enabled multi-threaded algorithms. (http://docs.generic-mapping-tools.org/latest/gmt.html#x-full)

GMT.nearneighborFunction
nearneighbor(cmd0::String="", arg1=nothing; kwargs...)

Reads arbitrarily located (x,y,z[,w]) triples [quadruplets] and uses a nearest neighbor algorithm to assign an average value to each node that have one or more points within a radius centered on the node. The average value is computed as a weighted mean of the nearest point from each sector inside the search radius. The weighting function used is w(r) = 1 / (1 + d ^ 2), where d = 3 * r / search_radius and r is distance from the node. This weight is modulated by the weights of the observation points [if supplied].

Full option list at nearneighbor

Parameters

  • I | inc :: [Type => Str | Number]

    x_inc [and optionally y_inc] is the grid spacing. (http://docs.generic-mapping-tools.org/latest/nearneighbor.html#i)

  • N | sectors | nn | nearest :: [Type => Number | Str | Bool (for nn or nearest)]

    The circular area centered on each node is divided into sectors sectors. (http://docs.generic-mapping-tools.org/latest/nearneighbor.html#n)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | search_radius :: [Type => Number]

    Sets the search_radius that determines which data points are considered close to a node. (http://docs.generic-mapping-tools.org/latest/nearneighbor.html#s)

  • E | empty :: [Type => Bool]

    Set the value assigned to empty nodes when G is set [NaN]. (http://docs.generic-mapping-tools.org/latest/nearneighbor.html#e)

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = nearneighbor(....) form. (http://docs.generic-mapping-tools.org/latest/nearneighbor.html#g)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • W | weights :: [Type => Bool]

    Input data have a 4th column containing observation point weights. (http://docs.generic-mapping-tools.org/latest/nearneighbor.html#w)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • n | interp | interpol :: [Type => Str] $Arg = [b|c|l|n][+a][+bBC][+c][+tthreshold]$

    Select grid interpolation mode by adding b for B-spline smoothing, c for bicubic interpolation, l for bilinear interpolation, or n for nearest-neighbor value. (http://docs.generic-mapping-tools.org/latest/gmt.html#n-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.plotMethod
plot(arg1::Array; kwargs...)

reads (x,y) pairs from files [or standard input] and generates PostScript code that will plot lines, polygons, or symbols at those locations on a map.

Full option list at psxy

Parameters

  • A | steps | straight_lines :: [Type => Str]
By default, geographic line segments are drawn as great circle arcs.
To draw them as straight lines, use this option.
(http://docs.generic-mapping-tools.org/latest/plot.html#a)
  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | color | cmap :: [Type => Str] $Arg = [cpt |master[+izinc] |color1,color2[,*color3*,…]]$

    Give a CPT name or specify -Ccolor1,color2[,color3,...] to build a linear continuous CPT from those colors automatically. (http://docs.generic-mapping-tools.org/latest/grdimage.html#c)

  • D | shift | offset :: [Type => Str]

    Offset the plot symbol or line locations by the given amounts dx/dy in cm, inch or points. (http://docs.generic-mapping-tools.org/latest/plot.html#d)

  • E | error | error_bars :: [Type => Str]

    Draw symmetrical error bars. (http://docs.generic-mapping-tools.org/latest/plot.html#e)

  • F | conn | connection :: [Type => Str]

    Alter the way points are connected (http://docs.generic-mapping-tools.org/latest/plot.html#f)

  • G | fill | markerfacecolor | MarkerFaceColor | markercolor | mc :: [Type => Str]

    Select color or pattern for filling of symbols or polygons. BUT WARN: the alias 'fill' will set the color of polygons OR symbols but not the two together. If your plot has polygons and symbols, use 'fill' for the polygons and 'markerfacecolor' for filling the symbols. Same applyies for W bellow (http://docs.generic-mapping-tools.org/latest/plot.html#g)

  • I | intens :: [Type => Str | number]

    Use the supplied intens value (in the [-1 1] range) to modulate the fill color by simulating illumination. (http://docs.generic-mapping-tools.org/latest/plot.html#i)

  • L | close | polygon :: [Type => Str]

    Force closed polygons. (http://docs.generic-mapping-tools.org/latest/plot.html#l)

  • N | no_clip | noclip :: [Type => Str or []]

    Do NOT clip symbols that fall outside map border (http://docs.generic-mapping-tools.org/latest/plot.html#n)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • S | symbol | marker | Marker :: [Type => Str]

    Plot symbols (including vectors, pie slices, fronts, decorated or quoted lines). (http://docs.generic-mapping-tools.org/latest/plot.html#s) Alternatively select a sub-set of symbols using the aliases: marker or Marker and values:

    • -, x_dash
    • +, plus
    • a, *, star
    • c, circle
    • d, diamond
    • g, octagon
    • h, hexagon
    • i, v, inverted_tri
    • n, pentagon
    • p, ., point
    • r, rectangle
    • s, square
    • t, ^, triangle
    • x, cross
    • y, y_dash

    and select their sizes with the markersize or size keyword [default is 7p]. The marker size can be a scalar or a vector with same size numeber of rows of data. Units are points unless specified otherwise with (for example for cm) par=(PROJLENGTHUNIT="c")

  • W | pen | markeredgecolor | mec :: [Type => Str]

    Set pen attributes for lines or the outline of symbols (http://docs.generic-mapping-tools.org/latest/plot.html#w) WARNING: the pen attributes will set the pen of polygons OR symbols but not the two together. If your plot has polygons and symbols, use W or pen for the polygons and markeredgecolor for filling the symbols. Similar to S above.

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • Z | level :: [Type => Str | NamedTuple] Arg = value|file[+f|+l] | (data=Array|Number, outline=_, fill=_)

    Paint polygons after the level given as a cte or a vector with same size of number of polygons. Needs a color map. (http://docs.generic-mapping-tools.org/latest/plot.html#z)

  • axis | aspect :: [Type => Str]

    When equal to "equal" makes a square plot.

  • a | aspatial :: [Type => Str] $Arg = [col=]name[…]$

    Control how aspatial data are handled in GMT during input and output. (http://docs.generic-mapping-tools.org/latest/gmt.html#aspatial-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.plot3dMethod

plot3d(arg1::Array; kwargs...)

reads (x,y,z) triplets and generates PostScript code that will plot lines, polygons, or symbols at those locations in 3-D.

Full option list at plot3d

Parameters

  • A | steps | straight_lines :: [Type => Str]

    By default, geographic line segments are drawn as great circle arcs. To draw them as straight lines, use this option.

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • Jz | zscale | zsize :: [Type => String]

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | color :: [Type => Str]

    Give a CPT or specify -Ccolor1,color2[,color3,...] to build a linear continuous CPT from those colors automatically. (http://docs.generic-mapping-tools.org/latest/plot3d.html#c)

  • D | offset :: [Type => Str]

    Offset the plot symbol or line locations by the given amounts dx/dy. (http://docs.generic-mapping-tools.org/latest/plot3d.html#d)

  • E | error_bars :: [Type => Str]

    Draw symmetrical error bars. (http://docs.generic-mapping-tools.org/latest/plot3d.html#e)

  • F | conn | connection :: [Type => Str]

    Alter the way points are connected (http://docs.generic-mapping-tools.org/latest/plot3d.html#f)

  • G | fill | markerfacecolor | MarkerFaceColor | markercolor | mc :: [Type => Str]

    Select color or pattern for filling of symbols or polygons. BUT WARN: the alias 'fill' will set the color of polygons OR symbols but not the two together. If your plot has polygons and symbols, use 'fill' for the polygons and 'markerfacecolor' for filling the symbols. Same applyies for W bellow (http://docs.generic-mapping-tools.org/latest/plot3d.html#g)

  • I | intens :: [Type => Str or number]

    Use the supplied intens value (in the [-1 1] range) to modulate the fill color by simulating illumination. (http://docs.generic-mapping-tools.org/latest/plot3d.html#i)

  • L | closed_polygon :: [Type => Str]

    Force closed polygons. (http://docs.generic-mapping-tools.org/latest/plot3d.html#l)

  • N | no_clip :: [Type => Str | []]

    Do NOT clip symbols that fall outside map border (http://docs.generic-mapping-tools.org/latest/plot3d.html#n)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • S | symbol | marker | Marker :: [Type => Str]

    Plot symbols (including vectors, pie slices, fronts, decorated or quoted lines). (http://docs.generic-mapping-tools.org/latest/plot3d.html#s) Alternatively select a sub-set of symbols using the aliases: marker or Marker and values:

    • -, x_dash
    • +, plus
    • a, *, star
    • c, circle
    • d, diamond
    • g, octagon
    • h, hexagon
    • i, v, inverted_tri
    • n, pentagon
    • p, ., point
    • r, rectangle
    • s, square
    • t, ^, triangle
    • x, cross
    • y, y_dash
  • W | pen | line_attribs | markeredgecolor | MarkerEdgeColor | mec:: [Type => Str] Set pen attributes for lines or the outline of symbols (http://docs.generic-mapping-tools.org/latest/plot3d.html#w) WARNING: the pen attributes will set the pen of polygons OR symbols but not the two together. If your plot has polygons and symbols, use W or line_attribs for the polygons and markeredgecolor or MarkerEdgeColor for filling the symbols. Similar to S above.

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • Z | level :: [Type => Str | NamedTuple] Arg = value|file[+f|+l] | (data=Array|Number, outline=_, fill=_)

    Paint polygons after the level given as a cte or a vector with same size of number of polygons. Needs a color map. (http://docs.generic-mapping-tools.org/latest/plot3d.html#z)

  • a | aspatial :: [Type => Str] $Arg = [col=]name[…]$

    Control how aspatial data are handled in GMT during input and output. (http://docs.generic-mapping-tools.org/latest/gmt.html#aspatial-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

Example:

plot3d(x -> sin(x)*cos(10x), y -> sin(y)*sin(10y), z -> cos(z), 0:pi/100:pi, show=true, aspect3=:equal)
GMT.plotyyMethod

plotyy(arg1, arg2; kwargs...)

Example:

plotyy([1 1; 2 2], [1.5 1.5; 3 3], R="0.8/3/0/5", title="Ai", ylabel=:Bla, xlabel=:Ble, seclabel=:Bli, show=1)
GMT.projectFunction
project(cmd0::String="", arg1=nothing, kwargs...)

Project data onto lines or great circles, generate tracks, or translate coordinates.

Full option list at project

Parameters

  • C | origin | start_pt :: [Type => list/tuple] $Arg = (x,y)$

    Sets the origin of the projection, in Definition 1 or 2. (http://docs.generic-mapping-tools.org/latest/project.html#c)

  • A | azim :: [Type => Number] $Arg = azimuth$

    Defines the azimuth of the projection (Definition 1). (http://docs.generic-mapping-tools.org/latest/project.html#a)

  • E | end_pt :: [Type => list/tuple] $Arg = (bx,by)$

    bx,by defines the end point of the projection path (Definition 2). (http://docs.generic-mapping-tools.org/latest/project.html#e)

  • F | out_flags :: [Type => Str] $Arg = xyzpqrs$

    Specify your desired output using any combination of xyzpqrs, in any order [Default is xyzpqrs]. (http://docs.generic-mapping-tools.org/latest/project.html#f)

  • G | step | small_circle: [Type => Number or list/tuple– $Arg = dist[/colat][+h]$

    Generate mode. No input is read. Create (r, s, p) output points every dist units of p. See Q option. (http://docs.generic-mapping-tools.org/latest/project.html#g)

  • L | length_control :: [Type => Number or list/tuple] $Arg = [w|l_{min}/l_{max}]$

    Length controls. Project only those points whose p coordinate is within l_min < p < l_max. (http://docs.generic-mapping-tools.org/latest/project.html#l)

  • N | flat_earth :: [Type => Bool or []]

    Flat Earth. Make a Cartesian coordinate transformation in the plane. Default uses spherical trigonometry.

  • Q | km :: [Type => Bool or []]

    Map type units. (http://docs.generic-mapping-tools.org/latest/project.html#q)

  • S | sort :: [Type => Bool or []]

    Sort the output into increasing p order. Useful when projecting random data into a sequential profile. (http://docs.generic-mapping-tools.org/latest/project.html#s)

  • T | pole :: [Type => list/tuple] $Arg = (px,py)$

    px,py sets the position of the rotation pole of the projection. (Definition 3). (http://docs.generic-mapping-tools.org/latest/project.html#t)

  • W | width_control :: [Type => list/tuple] $Arg = (w_{min},w_{max})$

    Width controls. Project only those points whose q coordinate is within w_min < q < w_max. (http://docs.generic-mapping-tools.org/latest/project.html#w)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • s | skip_NaN :: [Type => Str] $Arg = [cols][a|r]$

    Suppress output for records whose z-value equals NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#s-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.psconvertFunction
psconvert(cmd0::String="", arg1=nothing; kwargs...)

Place images or EPS files on maps.

Full option list at psconvert

Parameters

  • A | adjust | crop :: [Type => Str or Number]

    Adjust the BoundingBox and HiResBoundingBox to the minimum required by the image content. (http://docs.generic-mapping-tools.org/latest/psconvert.html#a)

  • C | gs_option :: [Type => Str or Array os strings]

    Specify a single, or an araay of, custom option that will be passed on to GhostScript as is. (http://docs.generic-mapping-tools.org/latest/psconvert.html#c)

  • D | out_dir | output_dir :: [Type => Str]

    Sets an alternative output directory (which must exist) [Default is the same directory as the PS files]. (http://docs.generic-mapping-tools.org/latest/psconvert.html#d)

  • E | dpi :: [Type => Number]

    Set raster resolution in dpi [default = 720 for PDF, 300 for others]. (http://docs.generic-mapping-tools.org/latest/psconvert.html#e)

  • F | :out_name | output_name :: [Type => Str]

    Force the output file name. (http://docs.generic-mapping-tools.org/latest/psconvert.html#f)

  • G | ghost_path :: [Type => Bool]

    Full path to your GhostScript executable. (http://docs.generic-mapping-tools.org/latest/psconvert.html#g)

  • I | icc_gray :: [Type => Bool]

    Enforce gray-shades by using ICC profiles. (http://docs.generic-mapping-tools.org/latest/psconvert.html#i)

  • in_memory :: [Type => Bool]

    Process a in memory PS file. No other input file should be provided. Currently works on Windows only.

  • L | list_file :: [Type => Str]

    The listfile is an ASCII file with the names of the PostScript files to be converted. (http://docs.generic-mapping-tools.org/latest/psconvert.html#l)

  • Q | anti_aliasing :: [Type => Str]

    Set the anti-aliasing options for graphics or text. Append the size of the subsample box (1, 2, or 4) [4]. This option is set by default. (http://docs.generic-mapping-tools.org/latest/psconvert.html#q)

  • S | gs_command :: [Type => Bool]

    Print to standard error the GhostScript command after it has been executed. (http://docs.generic-mapping-tools.org/latest/psconvert.html#s)

  • T | format :: [Type => Str]

    b|e|E|f|F|j|g|G|m|s|t Sets the output format, where b = BMP, e = EPS, E = EPS with PageSize command, f = PDF, F = multi-page PDF, j = JPEG, g = PNG, G = transparent PNG (untouched regions are transparent), m = PPM, and t = TIFF [default is JPEG]. Alternatively, the format may be set with the fmt keyword, e.g. fmt=:png. (http://docs.generic-mapping-tools.org/latest/psconvert.html#t)

  • W | world_file :: [Type => Str]

    Write a ESRI type world file suitable to make (e.g) .tif files be recognized as geotiff by software that know how to do it. (http://docs.generic-mapping-tools.org/latest/psconvert.html#w)

  • kml :: [Type => Str | []]

    Create a minimalist KML file that allows loading the image in GoogleEarth. (http://docs.generic-mapping-tools.org/latest/psconvert.html#w)

  • Z | delinputps :: [Type => Bool]

    Remove the input PostScript file(s) after the conversion. (http://docs.generic-mapping-tools.org/latest/psconvert.html#z)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

GMT.regressFunction
regress(cmd0::String="", arg1=nothing, kwargs...)

Linear regression of 1-D data sets.

Full option list at regress

Parameters

  • A | all_slopes :: [Type => Str | List] $Arg = min/max/inc$

    Instead of determining a best-fit regression we explore the full range of regressions. (http://docs.generic-mapping-tools.org/latest/gmtregress.html#a)

  • C | confidence_level :: [Type => Int] $Arg = level$

    Set the confidence level (in %) to use for the optional calculation of confidence bands on the regression [95]. (http://docs.generic-mapping-tools.org/latest/gmtregress.html#c)

  • E | regression_type :: [Type => Str] $Arg = x|y|o|r$

    Type of linear regression, i.e., select the type of misfit we should calculate. (http://docs.generic-mapping-tools.org/latest/gmtregress.html#e)

  • F | column_combination :: [Type => Str] $Arg = x|y|m|l|c$

    Append a combination of the columns you wish returned; (http://docs.generic-mapping-tools.org/latest/gmtregress.html#f)

  • N | norm :: [Type => Str | Int] $Arg = 1|2|r|w$

    Selects the norm to use for the misfit calculation. (http://docs.generic-mapping-tools.org/latest/gmtregress.html#n)

  • S | restrict :: [Type => Str | []] $Arg = [r]$

    Restricts which records will be output. (http://docs.generic-mapping-tools.org/latest/gmtregress.html#s)

  • T | equi_space :: [Type => Str | List] $Arg = [min/max/]inc[+a|n]] or file|list$

    Evaluate the best-fit regression model at the equidistant points implied by the arguments. (http://docs.generic-mapping-tools.org/latest/gmtregress.html#t)

  • W | weighted :: [Type => Str | []] $Arg = [w][x][y][r]$

    Specifies weighted regression and which weights will be provided. (http://docs.generic-mapping-tools.org/latest/gmtregress.html#w)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.roseFunction
rose(cmd0::String="", arg1=nothing; kwargs...)

Reads (length,azimuth) pairs and plot a windrose diagram (polar histograms).

Full option list at psrose

Parameters

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • A | sector :: [Type => Str | Number]

Gives the sector width in degrees for sector and rose diagram.
(http://docs.generic-mapping-tools.org/latest/rose.html#a)
  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | color :: [Type => Str | GMTcpt]

Give a CPT. The mid x-value for each bar is used to look-up the bar color.
(http://docs.generic-mapping-tools.org/latest/rose.html#c)
  • E | vectors :: [Type => Str]
Plot vectors showing the principal directions given in the mode_file file.
(http://docs.generic-mapping-tools.org/latest/rose.html#e)
  • D | shift :: [Type => Bool]
Shift sectors so that they are centered on the bin interval (e.g., first sector is centered on 0 degrees).
(http://docs.generic-mapping-tools.org/latest/rose.html#d)
  • F | no_scale :: [Type => Bool]
Do not draw the scale length bar [Default plots scale in lower right corner].
(http://docs.generic-mapping-tools.org/latest/rose.html#f)
  • G | fill :: [Type => Str | Number]
Selects shade, color or pattern for filling the sectors [Default is no fill].
(http://docs.generic-mapping-tools.org/latest/rose.html#g)
  • I | inquire :: [Type => Bool]
Inquire. Computes statistics needed to specify a useful -R. No plot is generated.
(http://docs.generic-mapping-tools.org/latest/rose.html#i)
  • L | labels :: [Type => Str | Number]
Specify labels for the 0, 90, 180, and 270 degree marks.
(http://docs.generic-mapping-tools.org/latest/rose.html#l)
  • M | vector_params :: [Type => Str]
Used with -C to modify vector parameters.
(http://docs.generic-mapping-tools.org/latest/rose.html#m)
  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • Q | alpha :: [Type => Str | []]

Sets the confidence level used to determine if the mean resultant is significant.
(http://docs.generic-mapping-tools.org/latest/rose.html#q)
  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | norm | normalize :: [Type => Bool]

Specifies radius of plotted circle (append a unit from c|i|p).
(http://docs.generic-mapping-tools.org/latest/rose.html#s)
  • T | orientation :: [Type => Bool]
Specifies that the input data are orientation data (i.e., have a 180 degree ambiguity)
instead of true 0-360 degree directions [Default].
(http://docs.generic-mapping-tools.org/latest/rose.html#t)
  • W | pen :: [Type => Str | Tuple]
Set pen attributes for sector outline or rose plot. [Default is no outline].
(http://docs.generic-mapping-tools.org/latest/rose.html#w)
  • Z | scale :: [Type => Str]
Multiply the data radii by scale.
(http://docs.generic-mapping-tools.org/latest/rose.html#z)
  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.round_datetimeMethod

Round a Vector or Tuple (2 elements) of DateTime type to a nearest nice number to use in plot limits

GMT.sample1dFunction
sample1d(cmd0::String="", arg1=nothing, kwargs...)

Resample 1-D table data using splines

Full option list at sample1d

Parameters

  • A | resamp :: [Type => Str] $Arg = f|p|m|r|R$

    For track resampling (if -T…unit is set) we can select how this is to be performed. (http://docs.generic-mapping-tools.org/latest/sample1d.html#a)

  • F | interp_type :: [Type => Str] $Arg = l|a|c|n|s<p>[+1|+2]$

    Choose from l (Linear), a (Akima spline), c (natural cubic spline), and n (no interpolation: nearest point) [Default is Akima]. (http://docs.generic-mapping-tools.org/latest/sample1d.html#f)

  • N | time_col :: [Type => Int] $Arg = t_col$

    Indicates which column contains the independent variable (time). The left-most column is # 0, the right-most is # (n_cols - 1). [Default is 0]. (http://docs.generic-mapping-tools.org/latest/sample1d.html#n)

  • T | inc | range :: [Type => List | Str] $Arg = [min/max/]inc[+a|n]] or file|list$

    Evaluate the best-fit regression model at the equidistant points implied by the arguments. (http://docs.generic-mapping-tools.org/latest/sample1d.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • W | weights_col :: [Type => Int] $Arg = w_col$

    Sets the column number of the weights to be used with a smoothing cubic spline. Requires Fs. (GMT6.1) (http://docs.generic-mapping-tools.org/latest/sample1d.html#w)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.scatterFunction
scatter(cmd0::String="", arg1=nothing; kwargs...)

Reads (x,y) pairs and plot symbols at those locations on a map. This module is a subset of $plot$ to make it simpler to draw scatter plots. So many of its (fine) controling parameters are not listed here. For a finer control, user should consult the $plot$ module.

Parameters

  • G | fill | markerfacecolor :: [Type => Str]

    Select color or pattern for filling of symbols or polygons. (http://docs.generic-mapping-tools.org/latest/plot.html#g)

  • N | no_clip :: [Type => Str | []]

    Do NOT clip symbols that fall outside map border (http://docs.generic-mapping-tools.org/latest/plot.html#n)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • S :: [Type => Str]

    Plot symbols (including vectors, pie slices, fronts, decorated or quoted lines). (http://docs.generic-mapping-tools.org/latest/plot.html#s)

    Alternatively select a sub-set of symbols using the aliases: symbol or marker and values:

    • -, x_dash
    • +, plus
    • a, *, star
    • c, circle
    • d, diamond
    • g, octagon
    • h, hexagon
    • i, v, inverted_tri
    • n, pentagon
    • p, ., point
    • r, rectangle
    • s, square
    • t, ^, triangle
    • x, cross
+ **y**, **y_dash**

and select their sizes with the **markersize** or **size** keyword [default is 8p].
The marker size can be a scalar or a vector with same size numeber of rows of data. Units are
points unless specified otherwise with (for example for cm) *par=(PROJ_LENGTH_UNIT=:c,)*
  • W | pen | markeredgecolor | mec :: [Type => Str]

    Set pen attributes for lines or the outline of symbols (http://docs.generic-mapping-tools.org/latest/plot.html#w)

Full man pageGMT man page

GMT.solarFunction
solar(cmd0::String="", arg1=nothing; kwargs...)

Calculate and plot the day-night terminator and the civil, nautical and astronomical twilights.

Full option list at solar

Parameters

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | formated :: [Type => Bool]

    (http://docs.generic-mapping-tools.org/latest/solar.html#c)

  • G | fill :: [Type => Str | Number]

    (http://docs.generic-mapping-tools.org/latest/solar.html#g)

  • I | sun :: [Type => Bool | Tuple | NamedTuple]

    (http://docs.generic-mapping-tools.org/latest/solar.html#i)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • M | dump :: [Type => Bool]

    (http://docs.generic-mapping-tools.org/latest/solar.html#m)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • N | invert :: [Type => Bool]

    (http://docs.generic-mapping-tools.org/latest/solar.html#n)

  • T | terminators :: [Type => Bool | Tuple | NamedTuple]

    (http://docs.generic-mapping-tools.org/latest/solar.html#t)

  • W | pen :: [Type => Str | Tuple]

    (http://docs.generic-mapping-tools.org/latest/solar.html#w)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • bo | binary_out :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary output. (http://docs.generic-mapping-tools.org/latest/gmt.html#bo-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • o | outcols | outcol :: [Type => Str] $Arg = cols[,…]$

    Select specific data columns for primary output, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#ocols-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

GMT.spectrum1dFunction
gmtspectrum1d(cmd0::String="", arg1=nothing, kwargs...)

Compute auto- [and cross- ] spectra from one [or two] time-series.

Full option list at spectrum1d

Parameters

  • S | size :: [Type => Str] $Arg = segment_size$

    $segment_size$ is a radix-2 number of samples per window for ensemble averaging. (http://docs.generic-mapping-tools.org/latest/spectrum1d.html#s)

  • C | response_fun :: [Type => Str | []] $Arg = [xycnpago]$

    Read the first two columns of input as samples of two time-series, X(t) and Y(t). Consider Y(t) to be the output and X(t) the input in a linear system with noise. (http://docs.generic-mapping-tools.org/latest/spectrum1d.html#c)

  • D | sample_dist :: [Type => Number] $Arg = dt$

    Set the spacing between samples in the time-series [Default = 1]. (http://docs.generic-mapping-tools.org/latest/spectrum1d.html#d)

  • L | leave_trend :: [Type => Str | []] $Arg = [h|m]$

    Leave trend alone. By default, a linear trend will be removed prior to the transform. (http://docs.generic-mapping-tools.org/latest/spectrum1d.html#l)

  • N | time_col :: [Type => Int] $Arg = t_col$

    Indicates which (http://docs.generic-mapping-tools.org/latest/spectrum1d.html#n)

  • T :: [Type => Bool]

    Disable the writing of a single composite results file to stdout. (http://docs.generic-mapping-tools.org/latest/spectrum1d.html#t)

  • W | wavelength :: [Type => Bool | Str]

    Write Wavelength rather than frequency in column 1 of the output file[s] [Default = frequency, (cycles / dt)]. (http://docs.generic-mapping-tools.org/latest/spectrum1d.html#w)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.sphdistanceFunction
sphdistance(cmd0::String="", arg1=nothing, kwargs...)

Create Voronoi distance, node, or natural nearest-neighbor grid on a sphere

Full option list at sphdistance

Parameters

  • C | save_mem :: [Type => Bool]

    For large data sets you can save some memory (at the expense of more processing). (http://docs.generic-mapping-tools.org/latest/sphdistance.html#a)

  • D | duplicates :: [Type => Bool]

    Delete any duplicate points [Default assumes there are no duplicates]. (http://docs.generic-mapping-tools.org/latest/sphdistance.html#d)

  • E | what_quantity :: [Type => Str] $Arg = d|n|z[dist]$

    Specify the quantity that should be assigned to the grid nodes. (http://docs.generic-mapping-tools.org/latest/sphdistance.html#e)

  • G | grid | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = sphdistance(....) form. (http://docs.generic-mapping-tools.org/latest/sphdistance.html#g)

  • I | inc :: [Type => Str or Number]

    x_inc [and optionally y_inc] is the grid spacing. (http://docs.generic-mapping-tools.org/latest/sphdistance.html#i)

  • L | dist_unit :: [Type => Str] $Arg = d|e|f|k|M|n|u$

    Specify the unit used for distance calculations. (http://docs.generic-mapping-tools.org/latest/sphdistance.html#l)

  • N | nodes :: [Type => Str] $Arg = nodes$

    Read the information pertaining to each Voronoi polygon (the unique node lon, lat and polygon area) from a separate file. (http://docs.generic-mapping-tools.org/latest/sphdistance.html#n)

  • Q | voronoi :: [Type => Str] $Arg = voronoifile$

    Append the name of a file with pre-calculated Voronoi polygons. (http://docs.generic-mapping-tools.org/latest/sphdistance.html#q)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.sphinterpolateFunction
sphinterpolate(cmd0::String="", arg1=nothing, kwargs...)

Spherical gridding in tension of data on a sphere

Full option list at sphinterpolate

Parameters

  • D | duplicates :: [Type => Bool]

    Delete any duplicate points [Default assumes there are no duplicates]. (http://docs.generic-mapping-tools.org/latest/sphinterpolate.html#d)

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = sphinterpolate(....) form. (http://docs.generic-mapping-tools.org/latest/sphinterpolate.html#g)

  • I | inc :: [Type => Str or Number]

    x_inc [and optionally y_inc] is the grid spacing. (http://docs.generic-mapping-tools.org/latest/sphinterpolate.html#i)

  • Q | tension :: [Type => Number | Str] $Arg = mode[/options]$

    Specify one of four ways to calculate tension factors to preserve local shape properties or satisfy arc constraints. (http://docs.generic-mapping-tools.org/latest/sphinterpolate.html#q)

  • T | var_tension :: [Type => Bool | Str]

    Use variable tension (ignored with -Q0 constant

  • Z | scale :: [Type => Bool | Str]

    Before interpolation, scale data by the maximum data range [no scaling]. (http://docs.generic-mapping-tools.org/latest/sphinterpolate.html#z)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.sphtriangulateFunction
sphtriangulate(cmd0::String="", arg1=nothing, kwargs...)

Delaunay or Voronoi construction of spherical lon,lat data

Full option list at sphtriangulate

Parameters

  • A | area :: [Type => Bool]

    Compute the area of the spherical triangles (Qd) or polygons (Qv) and write the areas in the output segment headers (http://docs.generic-mapping-tools.org/latest/sphtriangulate.html#a)

  • C | save_mem :: [Type => Bool]

    For large data sets you can save some memory (at the expense of more processing). (http://docs.generic-mapping-tools.org/latest/sphtriangulate.html#c)

  • D | duplicates | skip :: [Type => Bool]

    Delete any duplicate points [Default assumes there are no duplicates]. (http://docs.generic-mapping-tools.org/latest/sphtriangulate.html#d)

  • L | unit :: [Type => Str] $Arg = e|f|k|m|n|u|d$

    Specify the unit used for distance and area calculations. (http://docs.generic-mapping-tools.org/latest/sphtriangulate.html#l)

  • N | nodes :: [Type => Str] $Arg = `file$

    Write the information pertaining to each polygon to a separate file. (http://docs.generic-mapping-tools.org/latest/sphtriangulate.html#n)

  • Q | voronoi :: [Type => Str] $Arg = d|v$

    Append d for Delaunay triangles or v for Voronoi polygons [Delaunay]. (http://docs.generic-mapping-tools.org/latest/sphtriangulate.html#q)

  • T :: [Type => Bool | Str]

    Write the unique arcs of the construction [Default writes fillable triangles or polygons]. When used with -A we store arc length in the segment header in chosen unit. (http://docs.generic-mapping-tools.org/latest/sphtriangulate.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.splitxyzFunction
splitxyz(cmd0::String="", arg1=nothing; kwargs...)

Reads a series of (x,y[,z]) records [or optionally (x,y,z,d,h)] and splits this into separate lists of (x,y[,z]) series, such that each series has a nearly constant azimuth through the x,y plane.

Full option list at splitxyz

Parameters

  • A | azim_tol :: [Type => Str | Array]

    Write out only those segments which are within +/- tolerance degrees of azimuth in heading, measured clockwise from North, [0 - 360]. (http://docs.generic-mapping-tools.org/latest/splitxyz.html#a)

  • C | course_change :: [Type => Number]

    Terminate a segment when a course change exceeding course_change degrees of heading is detected. (http://docs.generic-mapping-tools.org/latest/splitxyz.html#c)

  • D | min_dist | min_distance :: [Type => Number]

    Do not write a segment out unless it is at least minimum_distance units long. (http://docs.generic-mapping-tools.org/latest/splitxyz.html#d)

  • F | filter :: [Type => Str | Array]

    Filter the z values and/or the x,y values, assuming these are functions of d coordinate. xyfilter and zfilter are filter widths in distance units. (http://docs.generic-mapping-tools.org/latest/splitxyz.html#f)

  • Q | xyzdh :: [Type => Str]

    Specify your desired output using any combination of xyzdh, in any order. (http://docs.generic-mapping-tools.org/latest/splitxyz.html#q)

  • S | dh | dist_head :: [Type => Bool]

    Both d and h are supplied. In this case, input contains x,y,z,d,h. [Default expects (x,y,z) input, and d,h are computed from delta x, delta y. (http://docs.generic-mapping-tools.org/latest/splitxyz.html#s)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • write | |> :: [Type => Str] $Arg = fname$

    Save result to ASCII file instead of returning to a Julia variable. Give file name as argument. Use the bo option to save as a binary file.

  • append :: [Type => Str] $Arg = fname$

    Append result to an existing file named $fname$ instead of returning to a Julia variable. Use the bo option to save as a binary file.

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • bo | binary_out :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary output. (http://docs.generic-mapping-tools.org/latest/gmt.html#bo-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • do | nodata_out :: [Type => Str or Number] $Arg = nodata$

    Examine all output columns and if any item equals NAN substitute it with the chosen missing data value. (http://docs.generic-mapping-tools.org/latest/gmt.html#do-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.subplotFunction
subplot(fim=nothing; kwargs...)

Manage figure subplot configuration and selection.

Full option list at subplot

Parameters

  • grid :: [Type => Str | Tuple | Array]

    Specifies the number of rows and columns of subplots. Ex grid=(2,3)

  • F | dims | dimensions | size | sizes :: [Type => Str | Tuple, NamedTuple]

    Specify the dimensions of the figure. -F

  • A | autolabel | fixedlabel :: [Type => Str | number]

    Specify automatic tagging of each subplot. This sets the tag of the first, top-left subplot and others follow sequentially. -A

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | clearance :: [Type => Str | number]

    Reserve a space of dimension clearance between the margin and the subplot on the specified side. Settings specified under begin directive apply to all panels. -C

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • M | margin | margins :: [Type => Str]

    The margin space that is added around each subplot beyond the automatic space allocated for tick marks, annotations, and labels. -M

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • SC | SR | col_axes | row_axes :: [Type => Str | NamedTuple]

    Set subplot layout for shared axes. Set separately for rows (SR) and columns (SC). -S

  • T | title :: [Type => Str]

    While individual subplots can have titles, the entire figure may also have a overarching title. -T

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

GMT.surfaceFunction
surface(cmd0::String="", arg1=nothing; kwargs...)

Reads randomly-spaced (x,y,z) triples and produces a binary grid file of gridded values z(x,y) by solving:

	(1 - T) * L (L (z)) + T * L (z) = 0

Full option list at surface

Parameters

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • I | inc :: [Type => Str | Number]

    x_inc [and optionally y_inc] is the grid spacing. (http://docs.generic-mapping-tools.org/latest/surface.html#i)

  • A | aspect_ratio :: [Type => Number]

    Aspect ratio. If desired, grid anisotropy can be added to the equations. (http://docs.generic-mapping-tools.org/latest/surface.html#a)

  • C | convergence :: [Type => Number]

    Convergence limit. Iteration is assumed to have converged when the maximum absolute change in any grid value is less than convergence_limit. (http://docs.generic-mapping-tools.org/latest/surface.html#c)

  • D | breakline :: [Type => String | NamedTuple] Arg = breakline[+z[level]] | (data=Array, [zlevel=x])

    Use xyz data in the breakline file as a ‘soft breakline’, that is a line whose vertices will be used to constrain the nearest grid nodes without any further interpolation. (http://docs.generic-mapping-tools.org/latest/surface.html#d)

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = surface(....) form. (http://docs.generic-mapping-tools.org/latest/surface.html#g)

  • Ll | lower :: [Type => Str | Number]

    Impose limits on the output solution. lower sets the lower bound. lower can be the name of a grid file with lower bound values, a fixed value, d to set to minimum input value, (http://docs.generic-mapping-tools.org/latest/surface.html#l)

  • Lu | upper :: [Type => Str | Number]

    (http://docs.generic-mapping-tools.org/latest/surface.html#l)

  • N | max_iter :: [Type => Number]

    Number of iterations. Iteration will cease when convergencelimit is reached or when number of iterations reaches maxiterations. (http://docs.generic-mapping-tools.org/latest/surface.html#n)

  • Q | suggest :: [Type => Bool]

    Suggest grid dimensions which have a highly composite greatest common factor. (http://docs.generic-mapping-tools.org/latest/surface.html#q)

  • S | search_radius :: [Type => Number | Str]

    Sets the resolution of the projected grid that will be created. (http://docs.generic-mapping-tools.org/latest/surface.html#s)

  • T | tension :: [Type => Number | Str]

    Tension factor[s]. These must be between 0 and 1. (http://docs.generic-mapping-tools.org/latest/surface.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • Z | over_relaxation :: [Type => Str | GMTgrid]

    Over-relaxation factor. This parameter is used to accelerate the convergence; it is a number between 1 and 2. (http://docs.generic-mapping-tools.org/latest/surface.html#z)

  • a | aspatial :: [Type => Str] $Arg = [col=]name[…]$

    Control how aspatial data are handled in GMT during input and output. (http://docs.generic-mapping-tools.org/latest/gmt.html#aspatial-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.textFunction
text(cmd0::String="", arg1=nothing; kwargs...)

Plots text strings of variable size, font type, and orientation. Various map projections are provided, with the option to draw and annotate the map boundaries.

Full option list at pstext

Parameters

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • A | azimuths :: [Type => Bool]

    Angles are given as azimuths; convert them to directions using the current projection. (http://docs.generic-mapping-tools.org/latest/text.html#a)

  • C | clearance :: [Type => Str]

    Sets the clearance between the text and the surrounding box [15%]. (http://docs.generic-mapping-tools.org/latest/text.html#c)

  • D | offset :: [Type => Str]

    Offsets the text from the projected (x,y) point by dx,dy [0/0]. (http://docs.generic-mapping-tools.org/latest/text.html#d)

  • F | attrib :: [Type => Str | Tuple]

    Specify up to three text attributes (font, angle, and justification). (http://docs.generic-mapping-tools.org/latest/text.html#f)

  • G | fill :: [Type => Str | Number]

    Sets the shade or color used for filling the text box [Default is no fill]. (http://docs.generic-mapping-tools.org/latest/text.html#g)

  • Jz | zscale | zsize :: [Type => String]

  • L | list :: [Type => Bool]

    Lists the font-numbers and font-names available, then exits. (http://docs.generic-mapping-tools.org/latest/text.html#l)

  • M | paragraph :: [Type => Str | []]

    Paragraph mode. (http://docs.generic-mapping-tools.org/latest/text.html#m)

  • N | no_clip | noclip :: [Type => Str | []]

    Do NOT clip text at map boundaries. (http://docs.generic-mapping-tools.org/latest/text.html#n)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • Q | change_case :: [Type => Str]

    Change all text to either lower or upper case. (http://docs.generic-mapping-tools.org/latest/text.html#q)

  • S | shade :: [Type => Str | Tuple | Bool] $Arg = [dx/dy][/shade]$

    Plot an offset background shaded region beneath the text box (GMT6.2). (http://docs.generic-mapping-tools.org/latest/text.html#s)

  • T | text_box :: [Type => Str]

    Specify the shape of the textbox when using G and/or W. (http://docs.generic-mapping-tools.org/latest/text.html#t)

  • W | pen :: [Type => Str]

    Sets the pen used to draw a rectangle around the text string. (http://docs.generic-mapping-tools.org/latest/text.html#w)

  • Z | threeD :: [Type => Str]

    For 3-D projections: expect each item to have its own level given in the 3rd column. (http://docs.generic-mapping-tools.org/latest/text.html#z)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • a | aspatial :: [Type => Str] $Arg = [col=]name[…]$

    Control how aspatial data are handled in GMT during input and output. (http://docs.generic-mapping-tools.org/latest/gmt.html#aspatial-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • g | gap :: [Type => Str] $Arg = [a]x|y|d|X|Y|D|[col]z[+|-]gap[u]$

    Examine the spacing between consecutive data points in order to impose breaks in the line. (http://docs.generic-mapping-tools.org/latest/gmt.html#g-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.trend1dFunction
trend1d(cmd0::String="", arg1=nothing, kwargs...)

Fit a [weighted] [robust] polynomial/Fourier model for y = f(x) to xy[w] data.

Full option list at trend1d

Parameters

  • F | output :: [Type => Str] $Arg = xymrw|p|P|c$

    Specify up to five letters from the set {x y m r w} in any order to create columns of output. (http://docs.generic-mapping-tools.org/latest/trend1d.html#f)

  • N | n_model :: [Type => Str] $Arg = [p|P|f|F|c|C|s|S|x]n[,…][+llength][+oorigin][+r]$

    Specify Specify the number of terms in the model, n_model, and append +r to do a robust fit. E.g., a robust bilinear model is -N4+r. (http://docs.generic-mapping-tools.org/latest/trend1d.html#n)

  • C | condition_number :: [Type => Number] $Arg = condition_number$

    Set the maximum allowed condition number for the matrix solution. (http://docs.generic-mapping-tools.org/latest/trend1d.html#c)

  • I | confidence_level :: [Type => Number | []] $Arg = [confidence_level]$

    Iteratively increase the number of model parameters, starting at one, until nmodel is reachedx or the reduction in variance of the model is not significant at the confidencelevel level. (http://docs.generic-mapping-tools.org/latest/trend1d.html#i)

  • W | weights :: [Type => Str | []] $Arg = [+s]$

    Weights are supplied in input column 3. Do a weighted least squares fit [or start with these weights when doing the iterative robust fit]. (http://docs.generic-mapping-tools.org/latest/trend1d.html#w)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.trend2dFunction
trend2d(cmd0::String="", arg1=nothing, kwargs...)

Fit a [weighted] [robust] polynomial model for z = f(x,y) to xyz[w] data.

Full option list at trend2d

Parameters

  • F | output :: [Type => Str] $Arg = xyzmrw|p$

    Specify up to five letters from the set {x y m r w} in any order to create columns of output. (http://docs.generic-mapping-tools.org/latest/trend2d.html#f)

  • N | n_model :: [Type => Str] $Arg = n_model[+r]$

    Specify the number of terms in the model, n_model, and append +r to do a robust fit. E.g., a robust bilinear model is N="4+r". (http://docs.generic-mapping-tools.org/latest/trend2d.html#n)

  • C | condition_number :: [Type => Number] $Arg = condition_number$

    Set the maximum allowed condition number for the matrix solution. (http://docs.generic-mapping-tools.org/latest/trend2d.html#c)

  • I | confidence_level :: [Type => Number | []] $Arg = [confidence_level]$

    Iteratively increase the number of model parameters, starting at one, until nmodel is reachedx or the reduction in variance of the model is not significant at the confidencelevel level. (http://docs.generic-mapping-tools.org/latest/trend2d.html#i)

  • W | weights :: [Type => Str | []] $Arg = [+s]$

    Weights are supplied in input column 4. Do a weighted least squares fit [or start with these weights when doing the iterative robust fit]. (http://docs.generic-mapping-tools.org/latest/trend2d.html#w)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • b | binary :: [Type => Str]

    (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • d | nodata :: [Type => Str or Number] $Arg = [i|o]nodata$

    Control how user-coded missing data values are translated to official NaN values in GMT. (http://docs.generic-mapping-tools.org/latest/gmt.html#d-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.triangulateFunction
triangulate(cmd0::String="", arg1=nothing; kwargs...)

Reads one or more ASCII [or binary] files (or standard input) containing x,y[,z] and performs Delaunay triangulation, i.e., it find how the points should be connected to give the most equilateral triangulation possible.

Full option list at triangulate

Parameters

  • C | slope_grid :: [Type => Number]

    Read a slope grid (in degrees) and compute the propagated uncertainty in the bathymetry using the CURVE algorithm (http://docs.generic-mapping-tools.org/latest/triangulate.html#a)

  • D | derivatives :: [Type => Str]

    Take either the x- or y-derivatives of surface represented by the planar facets (only used when G is set). (http://docs.generic-mapping-tools.org/latest/triangulate.html#d)

  • E | empty :: [Type => Str | Number]

    Set the value assigned to empty nodes when G is set [NaN]. (http://docs.generic-mapping-tools.org/latest/triangulate.html#e)

  • G | grid | outgrid :: [Type => Str | []]

    Use triangulation to grid the data onto an even grid (specified with R I). Append the name of the output grid file. (http://docs.generic-mapping-tools.org/latest/triangulate.html#g)

  • I | inc :: [Type => Str | Number]

    x_inc [and optionally y_inc] is the grid spacing. (http://docs.generic-mapping-tools.org/latest/triangulate.html#i)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • M | network :: [Type => Bool]

    Output triangulation network as multiple line segments separated by a segment header record. (http://docs.generic-mapping-tools.org/latest/triangulate.html#m)

  • N | ids :: [Type => Bool]

    Used in conjunction with G to also write the triplets of the ids of all the Delaunay vertices (http://docs.generic-mapping-tools.org/latest/triangulate.html#n)

  • Q | voronoi :: [Type => Str | []]

    Output the edges of the Voronoi cells instead Default is Delaunay triangle edges

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • S | triangles :: [Type => Bool]

    Output triangles as polygon segments separated by a segment header record. Requires Delaunay triangulation. (http://docs.generic-mapping-tools.org/latest/triangulate.html#s)

  • T | edges :: [Type => Bool]

    Output edges or polygons even if gridding has been selected with the G option (http://docs.generic-mapping-tools.org/latest/triangulate.html#t)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • Z | xyz | triplets :: [Type => Bool]

    (http://docs.generic-mapping-tools.org/latest/triangulate.html#z)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • bo | binary_out :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary output. (http://docs.generic-mapping-tools.org/latest/gmt.html#bo-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.veloFunction
velo(cmd0::String="", arg1=nothing; kwargs...)

Plot velocity vectors, crosses, and wedges.

Full option list at velo

    velo(mat2ds([0. -8 0 0 4 6 0.5; -8 5 3 3 0 0 0.5], ["4x6", "3x3"]), pen=(0.6,:red), fill_wedges=:green, outlines=true, Se="0.2/0.39/18", arrow="0.3c+p1p+e+gred", region=(-15,10,-10,10), show=1)
GMT.vlinesFunction
vlines(arg; decorated=(...), kwargs...)

Plots one or a collection of vertical lines with eventual decorations

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • W | pen | line_attrib :: [Type => Str]

    Set pen attributes for the horizontal lines (http://docs.generic-mapping-tools.org/latest/plot.html#w)

Example:

plot(rand(5,3), region=[0,1,0,1])
vlines!([0.2, 0.6], pen=(1, :red), show=true)
GMT.wiggleFunction
wiggle(cmd0::String="", arg1=nothing; kwargs...)

Reads (length,azimuth) pairs from file and plot a windwiggle diagram.

Full option list at pswiggle

Parameters

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • Z | scale :: [Type => Number | Str]

    Gives anomaly scale in data-units/distance-unit. (http://docs.generic-mapping-tools.org/latest/wiggle.html#a)

  • A | azimuth :: [Type => Str | number]

    Sets the preferred positive azimuth. Positive wiggles will “gravitate” towards that direction. (http://docs.generic-mapping-tools.org/latest/wiggle.html#a)

  • B | frame | axis | xaxis yaxis:: [Type => Str]

    Set map boundary frame and axes attributes. (http://docs.generic-mapping-tools.org/latest/gmt.html#b-full)

  • C | center :: [Type => Number]

    Subtract center from the data set before plotting [0]. (http://docs.generic-mapping-tools.org/latest/wiggle.html#c)

  • D | scale_bar :: [Type => Str]

    Defines the reference point on the map for the vertical scale bar using one of four coordinate systems. (http://docs.generic-mapping-tools.org/latest/wiggle.html#d)

  • F | box :: [Type => Str]

    Without further options, draws a rectangular border around the vertical scale bar. (http://docs.generic-mapping-tools.org/latest/wiggle.html#f)

  • G | fill :: [Type => Number | Str]

    Set fill shade, color or pattern for positive and/or negative wiggles [Default is no fill]. (http://docs.generic-mapping-tools.org/latest/wiggle.html#g)

  • I | fixed_azim :: [Type => Number]

    Set a fixed azimuth projection for wiggles [Default uses track azimuth, but see -A]. (http://docs.generic-mapping-tools.org/latest/wiggle.html#i)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • P | portrait :: [Type => Bool or []]

    Tell GMT to NOT draw in portrait mode (that is, make a Landscape plot)

  • T | track :: [Type => Number or Str | Tuple | []]

    Draw track [Default is no track]. Append pen attributes to use [Defaults: width = 0.25p, color = black, style = solid]. (http://docs.generic-mapping-tools.org/latest/wiggle.html#t)

  • W | pen :: [Type => Number | Str | tuple | []]

    Specify outline pen attributes [Default is no outline]. (http://docs.generic-mapping-tools.org/latest/wiggle.html#w)

  • U | time_stamp | timestamp :: [Type => Str or Bool or []] $Arg = [[just]/dx/dy/][c|label]$

    Draw GMT time stamp logo on plot. (http://docs.generic-mapping-tools.org/latest/gmt.html#u-full)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • X | xoff | x_off | x_offset | xshift :: [Type => Str] $Arg = [a|c|f|r][x-shift[u]]$

  • Y | yoff | y_off | y_offset | yshift :: [Type => Str] $Arg = [a|c|f|r][y-shift[u]]$

    Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, or p). (http://docs.generic-mapping-tools.org/latest/gmt.html#xy-full)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • p | view | perspective :: [Type => Str or List] $Arg = [x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]$

    Selects perspective view and sets the azimuth and elevation of the viewpoint [180/90]. (http://docs.generic-mapping-tools.org/latest/gmt.html#perspective-full)

  • t | alpha | transparency :: [Type => Str] $Arg = transp$

    Set PDF transparency level for an overlay, in (0-100] percent range. [Default is 0, i.e., opaque]. (http://docs.generic-mapping-tools.org/latest/gmt.html#t-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)

GMT.xyz2grdFunction
xyz2grd(cmd0::String="", arg1=nothing; kwargs...)

Convert data table to a grid file.

Full option list at xyz2grd

Parameters

  • I | inc :: [Type => Str | Number] Arg = xinc[unit][+e|n][/yinc[unit][+e|n]]

    x_inc [and optionally y_inc] is the grid spacing. (http://docs.generic-mapping-tools.org/latest/xyz2grd.html#i)

  • R | region | limits :: [Type => Str or list or GMTgrid|image] $Arg = (xmin,xmax,ymin,ymax)$

    Specify the region of interest. Set to data minimum BoundinBox if not provided. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • A | multiple_nodes :: [Type => Str] Arg = [d|f|l|m|n|r|S|s|u|z]

    By default we will calculate mean values if multiple entries fall on the same node. Use A to change this behavior. (http://docs.generic-mapping-tools.org/latest/xyz2grd.html#a)

  • D | header :: [Type => Str] Arg = [+xxname][+yyname][+zzname][+sscale][+ooffset][+ninvalid][+ttitle][+rremark]

    Output edges (http://docs.generic-mapping-tools.org/latest/xyz2grd.html#d)

  • G | outgrid :: [Type => Str]

    Output grid file name. Note that this is optional and to be used only when saving the result directly on disk. Otherwise, just use the G = grdclip(....) form. (http://docs.generic-mapping-tools.org/latest/xyz2grd.html#g)

  • J | proj | projection :: [Type => String]

    Select map projection. Defaults to 12x8 cm with linear (non-projected) maps. (http://docs.generic-mapping-tools.org/latest/gmt.html#j-full)

  • S | swap :: [Type => Str | []] Arg = [zfile]

    Swap the byte-order of the input only. No grid file is produced. (http://docs.generic-mapping-tools.org/latest/xyz2grd.html#s)

  • V | verbose :: [Type => Bool or Str] $Arg = [level]$

    Select verbosity level, which will send progress reports to stderr. (http://docs.generic-mapping-tools.org/latest/gmt.html#v-full)

  • Z | flags :: [Type => Str]

    Read a 1-column table. This assumes that all the nodes are present and sorted according to specified ordering convention contained in. $flags$. (http://docs.generic-mapping-tools.org/latest/xyz2grd.html#z)

  • bi | binary_in :: [Type => Str] $Arg = [ncols][type][w][+L|+B]$

    Select native binary format for primary input (secondary inputs are always ASCII). (http://docs.generic-mapping-tools.org/latest/gmt.html#bi-full)

  • di | nodata_in :: [Type => Str or Number] $Arg = nodata$

    Examine all input columns and if any item equals nodata we interpret this value as a missing data item and substitute the value NaN. (http://docs.generic-mapping-tools.org/latest/gmt.html#di-full)

  • e | pattern :: [Type => Str] $Arg = [~]”pattern” | -e[~]/regexp/[i]$

    Only accept ASCII data records that contains the specified pattern. (http://docs.generic-mapping-tools.org/latest/gmt.html#e-full)

  • f | colinfo | coltypes :: [Type => Str] $Arg = [i|o]colinfo$

    Specify the data types of input and/or output columns (time or geographical data). (http://docs.generic-mapping-tools.org/latest/gmt.html#f-full)

  • h | header :: [Type => Str] $Arg = [i|o][n][+c][+d][+rremark][+ttitle]$

    Primary input file(s) has header record(s). (http://docs.generic-mapping-tools.org/latest/gmt.html#h-full)

  • i | incols | incol :: [Type => Str] $Arg = cols[+l][+sscale][+ooffset][,…]$

    Select specific data columns for primary input, in arbitrary order. (http://docs.generic-mapping-tools.org/latest/gmt.html#icols-full)

  • r | reg | registration :: [Type => Bool or []]

    Force pixel node registration [Default is gridline registration]. (http://docs.generic-mapping-tools.org/latest/gmt.html#r-full)

  • yx :: [Type => Str or Bool or []] $Arg = [i|o]$

    Swap 1st and 2nd column on input and/or output. (http://docs.generic-mapping-tools.org/latest/gmt.html#colon-full)