[Thread Prev][Thread Next][Index]

Re: [ferret_users] custom jnl worked in las6.4.2 but not las 6.5.12and ferret5.81

Hi Kek,
In your script myland.jnl, I don't see where your script uses the argument. The Ferret query command does not take any action except to check the argument. The Ferret commands in your script that open the data file and make the land line are:

! introduce the outline data set set data/save
use my-coastline.nc

To have the line drawn with a thick line, the plot command could use a ppl command to set the pen as in land.jnl, or if the argument is always going to be either "thick" or nothing, you could use this, to set the thickness to 1 if there is no argument or 2 if the argument is the word thick.

PLOT/VS/OVERLAY/NOLAB/LINE/THICK=$1"1|thick>2|*>1" lon,lat

hengkek@nus.edu.sg wrote:


I've a custom .jnl file that draws a very detailed coastline that worked in las6.4.2/ferret5.70 but broke in las6.5.12/ferret5.81. I'm suspecting it has to do with ferret. Notes are as follows:

- In "las/server/jnls/std_gif.tmpl", I changed "go land" to "go myland".

- The variable (e.g. depth) is plotted but not the coastline.

- When I changed back to "go land" in std_gif.tmpl, the coarse coastline is drawn.

- When I use "go myland" in a regular (non-LAS) ferret5.81 session, it works somewhat as expected. In ferret5.70, "go myland thick overlay" gave a thick coastline, but in ferret5.81 it gave the normal "thin" coastline.

- "myland.jnl" is a symlink in "/usr/local/ferret/go/".

- The src for "/usr/local/ferret/go/myland.jnl" (below) is a mod of "land.jnl".

- A las6.4.2/ferret5.81 combo also failed to produce the "myland" coastline.

- "uname -a" gives "Linux host1 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux"

I'd be grateful for clues/advice as to how to fix this or how to debug it.

Physical Oceanography

src of myland.jnl:
\cancel mode verify ! ... now overlaying coastal outline ...

! Description: Plot outlines of my coastline

! arg 1
! usage: GO land [pen]

! pens may be "0"(background), "1"(foreground), "thick"(same as pen 7),
! "black", "red", "green", "blue", or 2-18.
! arg 2 may be "basemap", "overlay", "fast" (fast, 20e:20e overlay) or omitted

! Note 1: A pen color of "black" will actually pen number 1
! -- normally white if the window background is black
! Note 2: An "N" for the continent pen means no continents
! -- use this for the special case of geo-political
! overlay without continents.

! examples:
! GO land red - overlay continents using red pen (2)
! GO land 10 - overlay continents using pen number 10
! Notes:
! 2) use GO line_samples to view the first 6 pen numbers
! Higher pen numbers cycle with thicker lines (max 18)

! test argument before performing any actions
query/ignore $1%1|black|red|green|blue|thick|0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|
15|16|17|18|N|<GO land [pen or "N"] ["basemap"] [pen] [pen] with pen = 0(back),
1(fore), thick, 2-18 or a color%

! introduce the outline data set
set data/save
use my-coastline.nc

cancel data my-coastline.nc
set data/restore
set mode/last verify

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement