login

y2lat.gsf

Top / GrADS / script / y2lat.gsf

Japanese / English

Name

y2lat() - Convert latitudinal grid number (y) to latitudinal level (lat).

Synopsis

ret = y2lat( y )

Options and Return values

y
Latitudinal grid number.
ret
Latitudinal level (lat).

Examples

(1) Obtain latitude for y=30.

  • test.gs
    rc = gsfallow( 'on' )
    'open t.ctl'
    say y2lat( 30 )
    
  • console
    ga-> test
     -17.5
    

Script source code