Add functions for loading spatial nodes and visualization#17
Merged
Conversation
… contour plotting when testing
Collaborator
|
Looks good to me! Ran naive baseline and verified all plots generated and looked ok. Thanks Stefano! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds new visualization capabilities for spatial data, particularly for datasets with 2D spatial structure, and introduces a utility for loading mesh/node information. The main changes are the addition of spatial average and 2D contour plotting functions, along with support for overlaying a "blanket" region for the MSFR dataset.
Visualization enhancements:
plot_spatial_averagesandplot_2d_contoursmethods to theVisualizerclass invisualization_module.pyto enable plotting of spatial averages over time and 2D contour comparisons between truth and predictions. This includes logic for handling multiple fields and predictions, as well as flexible configuration options.plot_from_batchmethod to support new plot types:"spatial_averages"and"contour2d", including loading mesh nodes and handling dataset-specific overlays.add_blanket_msfrfunction to overlay a white rectangle representing the blanket region in the MSFR dataset on 2D contour plots.Data loading utility:
load_nodesfunction indata_module.pyto load spatial mesh/node data (nodes.npy) for a given dataset, raising an error if the file is missing.