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
!11
Resolve "make error messages more descriptive"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "make error messages more descriptive"
8-make-error-messages-more-descriptive
into
master
Overview
0
Commits
5
Pipelines
0
Changes
1
Merged
Nick Bearson
requested to merge
8-make-error-messages-more-descriptive
into
master
4 years ago
Overview
0
Commits
5
Pipelines
0
Changes
1
Expand
Closes #8
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
b72360ba
5 commits,
4 years ago
1 file
+
13
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
gridded_glm/libexec/_minute_gridder.py
+
13
−
3
Options
@@ -152,11 +152,21 @@ def grid_setup(args, work_dir=os.getcwd()):
exit
(
0
)
args
.
filenames
=
fileglob
for
f
in
args
.
filenames
:
if
not
os
.
path
.
exists
(
f
):
log
.
error
(
"
Tried to grid file that does not exist: {}
"
.
format
(
f
))
exit
(
1
)
if
args
.
goes_sector
==
"
meso
"
and
(
args
.
ctr_lat
==
None
or
args
.
ctr_lon
==
None
):
log
.
error
(
"
sector
'
meso
'
requires --ctr-lat & --ctr-lon
"
)
exit
(
1
)
try
:
start_time
,
end_time
=
get_start_end
(
args
.
filenames
)
except
ValueError
:
log
.
error
(
"
Non-standard filenames provided, use --start and --end to specify data times.
"
)
raise
except
:
log
.
error
(
"
Could not parse start & end times from one or more of the files provided:
"
)
log
.
error
(
"
,
"
.
join
(
args
.
filenames
))
exit
(
1
)
base_date
=
datetime
(
start_time
.
year
,
start_time
.
month
,
start_time
.
day
)
proj_name
=
'
geos
'
Loading