Re: Keywords GS and LIMITS not allowed in TRIGRID [message #9564] |
Wed, 16 July 1997 00:00 |
J French
Messages: 1 Registered: July 1997
|
Junior Member |
|
|
Scott Applequist wrote:
>
> I am trying to specify the grid spacing and limits in the
> TRIGRID function (1-909R). I am getting an error message
> that neither keyword is allowed in this function (quite
> contrary to the documentation it seems). The following
> are the relevant code and error message I receive. Thanks
> for any possible guidance.
>
> ;These arrays contain 74 longitude, latitudes, and geopotentials
> bigbox=[15.,-115.,60.,-60.]
> xlon = fltarr(nh)
> xlat = fltarr(nh)
> hght = fltarr(nh)
>
> ;Data assignment statements
> .
> .
> .
>
> triangulate, xlon, xlat, tr, b
> gridhght = trigrid(xlon, xlat, hght, tr, extrapolate=b $
> ,gs=[1.0,1.0] , limits=bigbox )
>
> �
> ----------------------Session Output-------------------
> IDL. Version 4.0.1 (vms alpha).
> Copyright 1989-1995, Research Systems, Inc.
> All rights reserved. Unauthorized reproduction prohibited.
> Installation number: 12608-30.
> Licensed for use by: FSU - GFDI
>
> IDL> .run test
> % Compiled module: $MAIN$.
> 571201/0000
> 68 good values
> % Keyword GS not allowed in call to: TRIGRID
> % Execution halted at: $MAIN$ 36
> FEDORA$DKB200:[SCOTT.PROGS.FIXDATA]TEST.PRO;11
>
> If I omit the gs=[1.0,1.0] part, the same error is returned
> with the word LIMITS in place of GS. If both are omitted,
> TRIGRID works, but not with the desired grid spacing or limits.
Scott,
The problem with your call to tridgrid is that 'gs' and 'limits'
are arguments, not keywords. Since they are arguments (positional
parameters) they must come before the keyword extrapolate. Also, since
they are not keywords, you should not have the 'gs=' or 'limits='.
The following should work:
gridhght = trigrid(xlon, xlat, hght, tr, [1.0,1.0], bigbox,$
extrapolate=b)
Good Luck
Jeff French
Dept. Atmos. Sci.
University of Wyoming
|
|
|