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
04710ebe
Commit
04710ebe
authored
16 years ago
by
Greg Quinn
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a handful of small problems
parent
8fc1e265
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
modis2airs.py
+5
-5
5 additions, 5 deletions
modis2airs.py
modis_bright.py
+1
-1
1 addition, 1 deletion
modis_bright.py
with
6 additions
and
6 deletions
modis2airs.py
+
5
−
5
View file @
04710ebe
...
...
@@ -34,9 +34,9 @@ in_rads = read_modis_radiances(modis_file)
# and the collocation data
coll_sd
=
SD
(
coll_file
)
num_colls
=
sd
.
select
(
'
Number_Of_MODIS_FOV
'
).
get
()
modis_along_idxs
=
sd
.
select
(
'
MODIS_Along_Track_IDX
'
).
get
()
modis_across_idxs
=
sd
.
select
(
'
MODIS_Across_Track_IDX
'
).
get
()
num_colls
=
coll_
sd
.
select
(
'
Number_Of_MODIS_FOV
'
).
get
()
modis_along_idxs
=
coll_
sd
.
select
(
'
MODIS_Along_Track_IDX
'
).
get
()
modis_across_idxs
=
coll_
sd
.
select
(
'
MODIS_Across_Track_IDX
'
).
get
()
# set up numpy arrays for output
bt_arr
=
numpy
.
empty
((
16
,
135
,
90
),
numpy
.
float32
)
...
...
@@ -52,8 +52,8 @@ for airs_row in range(135):
num
=
num_colls
[
airs_row
,
airs_col
]
if
num
==
0
:
bt_arr
[:,
airs_row
,
airs_col
]
=
-
9999.0
std_
sds
[:,
airs_row
,
airs_col
]
=
-
9999.0
n_
sds
[:,
airs_row
,
airs_col
]
=
0
std_
arr
[:,
airs_row
,
airs_col
]
=
-
9999.0
n_
arr
[
airs_row
,
airs_col
]
=
0
continue
along_idxs
=
modis_along_idxs
[
airs_row
,
airs_col
,:
num
]
across_idxs
=
modis_across_idxs
[
airs_row
,
airs_col
,:
num
]
...
...
This diff is collapsed.
Click to expand it.
modis_bright.py
+
1
−
1
View file @
04710ebe
...
...
@@ -58,7 +58,7 @@ temp_corr_int = numpy.array([0.48007,
0.02062
,
0.02258
,
0.01912
,
0.01793
]).
reshape
((
16
,
1
,
1
))
0.01793
]).
reshape
((
16
,
1
))
# Planck's constant (Joule seconds)
h
=
6.6260755e-34
...
...
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