-
-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r.out.ascii: Create an option to write a LISFLOOD compatible header #4695
base: main
Are you sure you want to change the base?
Conversation
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[clang-format] reported by reviewdog 🐶
@@ -123,7 +131,13 @@ int main(int argc, char *argv[]) | |||
G_fatal_error(_("Both -s and -h doesn't make sense")); | |||
|
|||
if (flag.surfer->answer && flag.modflow->answer) | |||
G_fatal_error(_("Use -M or -s, not both")); | |||
G_fatal_error(_("Use -m or -s, not both")); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[clang-format] reported by reviewdog 🐶
|
||
if (flag.surfer->answer && flag.lisflood->answer) | ||
G_fatal_error(_("Use -l or -s, not both")); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[clang-format] reported by reviewdog 🐶
@@ -123,7 +131,13 @@ int main(int argc, char *argv[]) | |||
G_fatal_error(_("Both -s and -h doesn't make sense")); | |||
|
|||
if (flag.surfer->answer && flag.modflow->answer) | |||
G_fatal_error(_("Use -M or -s, not both")); | |||
G_fatal_error(_("Use -m or -s, not both")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use G_option_exclusive
instead
The option applied by the "-l" flag permits to write an ASCII grid file compatible with the European LISFLOOD model (https://ec-jrc.github.io/lisflood-model/1_1_introduction_LISFLOOD/)