Add GRAMM initial-condition editing and CustomInit generation - #97
Open
Borealis-Thoon wants to merge 1 commit into
Open
Borealis-Thoon wants to merge 1 commit into
Borealis-Thoon wants to merge 1 commit into
Conversation
Member
|
CustomInit is rarely used, has not been thoroughly validated, and should therefore be reserved for users who are conducting scientific research and know exactly what they are doing. For this reason, there is intentionally no graphical input option available to the user. |
This branch has not been deployed
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.
GRAMM input generation writes fixed temperature and humidity values to
IIN.datand takes latitude from the GRAL control. The GUI does not exposeCustomInit.txt, so users must prepare situation-specific initial conditions by hand.A new Topography > GRAMM input > Initial conditions... dialog provides:
meteopgt.all, with editable temperature, humidity, snow, inversion and gradient values. Temperature and humidity appear first among the editable columns.situationnumbers. Blank cells select GRAMM defaults. The GUI converts Celsius to kelvin and humidity percent to a fraction when savingCustomInit.txt.GRAMM chooses the CustomInit row by weather-situation number, not by a timestamp. Hourly input therefore requires one
meteopgt.allsituation per hour in the same order. These are sea-level reference initial conditions; the feature does not provide continuous hourly boundary forcing during a simulation. ERA5 mode disables CustomInit generation and explains that distinction.Saving checks row count, order, units and numeric ranges. Files generated by this dialog are checked against the current
meteopgt.allbefore starting GRAMM. Unmarked hand-written files retain the engine's previous launch behavior. Existing wind fields are not modified by saving initial conditions.Validation on Windows x64 with .NET 10:
CustomAirSoilInitparser, including a non-first situation and default sentinels.The implementation uses GRAMM's existing input format and requires no GRAMM parser change. Tests and usage notes are in
tests/GrammInitialConditions. This PR targetsV2701and is independent of #95 and #96.