Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cspp-geo-gridded-glm
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
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
cspp_geo
cspp-geo-gridded-glm
Merge requests
!4
add satpy to our buildbucket
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
add satpy to our buildbucket
nickb-add-satpy-PR
into
master
Overview
0
Commits
12
Pipelines
0
Changes
1
Merged
Nick Bearson
requested to merge
nickb-add-satpy-PR
into
master
4 years ago
Overview
0
Commits
12
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
2ee9fb26
Prev
Next
Show latest version
1 file
+
11
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
2ee9fb26
fix the two-files-per-minute issue. follows Eric's fix to the example make_GLM_grids.py script:
· 2ee9fb26
Nick Bearson
authored
4 years ago
https://github.com/deeplycloudy/glmtools/commit/caa7d5af4a27060c56258c9bf73fa6a13891b0e1
gridded_glm/libexec/_minute_gridder.py
+
11
−
2
Options
@@ -5,7 +5,7 @@ parse_desc = """Grid the past X minutes of GLM flash data, given a single input
"""
import
numpy
as
np
from
datetime
import
datetime
from
datetime
import
datetime
,
timedelta
import
os
import
sys
import
tempfile
@@ -111,7 +111,16 @@ def get_start_end(filenames, start_time=None, end_time=None):
filename_starts
=
[
info
[
3
]
for
info
in
filename_infos
]
filename_ends
=
[
info
[
4
]
for
info
in
filename_infos
]
start_time
=
min
(
filename_starts
)
end_time
=
max
(
filename_ends
)
# Used to use max(filename_ends), but on 27 Oct 2020, the filename
# ends started to report the time of the last event in the file,
# causing a slight leakage (usually less than a second) into the
# next minute. This caused two minutes of grids to be produced for every
# three twenty second files passed to this script.
# Instead, we now assume every LCFA file is 20 s long, beginning with
# the start time. No doubt in the future we will see filenames that no
# longer start on an even minute boundary.
end_time
=
max
(
filename_starts
)
+
timedelta
(
0
,
20
)
if
start_time
is
None
or
end_time
is
None
:
raise
ValueError
(
"
Could not determine start/end time
"
)
Loading