[Thread Prev][Thread Next][Index]

[ferret_users] saving graph, plot station position and station label



Dear Ferret-Users,

Thank you very much for guiding me in my early time using Ferret, especially for Ansley Mankey, William S. Kessler, and Karl Smith.
Now, I can start using Ferret eventhough with minimum experience by using FAQ website, UserGuide, and Search Facilities of Documentation Mail Users.


But, after looking for references (such as polymark_demo and label), I cannot find the best way:
  1. how to save my graph (it always quit from ferret mode if I run frame command)
  2. how to plot a position label and station label by using my own data, I have no more idea about it eventhough already try by using plot and label command like the following script.
Anybody knows how to do this?
Thanks for your help!

Kindest regards,

dessy


!        BATHYMETRY
!----------------------------------
!----------------------------------
!target: bottom depth contour, horizontal grid size, tidegauge and current measurement location
!
!file input: bathy.btm
!posisi tidegauge dan current measurement location:
!(j,i)=87,53 (tidegauge/(114.5746841 E, -8.3852262 S)) dan (j,i)=153,19 (current/(114.4205475 E, -8.0863380 S))
!
!DEFINE AXIS and GRID
define axis/x=114.3389435e:115.1776276e:0.004535/unit=degree longitude
define axis/y=8.7746868s:8.0546379s:0.0045334/unit=degree latitude

!DEFINE POSITION
define grid/x=longitude/y=latitude bathymetry
file/format=(186f12.3)/var=depth/grid=bathymetry/columns=186 BATHY.BTM

!DATA DESCRIPTION
set data BATHY.BTM
show data

!CONVERT to a single NETCDF
save/clobber/file=reverse_bathy.cdf depth

!to REVERSE COORDINATE
use/order=x-y reverse_bathy.cdf

!DATA DESCRIPTION
set data reverse_bathy.cdf
show data

!MAPPING in greyscale
!go depth x=114.3389435e:115.1776276e y=8.7746868s:8.0546379s 20

!---------------------------------------------------------------
!DRAWING
!---------------------------------------------------------------
!GREYSCALE
palette=greyscale
fill/set depth
ppl lev,(),(0.001)(10)(20)(30)(50)(100)(200)(300)(400)(500)
ppl lev,(600)(700)(800)(900)(1000)
ppl shakey,1,1,0,1
ppl fill

!CONTOUR - TWO COLOUR
set win/new
contour/lev=(0.001,100,10) depth
contour/lev=(0.001,100,10)/over/key/l=1/lev=(100,1000,100) depth

!CONTOUR - ONE COLOUR
set win/new
contour/lev=(0.001,100,10) depth
contour/over/lev=(0.001,100,10)/color=black/lev=(100,1000,100)/key depth
!plot/vs/over xpos,ypos
let valxy=depth[x=114.5746841E,y=8.3852262S]
!let valxy=depth[x=53,y=87]
!plot/vs/over/nolab/line=8/color=black valxy -->> Ferret said that this is ERROR: command syntax: y=8.3852262S; command file, !command group, or repeat execution aborted


!---------------- end of fine graph -------------

!MARKING POSITION
!set win/new
!let/quiet land=0 depth
!palette=greyscale
!contour/fill land
!palette=default
!fill/over/lev=(0,001,100,10)/color=black/lev=(100,1000,100)/key depth
!contour/lev=(0.001,100,10) depth
!contour/over/lev=(0.001,100,10)/color=black/lev=(100,1000,100)/key depth

!go polymark poly/over/key/pattern=2patterns/palette=black/line/fill x[i=87] y[i=53] depth square .6
!poly/over/key/pattern=2patterns/palette=black/fill x[i=87] y[i=53] depth square .6
!let xpts=87
!let ypts=53
!let xp=153
!let yp=19
!go depth x=114.3389435e:115.1776276e y=8.7746868s:8.0546379s 0.004535
!contour/lev=(0.001,1000,100) depth
!go polymark polygon/over/key xpts,ypts,,square,0.6
!poly/over/line/palette=black/fill xpts,ypts,,square .6
!poly/over/line/palette=black/fill xp,yp,,circle .6

!-------------------------------------
!----eof----
!-------------------------------------

!ppl contour

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement