Next: 1.1.6 Overview of GMT Up: 1.1 What is new Previous: 1.1.4 Overview of GMT Contents Index

## 1.1.5 Overview of GMT 4.1.4 [Nov-1, 2006]

Changes in GMT 4.1.4 are again relatively minor and predominantly bug fixes. One imporant new feature is that GMT can now automatically recognize the format of the grid file given to a program. The use of the ``=id'' mechanism is now only needed when writing an output file in a grid format other than the netCDF default or when reading using custom scaline and translation is required. We have also added a new user directory pointed to by GMT_USERDIR (default directory is /.gmt) where items such as .gmtdefaults4 will be looked for. Additionally, a few enhancements have been made to overcome limitations in the previous versions:

1. grd2cpt has a new option -T for the creation of tables symmetric about zero.
2. grdblend will accept negative weights which are taken to mean that the sense of tapering should be reversed.
3. grdedit has a new option -E to transpose the entire grid.
4. grdmath has a new option -N to turn off strict domain match checking when multiple grid files are involved.
5. grdreformat now supports the -f option.
6. nearneighbor will now optionally accept a min_sectors argument appended to the -N option.
7. pshistogram's option -I can now accept a modifier O to output all bin data even if .
8. psscale will now invert the color scale if a negative length is provided, and -I will now work with colormaps with non-constant interval and with gaps (-L).
9. psxy and psxyz have a new option -SjJ that plots a rotatable rectangle but otherwise behaves similarly to -SeE.
10. ps2raster has many improvements; added EPS output; high-quality PDF output. Also removed -dDOINTERPOLATE option which caused inversion of colour map and had no benefits.

Below is a list of previous problems (a few accidently introduced in GMT 4.1.3) that we have identified and corrected in the current release:

gmt_agc.c
  : AGC grids use 0 to represent NaNs - this was not implemented yet.
gmt_calclock.c
  : Proper rounding of time when converting to dates.
gmt_support.c
  : Fixed bug in -I when modifier = was used.
gmt_init.c
  : Fixed bug not recognizing PAGE_ORIENTATION as well as a bug that prevented proper writing of PAGE_ORIENTATION in defaults. Added a check so gmtset will not crash if VALUE is not given. Finally, let GMT_HOMEDIR default to C: under Windows if HOME is not set.
gmt_io.c
  : `GMT_scanf_argtime` now returns RELTIME (not ABSTIME) when relative time is found.
gmt_grdio.c
  : Set [xy]_units also in `GMT_update_grd_info`. Fixed time-scaling bug on input (was always seconds). Make units check case-insensitive. Check for toggled lat/lon coordinates.
gmt_nc.c
  : Made sure no garbage remains under Cygwin when using `strncpy`. Check if x- and y-coordinates have constant step sizes; issue warning if not.
gmt_plot.c
  : Bugs related to annotations with -JPa and its z modifier fixed. Log gridlines did not work for 3-D view. 3-D axis label would sometimes get misplaced due to round-off. 3-D map scale did not project correctly. Duplicate title could appear if -JX was used and one axis was geographic (d). Needed to add secondary font to list to be encoded.
pslib.c
  : Fixed memory management in LZW compression (memory leak). Improved EPS conformance.
filter1d
  : Robust option used extreme rather than median to determine the outliers.
gmtconvert
  : Did not have -L listed in synopsis.
grdblend
  : Now skip grids that are entirely outside the region of interest.
grdcontour
  : Crashed if -M and -D were used with no file name specified. The -W[+][ca] option was susceptible to misinterpreting things like -Wcyan as contour pen with color yan.
grdcut
  : Require geographical instead of global in order to shift by 360 degrees.
grdfilter
  : Should not wrap over pole unless grid extends all the way to the pole.
grdinfo
  : When -C was used there was no linefeed at the end.
grdsample
  : -T did not ignore -R (as per manual), resulting in changed cell size. -F did not use gridline node registration as default, rather that of the input grid. When using pixel node registration, number of cells would be one too large. -L worked only in very limited case: going from x=[-180;180] to x=[0;360]. Now supports any periodicity in X and Y (as per manual). -F again forces pixel node registration. Default is same as input. More consistency with manual.
grdtrack
  : The -Z option failed to be set for some input configurations.
grdvector
  : Added -f option.
grdview
  : The -W[cm] option was susceptible to misinterpreting things like -Wcyan as contour pen with color yan.
grdvolume
  : Three bugs squashed: gridcell oriented grids now get proper area and volume, including edges; only one cell per NaN is excluded; when -C and -L are combined, the volume is properly corrected for the baseline height.
pscoast
  : -N and -I reset pens to default settings after initially changing them. Did not change output mode to binary (Windows only) if -M and -b were set. Both -Gc and -Sc needed to check that no letter is following the c modifier.
pscontour
  : The -D dump option wrote projected instead of original coordinates.
psimage
  : -G colorname (e.g., -Gblack) will now be interpreted as foreground color, e.g. -Gfblack.
pslegend
  : Did not replace octagons with polygon form when pattern was requested. Did not consider if absolute coordinates were given in -X and -Y. Passed the wrong character code when M was chosen with a plain scale modifier.
psscale
  : A vertical bar with a label placed along it was mis-justified.
pstext
  : Default for -G is now BASEMAP_FRAME_RGB as for other map annotations. The box option -W[fill][oOcC][pen]] is now -W[fill,][oOcC][pen]], i.e., we now use a comma to separate the fill and pen (done since fill may be a name containing oc); parsing is backwards compatible.
psxyz
  : -C for symbols did not pick up color fill.
trend2d
  : Processing of -F happened after checking.
xyz2grd
  : Had -Az as default rather than no -A. Fixed bad header parsing when -E was selected.

A few bug-fixes applies to the supplements as well:

grdraster
  : Only do 360-degree wrapping if working on a geographic grid.
mgd77list
  : Did not process time when -Am24 was set and time was not requested as output. Also, did not process time when -Am24 was set and time was not requested as output.
x2sys.c
  : Did not look in current dir for *.def files.

Next: 1.1.6 Overview of GMT Up: 1.1 What is new Previous: 1.1.4 Overview of GMT Contents Index