login

lon2x.gsf

Top / GrADS / script / lon2x.gsf

Japanese / English

Name

lon2x() - Convert longitudinal level (lon) to longitudinal grid number (x).

Synopsis

ret = lon2x( lon )

Options and Return values

lon
Longitudinal level.
ret
Longitudinal grid number (x).

Examples

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

  • test.gs
    rc = gsfallow( 'on' )
    'open t.ctl'
    say lon2x( 180 )
    
  • console
    ga-> test
    73
    

Script source code