Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EdosL0Util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SIPS
EdosL0Util
Commits
572a59fe
Commit
572a59fe
authored
6 years ago
by
Bruce Flynn
Browse files
Options
Downloads
Patches
Plain Diff
fix: VIIRS apid order for rdr2l0
parent
5afc1df7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
edosl0util/jpssrdr.py
+3
-2
3 additions, 2 deletions
edosl0util/jpssrdr.py
setup.py
+1
-0
1 addition, 0 deletions
setup.py
with
4 additions
and
2 deletions
edosl0util/jpssrdr.py
+
3
−
2
View file @
572a59fe
...
@@ -22,7 +22,7 @@ import numpy as np
...
@@ -22,7 +22,7 @@ import numpy as np
from
h5py
import
File
as
H5File
from
h5py
import
File
as
H5File
from
.headers
import
BaseStruct
from
.headers
import
BaseStruct
from
.merge
import
merge
from
.merge
import
merge
,
VIIRS_APID_ORDER
LOG
=
logging
.
getLogger
(
__name__
)
LOG
=
logging
.
getLogger
(
__name__
)
...
@@ -323,8 +323,9 @@ def _do_rdr_to_l0(filepat, satellite, product, rdrs, start, end):
...
@@ -323,8 +323,9 @@ def _do_rdr_to_l0(filepat, satellite, product, rdrs, start, end):
pdsname
=
pdsfilename
(
product
,
start
)
pdsname
=
pdsfilename
(
product
,
start
)
LOG
.
info
(
'
merging to %s
'
,
pdsname
)
LOG
.
info
(
'
merging to %s
'
,
pdsname
)
order
=
VIIRS_APID_ORDER
if
'
VIIRSSCIENCE
'
in
product
else
None
with
open
(
pdsname
,
'
wb
'
)
as
dest
:
with
open
(
pdsname
,
'
wb
'
)
as
dest
:
merge
(
streams
,
output
=
dest
,
trunc_to
=
[
start
,
end
])
merge
(
streams
,
output
=
dest
,
trunc_to
=
[
start
,
end
]
,
apid_order
=
order
)
return
pdsname
return
pdsname
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
0
View file @
572a59fe
...
@@ -32,5 +32,6 @@ setup(
...
@@ -32,5 +32,6 @@ setup(
edosl0merge = edosl0util.cli.merge:main
edosl0merge = edosl0util.cli.merge:main
edosl0crgen = edosl0util.cli.crgen:main
edosl0crgen = edosl0util.cli.crgen:main
rdr2l0 = edosl0util.cli.rdr2l0:main
rdr2l0 = edosl0util.cli.rdr2l0:main
rdrgen = edosl0util.cli.rdrgen:main
"""
"""
)
)
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