Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
thopri
PyNEMO
Commits
118b1c65
Commit
118b1c65
authored
5 years ago
by
thopri
Browse files
Options
Download
Email Patches
Plain Diff
fixed command line parsing issue
parent
fae40b03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
pynemo/pynemo_exe.py
pynemo/pynemo_exe.py
+1
-1
pynemo/reader/ncml.py
pynemo/reader/ncml.py
+11
-8
No files found.
pynemo/pynemo_exe.py
View file @
118b1c65
...
...
@@ -18,7 +18,7 @@ def main():
setup_file
=
''
mask_gui
=
False
try
:
opts
,
dummy_args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
"h
:s:d:
g"
,
[
"help"
,
"setup="
,
"download_cmems="
,
"mask_gui"
])
opts
,
dummy_args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
"h
sd
g"
,
[
"help"
,
"setup="
,
"download_cmems="
,
"mask_gui"
])
except
getopt
.
GetoptError
:
print
(
"usage: pynemo -g -s -d <namelist.bdy> "
)
sys
.
exit
(
2
)
...
...
This diff is collapsed.
Click to expand it.
pynemo/reader/ncml.py
View file @
118b1c65
...
...
@@ -41,16 +41,19 @@ except ImportError:
import
sys
from
pynemo
import
nemo_bdy_setup
as
setup
Setup
=
setup
.
Setup
(
sys
.
argv
[
2
])
# default settings file
settings
=
Setup
.
settings
if
'use_cmems'
in
settings
:
if
settings
[
'use_cmems'
]
==
True
:
time_counter_const
=
"time"
if
settings
[
'use_cmems'
]
==
False
:
try
:
Setup
=
setup
.
Setup
(
sys
.
argv
[
2
])
# default settings file
settings
=
Setup
.
settings
if
'use_cmems'
in
settings
:
if
settings
[
'use_cmems'
]
==
True
:
time_counter_const
=
"time"
if
settings
[
'use_cmems'
]
==
False
:
time_counter_const
=
"time_counter"
if
'use_cmems'
not
in
settings
:
time_counter_const
=
"time_counter"
if
'use_cmems'
not
in
settings
:
del
settings
,
Setup
except
IndexError
:
time_counter_const
=
"time_counter"
del
settings
,
Setup
class
Reader
(
object
):
""" This class is the high level of object for the NCML reader, from here using grid type
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment