Repository navigation
fix(pacific): keep ATL, SECOFS and AK behaviour unchanged by the Pacific features (into #74) - #80
Open
mansurjisan wants to merge 2 commits into
Open
mansurjisan wants to merge 2 commits into
mansurjisan wants to merge 2 commits into
Conversation
…c ops features ADT datum offset applied per day again (ATL -0.45 via adt_datum_offset), ops ADT ROI kept for -180/180 systems, 23 RTOFS ops slots (obc_min_slots), OPS_OBC_DT NameError, 3-hourly SECOFS/AK nudging (nudging_dt default 10800), rerun archive extras opt-in (obc_archive_extended), surface restore off and refusing to run unless explicitly forced, Pacific forecast_hours 48. Adds guard tests.
… yaml ocean blocks; more guard tests
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.
Description
Fixes on top of #74 (
feature/pacific) so the Pacific ops features do not change the systems that already run (STOFS-3D-ATL, SECOFS, SECOFS-WW3, STOFS-3D-AK), while keeping the Pacific settings. For merging intofeature/pacific; please use "Create a merge commit" (not squash), so the nos-workflow #238 submodule pointer to this commit stays valid.What #74 changed for existing systems, and the fix:
ssh, where it cancels in ssh(t) - ssh(0). Restored per day in_regrid_esmf/_read_adt(float32 before the mean, as main), and_apply_adt_blendwrites the realsshvariable again. The Pacific uses its own -0.4715517 through the same path.from_yamlnow defaultsadt.datum_offsetto -0.45 like the dataclass.TSUV_1.nclostdepth. In_stofs_prepare_tsuva one-file group leftdsunassigned; the exception was swallowed, sodepthwas never written and the datasets were never closed. The Fortran OBC and nudging tools read level depths from it. Fixed with afinallyclose;TSUV_1.ncmatches main bit for bit again.obc_min_slots(default 23; yamlobc.min_slots);obc_min_timestepsis the QC threshold again. The Pacific sets 4.OPS_OBC_DTNameError on the opt-in Fortran path (rtofs.py): usesconfig.obc_dt.temnu/salnu/surface restore/elev2dthonly with the newobc_archive_extended(yamlobc.archive_extended), set by the Pacific presets.nudging_dtdefaults to 10800 again (their param.nml keepstep_nu_tr = 10800); the ATL ops timeline stays 21600; the Pacific sets 86400 explicitly.from_yaml;process()refuses to run unlessNOS_SURFACE_RESTORE_EXPERIMENTAL=1(it reads T and S from one file though the daily files split them, uses the boundary nodes, and has a placeholder time axis). The code is kept; it needed afind_input_filesto be instantiable.forecast_hours48 (ops rnday 3.0 = 24 h nowcast + 48 h forecast); elevation segments[0, 1, 9]unchanged.from_yamltolerates nullforcing.ocean,nudgingandsurface_restoreblocks again.Guard tests (
tests/test_stofs_config.py): ATL offset -0.45 with and without the yaml key, 23 slots, QC 21,obc_dt21600, archive off, surface restore off; SECOFS/SECOFS-UFS/unspecified yaml nudging 10800; the ATL archive map;from_yamlparsing of the new keys;_stofs_prepare_tsuvrun unmocked keepsdepthand logs no failure; the Pacific values.Still for the Pacific (not changed here):
obc_dt,obc_min_slotsand thedaily_3zdiscovery only act under the ops timeline, which the Pacific yaml leaves off; theTSUV_1.nctime axis is fixed at 21600 s; the ADT method and the smoothing time axis need checking against ops; surface restore needs a rewrite before it is enabled. The branch is behind main (#75-#79) and should take main before #74 merges.Type of change
Change characteristics
feature/pacific_mvp).How has this been tested?
TSUV_1.ncfor a synthetic ATL case matches main bit for bit.Checklist