Skip to content

[com4]: all output rasters have value -9999 in not affected cells#1164

Merged
fso42 merged 4 commits intomasterfrom
PS_FP_outputNanValues
Nov 19, 2025
Merged

[com4]: all output rasters have value -9999 in not affected cells#1164
fso42 merged 4 commits intomasterfrom
PS_FP_outputNanValues

Conversation

@PaulaSp3
Copy link
Contributor

@PaulaSp3 PaulaSp3 commented Aug 6, 2025

  • There is a new parameter in the (local_)com4FlowPyCfg.ini outputNoDataValue (default: -9999) that defines the nodata value for the output rasters
  • Then ALL output rasters have the same value in cells taht are not affected by the process (default -9999)
  • I've tested in one example, if all -9999 values are at the same locations in every output-raster.
  • A further question/ issue?: Should we initialize the rasterArrays consistently? (see Issue#1165)
  • All rasters that are saved as tif - files are LZW compressed. In the config file compressing can be switched off.

@PaulaSp3 PaulaSp3 requested a review from ahuber-bfw August 6, 2025 13:07
@PaulaSp3 PaulaSp3 self-assigned this Aug 6, 2025
@PaulaSp3 PaulaSp3 added enhancement New feature or request flowPyDev Ideas for future development labels Aug 6, 2025
@fso42 fso42 added this to the Version 1.13 milestone Aug 7, 2025
@fso42 fso42 modified the milestones: Version 1.13, Version 1.14 Aug 21, 2025
@PaulaSp3 PaulaSp3 force-pushed the PS_FP_outputNanValues branch from 8fdf1a5 to 4a4ed46 Compare August 28, 2025 14:57
@ahuber-bfw
Copy link
Contributor

ahuber-bfw commented Aug 28, 2025

Maybe changes are only necessary in com4FlowPyCfg.ini, runCom4FlowPy.py and com4FlowPy.py if we simply provide the cell_counts raster to the defineNotAffectedCells() function in com4FlowPy.mergeAndWriteResults()

sth. like zDelta = defineNotAffectedCells(raster = zDelta, affectedCells = cellCounts, noDataValue = _outputNoDataValue)

Copy link
Contributor

@ahuber-bfw ahuber-bfw left a comment

Choose a reason for hiding this comment

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

Looks good and a lot more compact now :)

Maybe we can wait for PR #1173 to be merged and then also resolve issue #1178 in this PR? (adding an .ini option for disabling .tif compression) $\rightarrow$ this would also only require minor changes to (local)com4FlowPyCfg.ini, runCom4FlowPy.py and com4FlowPy.py

regarding issue #1165 I need to have a closer look still ;) - so maybe could be included in a further PR.

@PaulaSp3 PaulaSp3 force-pushed the PS_FP_outputNanValues branch from 6e34a98 to 89a7362 Compare September 11, 2025 15:47
@PaulaSp3 PaulaSp3 force-pushed the PS_FP_outputNanValues branch from 89a7362 to e2b11af Compare November 18, 2025 16:53
@qltysh
Copy link
Contributor

qltysh bot commented Nov 18, 2025

Diff Coverage: The code coverage on the diff in this pull request is 0.0%.

Total Coverage: This PR will decrease coverage by 0.09%.

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@PaulaSp3 PaulaSp3 requested a review from ahuber-bfw November 18, 2025 17:26
@PaulaSp3 PaulaSp3 force-pushed the PS_FP_outputNanValues branch from 4f18577 to 1c89627 Compare November 18, 2025 17:54
Copy link
Contributor

@ahuber-bfw ahuber-bfw left a comment

Choose a reason for hiding this comment

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

Passt soweit und funktioniert bei mir lokal, nur den 1-Zeilen comment in com4FlowPy.py (line549) bitte noch einbauen

@PaulaSp3 PaulaSp3 assigned fso42 and unassigned PaulaSp3 Nov 19, 2025
@fso42 fso42 force-pushed the PS_FP_outputNanValues branch from 5df0139 to 23b3e9c Compare November 19, 2025 21:05
@fso42
Copy link
Contributor

fso42 commented Nov 19, 2025

Standardtest ident

@fso42 fso42 merged commit 34fa33a into master Nov 19, 2025
3 of 4 checks passed
@fso42 fso42 deleted the PS_FP_outputNanValues branch November 19, 2025 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request flowPyDev Ideas for future development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[com4FlowPy] - handing of "non-affected" areas/cell in com4FlowPy output rasters

3 participants