map trans

From DavinciWiki
Jump to: navigation, search

Description

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

Arguments and Return Values

Arguments: The image coordinates along with the image resolution.

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

Usage

Syntax: map_trans(x value, y value [, resolution] [, UL Lon] [, UL Lat])

'x value' - The x value

'y value' - The y value

'resolution' - The image resolution in pixels per degree. Default is 1.

'UL Lon' - The upper left longitude value. Default is 180.

'UL Lat' - the upper left latitude value. Default is 90.


Examples

dv> map_trans(5,5)
Latitude is 84 to 85
Longitude is 174 to 175
dv> map_trans(190,500,8)
Latitude is 27.375 to 27.5 
Longitude is 156.125 to 156.25

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