geo trans

From DavinciWiki
Jump to: navigation, search

Description

Translate map coordinates (latitude and West positive longitude) to image coordinates (x,y) for a given image resolution, where (1,1) is the upper left corner of the image.

Arguments and Return Values

Arguments: The latitude and longitude along with the image resolution.

Return Value: The x and y position for the specified latitude and longitude

Usage

Syntax: geo_trans(latitude, longitude, resolution [, center lon])

'latitude' - A FLOAT latitude value

'longitude' - A FLOAT longitude value

'resolution' - The image resolution in pixels per degree

'center lon' - The center longitude of the image. Default is 0.

Examples

dv> a = geo_trans( 54.55 , -90.48 , 8 )
2x1x1 array of int, bsq format [8 bytes]
2164    284
dv> a = geo_trans( 54.55 , 90.48 , 8 , 180 )
2x1x1 array of int, bsq format [8 bytes]
2157    284

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 02-15-2006
Modified On: 08-04-2008

Personal tools