Permalink
Browse files

Changed fill value ranges for VIIRS image bands so that negatives values

are OK and below -999 are bad.
  • Loading branch information...
1 parent 53a0976 commit 22210be75a8731118aa42b667379a466dffd531e @davidh-ssec committed Dec 19, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 py/polar2grid_viirs/polar2grid/viirs/viirs_guidebook.py
@@ -193,13 +193,13 @@
# missing value sentinels for different datasets
# 0 if scaling exists, 1 if scaling is None
MISSING_GUIDE = {
- DKIND_REFLECTANCE: (lambda A: A>=65528, lambda A:A<0.0),
- DKIND_RADIANCE: (lambda A: A>=65528, lambda A: A<0.0),
- DKIND_BTEMP: (lambda A: A>=65528, lambda A: A<0.0),
- K_SOLARZENITH: (lambda A: A>=65528, lambda A: A<0.0),
- K_MODESCAN: (lambda A: A>1, lambda A: A>1),
- K_LATITUDE: (lambda A: A>=65528, lambda A: A<=-999),
- K_LONGITUDE: (lambda A: A>=65528, lambda A: A<=-999)
+ DKIND_REFLECTANCE : ( lambda A: A>=65528, lambda A: A < -999.0 ),
+ DKIND_RADIANCE : ( lambda A: A>=65528, lambda A: A < -999.0 ),
+ DKIND_BTEMP : ( lambda A: A>=65528, lambda A: A < -999.0 ),
+ K_SOLARZENITH : ( lambda A: A>=65528, lambda A: A < -999.0 ),
+ K_MODESCAN : ( lambda A: A>1, lambda A: A > 1 ),
+ K_LATITUDE : ( lambda A: A>=65528, lambda A: A <= -999 ),
+ K_LONGITUDE : ( lambda A: A>=65528, lambda A: A <= -999 )
}

0 comments on commit 22210be

Please sign in to comment.