phasei (or t.phasei depending on version)

Version 1.1 - 25 Nov 2020 - Eric E. Palmer Given an image and a bigmap, determines local phase, emission angle, and incidence angle and writes them to a TXT file. Also output other data, including a text file for the latitude and east longitude of each pixel (which is independent of the image chosen).

Input - files

Input - stdin

Example

IN1ED1
XXXXXXXXXXXX

Output


Note: a, e, and i all have the upper left pixel value agree with the direction seen in SHOWMAP for the bigmap. HOWEVER, lat and lon will need to be flipped top to bottom, then rotated 90 degrees clockwise to agree with the bigmap. JRW hasn't checked the orientation of x and y slope.