Hi all, I'd have one more idea and also some existing scripts - 1) If you have a regularly-spaced grid, you should also be able to use the /GRATICULE qualifier on the plot command itself, if you are careful to put the tic marks of the plot axes at the edges of grid cells: yes? use etopo60The graticule lines can be set to other colors and styles - see the documentation. 2) There are a few existing scripts to do this job. The unix command Fgo to search for scripts containing the word "grid" (I removed a few from this listing that aren't relevant) > Fgo grid * * * * * * * * in /home/porter/tmap/ferret/x86_64-linux/go gridlines.jnl: plot over the grid of a plot gridxt.jnl: create an overlay of IL graticule lines to show the grid points gridxy.jnl: create an overlay of IJ graticule lines to show the grid points gridxz.jnl: create an overlay of IK graticule lines to show the grid points gridyt.jnl: create an overlay of JL graticule lines to show the grid points gridyz.jnl: create an overlay of JK graticule lines to show the grid points gridzt.jnl: create an overlay of KL graticule lines to show the grid points polar_grid_fancy.jnl: overlay "fancy" radial logitude and curved latitude lines polar_grid.jnl: overlay "quick" radial logitude and curved latitude lines tgridlines.jnl: plot over the vertical grid of a plot xgridlines.jnl: plot over the vertical grid of a plot ygridlines.jnl: plot over the horizontal grid of a plot the gridlines, xgridlines, ygridlines, tgridlines use the ideas in Jaison's post and use the old and unsupported command ALINE (which works ok in x and y but not in time). the gridxy.jnl etc scripts use contouring. jagadish karmacharya wrote:
|