The command Image.Formula(string) applies a Formula (see the Astroart Help) to the image.
For example, try:
Image.Formula("v + 500")
Other new functions are Image.Crop(x1,y1,x2,y2) , Image.JD and functions to iterate over the selected stars, to create a customized report:
Code: Select all
magVar = 0
n = Image.Stars.Count
for i = 1 to n
ra = Image.Stars.RA(i)
de = Image.Stars.DE(i)
adu = Image.Stars.ADU(i)
mag = Image.Stars.Mag(i)
sn = Image.Stars.SN(i)
ocmag = Image.Stars.OCMag(i)
pref = Image.Stars.PRef(i)
if not pref then
magVar = mag
end if
next i
if magVar = 0 then Warning("Variable star not found")
WriteReportLine()
end
sub WriteReportLine
sLine = Format(Image.JD, "0.000000") + " V"
sLine = sLine + Format(magVar, " 0.0000") + Format(magVar, " 0.0000")
print sLine
'AppendText(sLine ....
end sub
function ImageMidUT
return Image.JD + Image.GetKey("EXPOSURE")/3600/24/2
end function
As usual this example calculates the "Mid of Exposure" as : "Start of Exposure" + Exposure / 2.
Mid Exposure (used in photometry and astrometry) is indeed always a calculated field, while all Times (in the FITS standard too) are always referred to the start of exposure.
Edit: for improved compatibility use the EXPTIME keyword instead of EXPOSURE:
Code: Select all
function ImageMidUT
return Image.JD + Image.GetKey("EXPTIME")/3600/24/2
end function