Skip to content

r.profile: Add CSV support #6145

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NishantBansal2003
Copy link
Contributor

Closes: #5958

This PR adds CSV output support to the r.profile module. The changes include adding a format=csv option and a separator option to customize the CSV-style output. The changes also include adding CSV column headers. Additionally, tests covering each scenario of the CSV format have been added.

Signed-off-by: Nishant Bansal <[email protected]>
@github-actions github-actions bot added raster Related to raster data processing Python Related code is in Python C Related code is in C module tests Related to Test Suite labels Jul 30, 2025
Comment on lines +216 to +218
0.000000,88.370453,rgb(159, 255, 0)
10.000000,88.397057,rgb(160, 255, 0)
20.000000,89.526253,rgb(174, 255, 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the colors have separator comma in them, shouldn't that be quoted?

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 module Python Related code is in Python raster Related to raster data processing tests Related to Test Suite
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

[Feat] Add CSV output format option to r.profile
2 participants