Skip to content

Incorrect outputs of xs_utils.CrossSection.plot_xs_field() method #24

@ebus-brgm

Description

@ebus-brgm

Hello Pierre, I've been testing this new feature recently and it is awesome. Thanks much for this contribution!
However i am encoutering a strange issue using the .plot_xs_field() function
I am using a single-layer, regular grid model. I am plotting the cross section by defining coordinates, e.g.:
xs = CrossSection(mm, cross_section_line=[(292, 340), (292,400) ])
I am plotting the chasim.out ("%SATURAT" parameter), using both plot_xs_field() and add_surface()
i am also plotting the water table ("CHARGE") using add_surface()

When I am plotting a cross section, the plot_xs_field() does not provide the right value per cell. As illustrated below:
I plotted the saturation field (0-100%) and the saturation surface (thus displaying between 0 and 100 on the vertical axis) so that the two can be compared (and should be identical).
we should see some red in the cells (0% sat) where the simulated water table is below or close to the bottom; but it is not the case in the cross-section. However the same field displayed using the .add_surface() function is correct (red line)
image

I should take the time to look into the code...but if it rings any bells... Many thanks!!

Originally posted by @ebus-brgm in #19 (reply in thread)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions