@BeginModule
@NewPage
@Name      = Outputgmt
@Title     = GMT output
@Section   = Import/Export
@Arguments = ifile
@Operators = gmtxyz gmtcells

@BeginDescription
This module prints the first field of the input dataset to standard output.
The output can be used to generate 2D Lon/Lat plots with @cite{GMT}.
The format of the output depends on the chosen operator.
@EndDescription
@EndModule


@BeginOperator_gmtxyz

@Title     = GMT xyz format

@BeginDescription
The operator exports the first field to the GMT xyz ASCII format.
The output can be used to create contour plots with the GMT module pscontour.
@EndDescription
@EndOperator


@BeginOperator_gmtcells

@Title     = GMT multiple segment format

@BeginDescription
The operator exports the first field to the GMT multiple segment ASCII format.
The output can be used to create shaded gridfill plots with the GMT module psxy.
@EndDescription
@EndOperator


@BeginExample
1) GMT shaded contour plot of a global temperature field with a resolution of 4 degree.
The contour interval is 3 with a rainbow color table.
@BeginVerbatim
  cdo gmtxyz temp > data.gmt
  makecpt -T213/318/3  -Crainbow > gmt.cpt
  pscontour -K -JQ0/10i -Rd -I -Cgmt.cpt data.gmt > gmtplot.ps
  pscoast -O -J -R -Dc -W -B40g20 >> gmtplot.ps
@EndVerbatim
@IfDoc
\vspace{1mm}

\includegraphics[width=\textwidth]{gmtshaded.pdf}

\vspace{1mm}
@EndifDoc

2) GMT shaded gridfill plot of a global temperature field with a resolution of 4 degree.
The contour interval is 3 with a rainbow color table.
@BeginVerbatim
  cdo gmtcells temp > data.gmt
  makecpt -T213/318/3  -Crainbow > gmt.cpt
  psxy -K -JQ0/10i -Rd -L -Cgmt.cpt -m data.gmt > gmtplot.ps
  pscoast -O -J -R -Dc -W -B40g20 >> gmtplot.ps
@EndVerbatim
@IfDoc
\vspace{1mm}

\includegraphics[width=\textwidth]{gmtgrfill.pdf}

\vspace{1mm}
@EndifDoc
@EndExample
