dssetp, dsgetp

Set and retrieve parameters for Dsgrid routines. The ncl language affords a convenient implementation of the parameter setting and retrieval functions.


Synopsis


    procedure dssetp(
        pnam[1] : string,
        pval[1]
    )
 
    function dsgetp(
        pnam[1] : string
    )
 

Arguments

pnam
name of the parameter you want to set or retrieve
pval
value of the parameter you want to set; this value must be of the type appropriate to the parameter being set.

Description

The procedure dssetp is used to set values for natgrid parameters; the function dsgetp is used to retrieve the current value of the named parameter. dsgetp returns a value that is of the type appropriate to the parameter type.

Example

begin

  NUM = 6
  NX = 61
  NY = 61

  xi = (/0.00, 1.00, 0.00, 1.00, 0.40, 0.75/)
  yi = (/0.00, 0.00, 1.00, 1.00, 0.20, 0.65/)
  zi = (/0.00, 0.00, 0.00, 0.00, 1.25, 0.80/)
  xeye =  3.3
  yeye = -3.3
  zeye =  3.3

  xo = new((/NX/),float)
  yo = new((/NY/),float)

;
; Create the output grid.
;
  xinc = 1./(NX-1) 
  yinc = 1./(NY-1) 
  ii = fspan(0.,60.,NX)
  xo = xinc * ii
  yo = yinc * ii
;
; Exponent equals 0.5
;
  dssetp("exp", 0.5)
  output = dsgrid2s(xi, yi, zi, xo, yo)
end


Reference Manual Control Panel

NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?


$Revision: 1.6 $ $Date: 1998/11/11 23:32:15 $