Skip to content

Commit

Permalink
Fix inconsistent calculation of pixel areas
Browse files Browse the repository at this point in the history
This change addresses an inconsistency in the area of
a pixel calculated from the one-dimensional 'FP_sample'
and the area calculated from the two-dimensional 'sample'
coordinate. IMO, based on the A.F.P. C6 User Guide and
Ichoku and Kaufman (2005), the latter was incorrectly offset
by 1.
  • Loading branch information
adarmenov committed Jul 11, 2023
1 parent 7fad938 commit 0d8060a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qfed/mxd14_l3.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def _readAreas(self,mxd14,mxd03):
# Calculate pixel area
# --------------------
Area = np.zeros((nLines,nSamples))
Area[:] = _pixar(1+np.arange(nSamples))
Area[:] = _pixar(np.arange(nSamples))

# non-fire land pixel
i = np.logical_and(fmask==NOFIRE, valid)
Expand Down

0 comments on commit 0d8060a

Please sign in to comment.