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
Commits
5cce2781
Commit
5cce2781
authored
4 years ago
by
Nick Bearson
Browse files
Options
Downloads
Patches
Plain Diff
eliminate --goes-position (fixes #9)
parent
40e88264
No related branches found
Branches containing commit
No related tags found
1 merge request
!5
2020 02 10 beta1 high priority
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gridded_glm/libexec/_glm_trio_picker.py
+1
-2
1 addition, 2 deletions
gridded_glm/libexec/_glm_trio_picker.py
gridded_glm/libexec/_minute_gridder.py
+4
-11
4 additions, 11 deletions
gridded_glm/libexec/_minute_gridder.py
with
5 additions
and
13 deletions
gridded_glm/libexec/_glm_trio_picker.py
+
1
−
2
View file @
5cce2781
...
...
@@ -39,13 +39,12 @@ if __name__ == '__main__':
# and run gridded glm a'la:
# minute_gridder.sh \
#
--goes-position auto
--goes-sector full \
# --goes-sector full \
# --create-tiles \
# ./2020-11-05/CLASS/OR_GLM-L2-LCFA_G16_s20203101529000_e20203101529205_c20203101529215.nc \
# ./2020-11-05/CLASS/OR_GLM-L2-LCFA_G16_s20203101529200_e20203101529405_c20203101529430.nc \
# ./2020-11-05/CLASS/OR_GLM-L2-LCFA_G16_s20203101529400_e20203101530004_c20203101530021.nc
subprocess
.
run
([
"
cspp-geo-gglm-minute-gridder.sh
"
,
"
--goes-position
"
,
"
auto
"
,
"
--goes-sector
"
,
"
full
"
,
"
--create-tiles
"
,
fileglob
[
0
],
fileglob
[
1
],
fileglob
[
2
]]
...
...
This diff is collapsed.
Click to expand it.
gridded_glm/libexec/_minute_gridder.py
+
4
−
11
View file @
5cce2781
...
...
@@ -36,12 +36,8 @@ def create_parser():
default
=
os
.
getcwd
())
parser
.
add_argument
(
'
--goes-sector
'
,
default
=
"
full
"
,
help
=
"
One of [full|conus|meso].
"
"
Requires goes_position. If sector is
"
"
meso, ctr_lon and ctr_lat are interpreted as
"
"
the ctr_x and ctr_y of the fixed grid
"
)
parser
.
add_argument
(
'
--goes-position
'
,
default
=
"
auto
"
,
help
=
"
One of [east|west|test|auto].
"
"
Requires
'
--goes-sector
'
.
"
)
"
If sector is meso, ctr_lon and ctr_lat
"
"
are interpreted as the ctr_x and ctr_y of the fixed grid.
"
)
parser
.
add_argument
(
"
-t
"
,
"
--create-tiles
"
,
default
=
False
,
action
=
'
store_true
'
,
help
=
"
create AWIPS-compatible tiles
"
)
# FIXME: improve this help text
parser
.
add_argument
(
'
--ctr-lat
'
,
metavar
=
'
latitude
'
,
...
...
@@ -99,7 +95,7 @@ def get_goes_position(filenames):
return
"
west
"
# we require that all files are from the same sensor and raise an exception if not
raise
ValueError
(
"
position
'
auto
'
but
could not determine position - did you provide a mix of satellites?
"
)
raise
ValueError
(
"
could not determine
GOES
position - did you provide a mix of satellites?
"
)
def
get_start_end
(
filenames
,
start_time
=
None
,
end_time
=
None
):
...
...
@@ -145,10 +141,7 @@ def grid_setup(args, work_dir=os.getcwd()):
outputpath
=
os
.
path
.
join
(
work_dir
,
"
{dataset_name}
"
)
# GLMTools expects a template in addition to the path
if
args
.
goes_position
==
"
auto
"
:
goes_position
=
get_goes_position
(
args
.
filenames
)
else
:
goes_position
=
args
.
goes_position
goes_position
=
get_goes_position
(
args
.
filenames
)
resln
=
get_resolution
(
args
)
view
=
get_GOESR_grid
(
position
=
goes_position
,
...
...
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