[Thread Prev][Thread Next][Index]

Re: draw grids in the map.



Hi ,
When you comment out the SHADE command, Ferret does not do the setup activities
that the shade command does, including setting the longitude and latitude units and the
length of the the axes that are plotted on the page. The main trouble is that you are starting
with a POLY/OVERLAY command which does no setup. I think the best solution is to
start with a call to the basemap.jnl script, instead of the call to fland that you have in your
script.  This way the axes are set up, and are properly labeled with degrees longitude and
latitude.

Or you could use /HLIMITS and /VLIMITS on the first POLYGON command to
set the correct lengths of the plot axes, and remove the /OVERLAY qualifier on the
first call so that Ferret knows this is the first plot and it needs to do the setup steps,
setting axis length and so on

Solution 1:
  go basemap x=160e:180e y=60s:40s 5

  let AA={168,168.5,168.5,168}
  let BB={-50,-50,-50.5,-50.5}

  polygon/nolabel/over/line/thick=0.2 AA,BB
  polygon/nolabel/over/line/thick=0.2 0.5+AA,BB
  polygon/nolabel/over/line/thick=0.2 1.0+AA,BB
  polygon/nolabel/over/line/thick=0.2 AA,-0.5+BB
  polygon/nolabel/over/line/thick=0.2 0.5+AA,-0.5+BB
  polygon/nolabel/over/line/thick=0.2 1.0+AA,-0.5+BB

or, Solution 2:

  let AA={168,168.5,168.5,168}
  let BB={-50,-50,-50.5,-50.5}

  polygon/nolabel/HLIMITS=160e:180e/VLIMITS=60s:40s/line/thick=0.2 AA,BB
  polygon/nolabel/over/line/thick=0.2 0.5+AA,BB
  polygon/nolabel/over/line/thick=0.2 1.0+AA,BB
  polygon/nolabel/over/line/thick=0.2 AA,-0.5+BB
  polygon/nolabel/over/line/thick=0.2 0.5+AA,-0.5+BB
  polygon/nolabel/over/line/thick=0.2 1.0+AA,-0.5+BB
  go fland 5 
-Ansley

Namba Takaya wrote:
Hello Mick

I am sorry to make you confused.
I explain again.
I use ferret 5.7 on the PC linux (Mandrake 10.1).
If I delete two lines (make them comments) like below, it
only draws a strange line without the map of New Zealand.
If I put two lines, I can get six grids with the proper
map as I want.
Could you tell me why?

set region/x=160e:180e/y=40s:60s
!!! use etopo5
!!! shade/nokey/nolabel/level=(0,10000) rose
let AA={168,168.5,168.5,168}
let BB={-50,-50,-50.5,-50.5}
polygon/nolabel/over/line/thick=0.2 AA,BB
polygon/nolabel/over/line/thick=0.2 0.5+AA,BB
polygon/nolabel/over/line/thick=0.2 1.0+AA,BB
polygon/nolabel/over/line/thick=0.2 AA,-0.5+BB
polygon/nolabel/over/line/thick=0.2 0.5+AA,-0.5+BB
polygon/nolabel/over/line/thick=0.2 1.0+AA,-0.5+BB
go fland 5 
quit 





--- Mick.Spillane@noaa.gov からのメッセージ:
  
Hello Namba Takaya,
	Your script works fine for me using ferret v5.70 -
I get six
little boxes below the island.  The /thick=0.2 does
not match the
description in the manual where the allowed values
for the argument would
seem to be 1,2, or 3 corresponding to the
thicknesses of lines 1, 7, and
13 in the case of regular black lines.  But the
value 0.2 does not cause
any problem when I tested your script - it just gave
a normal thickness
line.
	Can you give more detail about how the script
failed when you
ran it.

Mick

|!!! Mick.Spillane@noaa.gov !!!|
|__Room 2070 Bldg#3 NOAA/PMEL__|
|____Phone_:_(206)526-6780_____|



    

__________________________________
Do You Yahoo!?
Upgrade Your Life
http://bb.yahoo.co.jp/

  

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement