thm.corners

From DavinciWiki
(Redirected from Thm.corners)
Jump to: navigation, search


Description

Find the corner pixels of a projected THEMIS image

Arguments and Return Values

Arguments: A THEMIS data array and an ignore value

Return Value: A 8x1x1 array containing the x and y values of the four corners

Usage

Syntax: thm.corners(image = VAL [, ignore = VAL])

'image' is a 1 band geometrically projected THEMIS image

'ignore' is the value of pixels without valid data

If an image is passed with more than one band, corners will only use the first band.

The return values are:

  1. X value of upper left corner
  2. Y value of upper left corner
  3. X value of upper right corner
  4. Y value of upper right corner
  5. X value of lower left corner
  6. Y value of lower left corner
  7. X value of lower right corner
  8. Y value of lower right corner

Examples

dv> a
1356x7100x1 array of float, bsq format [38,510,400 bytes]

dv> b = thm.corners(a,ignore=-32768)
1x8x1 array of int, bsq format [32 bytes]
967
11
1293
30
22
7081
339
7098

Images

Note: The corners above do not match this image because it was resized for viewing in web browser

norectify.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 01-16-2013

Personal tools