login

lat2y.gsf

Top / GrADS / script / lat2y.gsf

Japanese / English

Name

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

Synopsis

ret = lat2y( lat )

Options and Return values

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

Examples

(1) Obtain latitudinal grid number for 45 degree North.

  • test.gs
    rc = gsfallow( 'on' )
    'open t.ctl'
    say lat2y( 45.0 )
    
  • console
    ga-> test
    55
    

Script source code