You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the equations coded up seem to be different from what is in the above document. If you re-index the angles as l0, l1, l2, l3 (and similarly for phi) and assuming that $\lambda_{-1}=\lambda_{3}$ (in the notation of the document), then the 870 should become:
The line 870+ of wcs.py to reference the document https://trs.jpl.nasa.gov/bitstream/handle/2014/40409/JPL%20Pub%2007-3%20%20w%20Errata.pdf?sequence=3&isAllowed=y
However, the equations coded up seem to be different from what is in the above document. If you re-index the angles as l0, l1, l2, l3 (and similarly for phi) and assuming that$\lambda_{-1}=\lambda_{3}$ (in the notation of the document), then the 870 should become:
area=np.abs((l1-l3)(np.sin(phi0)-np.sin(phi2)) + (l0-l2)(np.sin(phi3)-np.sin(phi1)))/2.
This gives correct pixel areas.
The text was updated successfully, but these errors were encountered: