Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Detection eddies
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
IPSL
LMD
DPAO
Detection eddies
Commits
78045196
Commit
78045196
authored
3 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Move input of date higher
Because we are going to extract the rest of the script below into a function.
parent
d365e754
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Inst_eddies/inst_eddies_in.py
+2
-2
2 additions, 2 deletions
Inst_eddies/inst_eddies_in.py
with
2 additions
and
2 deletions
Inst_eddies/inst_eddies_in.py
+
2
−
2
View file @
78045196
...
@@ -26,6 +26,8 @@ argparser.add_argument("file", nargs = "+",
...
@@ -26,6 +26,8 @@ argparser.add_argument("file", nargs = "+",
argparser
.
add_argument
(
"
-b
"
,
"
--bbox
"
,
nargs
=
4
,
type
=
float
,
argparser
.
add_argument
(
"
-b
"
,
"
--bbox
"
,
nargs
=
4
,
type
=
float
,
metavar
=
(
"
xmin
"
,
"
xmax
"
,
"
ymin
"
,
"
ymax
"
))
metavar
=
(
"
xmin
"
,
"
xmax
"
,
"
ymin
"
,
"
ymax
"
))
args
=
argparser
.
parse_args
()
args
=
argparser
.
parse_args
()
d
=
input
(
"
Enter first date (integer value):
"
)
d
=
int
(
d
)
inst_eddies_exe
=
"
@CMAKE_CURRENT_BINARY_DIR@/inst_eddies
"
inst_eddies_exe
=
"
@CMAKE_CURRENT_BINARY_DIR@/inst_eddies
"
if
not
os
.
access
(
inst_eddies_exe
,
os
.
X_OK
):
if
not
os
.
access
(
inst_eddies_exe
,
os
.
X_OK
):
...
@@ -36,8 +38,6 @@ if os.access("main_nml.txt", os.R_OK):
...
@@ -36,8 +38,6 @@ if os.access("main_nml.txt", os.R_OK):
else
:
else
:
sys
.
exit
(
'"
main_nml.txt
"
not found
'
)
sys
.
exit
(
'"
main_nml.txt
"
not found
'
)
d
=
input
(
"
Enter first date (integer value):
"
)
d
=
int
(
d
)
nco_instance
=
nco
.
Nco
()
nco_instance
=
nco
.
Nco
()
for
orient
in
[
"
cyclo
"
,
"
anti
"
]:
for
orient
in
[
"
cyclo
"
,
"
anti
"
]:
...
...
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