Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

YannChemin
Copy link
Contributor

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/)

@github-actions github-actions bot added raster Related to raster data processing C Related code is in C HTML Related code is in HTML module docs labels Nov 12, 2024
Comment on lines +230 to +231


Copy link
Contributor

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 🐶

Suggested change

@@ -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"));

Copy link
Contributor

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 🐶

Suggested change


if (flag.surfer->answer && flag.lisflood->answer)
G_fatal_error(_("Use -l or -s, not both"));

Copy link
Contributor

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 🐶

Suggested change

@@ -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"));
Copy link
Contributor

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

@nilason nilason changed the title Create an option to write a LISFLOOD compatible header r.out.ascii: Create an option to write a LISFLOOD compatible header Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C docs HTML Related code is in HTML module raster Related to raster data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants