-
Notifications
You must be signed in to change notification settings - Fork 13
Add refinediag preanalysis tests #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
singhd789
merged 73 commits into
NOAA-GFDL:main
from
singhd789:216.refinediag-preanalysis-tests
May 21, 2026
Merged
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
0ac1221
#216 addind test cases for preanalysis
e9084d2
#216 change file name
f41d9b0
#216 update yml format
cbf1e12
#216 edit validation check in runscript for cloud runner tests
c4d1b90
#216 Merge branch 'main' of github.com:singhd789/fre-workflows into …
01f3c12
#216 revert change (had to merge in recent changes)
7d69f76
#216 Add pipeline check for stage-history-refined
f5a8453
#216 add history_refined
ca7d362
#216 fix path
0efbaab
Merge pull request #10 from singhd789/216.refinediag-preanalysis-tests
singhd789 306414f
Revert "Merge pull request #10 from singhd789/216.refinediag-preanaly…
a61d1d1
#216 whoops, redo/add things again
cc48ca3
#216 update check in pipeline
cdd815b
#216 update check and flow.cylc
e47f0c9
#216 fix path
a7ddd42
#216 Add local settings for refinediag and preanalysis
c7c7951
#216 fix YAML for valid yaml format
0f6a641
#216 Reference absolute path
45b3e57
#216 Try a different mount point
94c9597
#216 fix file
25027bb
#216 add refinediag dummy script
63f2d72
#216 update
06ac2c7
#216 fix file extension again
51badb6
#216 fix dummy script
0961933
#216 show all file
965c0ed
#216 essentially copy files to new name
1bc7e7f
#216 Fix inputDir
3e2a839
#216 see where I am
579f664
#216 add hsmget line in pre-script
e2b979e
#216 fix format
8b7a0e2
fix format
singhd789 2f99799
#216 add testfor refineDiag task in pipeline
70c5de5
#216 replace list_ncvars with ncdump to get netcdf variables
db34e57
#216 Merge branch '216.refinediag-preanalysis-tests' of github.com:s…
0b10b80
#216 forgot to add to refineDiag.log
3b6c06e
#216 fix format
24ad6b3
#216 fix cylc format (from linting)
1ec907d
#216 just try something
0c6bb33
#216 update files
2560081
#216 see if these changes make a difference
403de6e
#216 update format in workflow
0fe4556
#216 Merge branch 'main' of github.com:singhd789/fre-workflows into …
d31a45d
#216 Merge branch 'main' of github.com:singhd789/fre-workflows into …
db025f0
#216 try a different path (one that would be in the container)
f4d96ea
#216 add comment to see if im at hsmput
bffebc2
#216 add -n to hsmput line
c941e4e
#216 add terrible workaround to use hsmput
be93728
#216 add line check
b433688
#216 fix path
b39bb9b
#216 update permissions for sed line
bd7f7a1
#216 update container reference
f0c1590
#216 try different path
654fac2
#216 add clean up
3a19a3c
#216 add dummy scripts in work location for use in test
0286791
#216 fix path
ebd4357
#216 try mnt in path
cbfbc18
#216 remove comments
bd61338
Merge branch 'main' into 216.refinediag-preanalysis-tests
singhd789 bd8d720
#216 update path for USER
d34a768
#216 Merge branch 'main' of github.com:singhd789/fre-workflows into …
83f5826
#216 Merge branch '216.refinediag-preanalysis-tests' of github.com:s…
a0211e3
#216 see if this path update makes a difference
6ad3d4b
#216 move hsmget up
60f87bb
#216 see if the path was incorrect
7eedb9e
#216 fix path
3c77db5
#216 revert change
9ba5716
#216 CLEAN REFINEDIAG FOLDER AT BEGINNING
f3c596a
#216 fix up paths for cleaning
aca8e8f
#216 fix typo and testing addition
17375f0
#216 remove sed check line (not needed)
1ec8d01
Uncomment validation logic in run_pp_locally.sh
singhd789 5ecdd05
#216 might as well change the others
7c6c9bc
#216 Merge branch '216.refinediag-preanalysis-tests' of github.com:s…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/bin/csh | ||
|
|
||
| echo "Pre-analysis script is running!" |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #!/bin/csh | ||
|
|
||
| ## RefineDiag scripts reads raw history files and generates new, refined history files | ||
| # Script copies test history file to another history file | ||
| set input_dir = `pwd` | ||
|
|
||
| if ( $?refineDiagDir ) then | ||
| set output_dir = $refineDiagDir | ||
| else | ||
| echo "ERROR: refineDiagDir environment variable is not set." | ||
| exit 1 | ||
| endif | ||
|
|
||
| if ( -d "$input_dir" ) then | ||
| #ls -aF | ||
| echo "Input directory found: $input_dir" | ||
| echo "good to go" | ||
| foreach INFILE (*atmos_month*.nc) | ||
| set OUTFILE = ${INFILE:r}_refined.${INFILE:e} | ||
| echo "OUTFILE $OUTFILE" | ||
| cp "$INFILE" "$output_dir/$OUTFILE" | ||
| end | ||
| else | ||
| echo "Error: Input directory $input_dir does not exist." | ||
| exit 1 | ||
| endif |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,36 @@ | ||
| directories: | ||
| ## to test staging data from archive, use the below | ||
| # history_dir: "/archive/inl/test_cloud_runner_history_files" | ||
| # | ||
| # to have a faster turn-around (does not test archive data staging), use the below | ||
| history_dir: "/work/inl/test_cloud_runner_history_files" | ||
| history_dir: "/work/inl/test_cloud_runner_history_files" | ||
| refined_history_dir: "/work/$USER/fre-wf-local-testing/refined_history" | ||
| pp_dir: !join [/work/$USER/test_cloud_runner_scratch_dir/, *FRE_STEM, /, pp] | ||
| # analysis_dir: !join [/nbhome/$USER/, *FRE_STEM, /, *name] | ||
| ptmp_dir: "/xtmp/$USER/ptmp" | ||
|
|
||
| postprocess: | ||
| settings: | ||
| history_segment: "P1Y" | ||
| # site: "ppan" | ||
| site: "ppan_test" | ||
| site: "ppan" | ||
| # site: "ppan_test" | ||
| pp_chunks: [*PP_CHUNK96] | ||
| pp_start: *EXP_AMIP_START | ||
| pp_stop: *EXP_AMIP_END | ||
| pp_grid_spec: *GRID_SPEC96_LOCAL | ||
| switches: | ||
| clean_work: True | ||
| do_atmos_plevel_masking: True | ||
|
|
||
| # to be first-step-user-script | ||
| preanalysis: | ||
| vitals: | ||
| script: "/work/d4s/fre-wf-local-testing/dummy_preanalysis.csh" | ||
| inputs: ['atmos_month', 'aerosol_month'] # not used currently | ||
| do_preanalysis: True | ||
| refinediag: | ||
| ocean: | ||
| script: "/work/d4s/fre-wf-local-testing/dummy_refinediag.csh" | ||
| inputs: ['ocean_monthly', 'ocean_bgc'] # not used currently | ||
| outputs: ['ocean_refined'] # not used currently | ||
| do_refinediag: True |
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.