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
18891955
Commit
18891955
authored
5 years ago
by
Bruce Flynn
Browse files
Options
Downloads
Patches
Plain Diff
fix py2 compat
parent
ea8e7720
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
edosl0util/cli/rdrmerge.py
+12
-1
12 additions, 1 deletion
edosl0util/cli/rdrmerge.py
with
12 additions
and
1 deletion
edosl0util/cli/rdrmerge.py
+
12
−
1
View file @
18891955
import
logging
import
os
import
shutil
from
contextlib
import
contextmanager
from
datetime
import
datetime
from
glob
import
glob
from
os.path
import
basename
,
join
from
tempfile
import
TemporaryDirectory
from
tempfile
import
mkdtemp
from
..jpssrdr
import
atms_sci_to_l0
,
cris_sci_to_l0
,
spacecraft_to_l0
,
viirs_sci_to_l0
from
..rdrgen
import
packets_to_rdrs
...
...
@@ -11,6 +13,15 @@ from ..rdrgen import packets_to_rdrs
LOG
=
logging
.
getLogger
(
__name__
)
@contextmanager
def
TemporaryDirectory
(
**
kwds
):
tmpdir
=
mkdtemp
(
**
kwds
)
try
:
yield
tmpdir
finally
:
shutil
.
rmtree
(
tmpdir
)
def
merge_rdrs
(
rdrs
):
# filter and validiate rdrs
to_process
=
{
...
...
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