Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
intercal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Collocation
intercal
Commits
719686a8
Commit
719686a8
authored
15 years ago
by
Greg Quinn
Browse files
Options
Downloads
Patches
Plain Diff
modis2airs_collect: add use of MISSING flag
parent
3d2680a4
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
flags.py
+1
-0
1 addition, 0 deletions
flags.py
modis2airs_collect.py
+3
-1
3 additions, 1 deletion
modis2airs_collect.py
with
4 additions
and
1 deletion
flags.py
+
1
−
0
View file @
719686a8
...
...
@@ -3,3 +3,4 @@
INVALID
=
1
LOW
=
2
HIGH
=
4
MISSING
=
8
This diff is collapsed.
Click to expand it.
modis2airs_collect.py
+
3
−
1
View file @
719686a8
import
numpy
import
sys
from
flags
import
*
from
modis_bright
import
modis_bright
from
pyhdf.SD
import
SD
,
SDC
from
util
import
HdfWriter
...
...
@@ -47,12 +48,13 @@ bt_mean[:] = modis_bright(rad_mean)
std_bt
[:]
=
modis_bright
(
rad_mean
+
rad_std
)
-
bt_mean
# for any pixel where N is zero, use fill values for the other
# variables
# variables
and set the MISSING flag
missing_idxs
=
(
n
==
0
)
rad_mean
[
missing_idxs
]
=
-
9999.0
rad_std
[
missing_idxs
]
=
-
9999.0
bt_mean
[
missing_idxs
]
=
-
9999.0
std_bt
[
missing_idxs
]
=
-
9999.0
flags
[
missing_idxs
]
=
MISSING
# output to HDF
writer
=
HdfWriter
(
output_file
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment