-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Ctests for obsForge #4
Draft
emilyhcliu
wants to merge
6
commits into
main
Choose a base branch
from
feature/add_ctests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7,284
−1
Draft
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
44fd45b
Add Ctests for obsForge
emilyhcliu cf52140
fix typo
emilyhcliu 84f6a97
add files related to coding norms check
emilyhcliu e2654c1
change filename e.g. bufr_backend to bufr4backend and add bound to time.
emilyhcliu 4640b1b
Remove files
emilyhcliu 2e728fe
Update test names and directory names
emilyhcliu 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 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,6 @@ | ||
[pycodestyle] | ||
count = False | ||
ignore = E226,E401,E402,W503 | ||
max-line-length = 160 | ||
statistics = True | ||
exclude = Experimental |
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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,59 @@ | ||
time window: | ||
begin: "2018-04-14T21:00:00Z" | ||
end: "2023-12-15T03:00:00Z" | ||
bound to include: begin | ||
|
||
observations: | ||
- obs space: | ||
name: "satwind_goes-16" | ||
simulated variables: [windDirection, windSpeed] | ||
obsdatain: | ||
engine: | ||
type: bufr | ||
obsfile: "./testdata/gdas.t00z.satwnd.tm00.bufr_d" | ||
mapping file: "./testinput//bufr_satwnd_amv_goes_mapping.yaml" | ||
category: ["goes-16"] | ||
cache categories: # optional | ||
- ["goes-16"] | ||
- ["goes-17"] | ||
- ["goes-18"] | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/bufr4backend/gdas.t00z.satwnd.abi_goes-16.tm00.nc" | ||
|
||
- obs space: | ||
name: "satwind_goes-17" | ||
simulated variables: [windDirection, windSpeed] | ||
obsdatain: | ||
engine: | ||
type: bufr | ||
obsfile: "./testdata/gdas.t00z.satwnd.tm00.bufr_d" | ||
mapping file: "./testinput/bufr_satwnd_amv_goes_mapping.yaml" | ||
category: ["goes-17"] | ||
cache categories: # optional | ||
- ["goes-16"] | ||
- ["goes-17"] | ||
- ["goes-18"] | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/bufr4backend/gdas.t00z.satwnd.abi_goes-17.tm00.nc" | ||
|
||
- obs space: | ||
name: "satwind_goes-18" | ||
simulated variables: [windDirection, windSpeed] | ||
obsdatain: | ||
engine: | ||
type: bufr | ||
obsfile: "./testdata/gdas.t00z.satwnd.tm00.bufr_d" | ||
mapping file: "./testinput/bufr_satwnd_amv_goes_mapping.yaml" | ||
category: ["goes-18"] | ||
cache categories: # optional | ||
- ["goes-16"] | ||
- ["goes-17"] | ||
- ["goes-18"] | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/bufr4backend/gdas.t00z.satwnd.abi_goes-18.tm00.nc" |
59 changes: 59 additions & 0 deletions
59
test/testinput/bufr_bufr4backend_satwnd_amv_goes_mpi4.yaml
This file contains 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,59 @@ | ||
time window: | ||
begin: "2018-04-14T21:00:00Z" | ||
end: "2023-12-15T03:00:00Z" | ||
bound to include: begin | ||
|
||
observations: | ||
- obs space: | ||
name: "satwind_goes-16" | ||
simulated variables: [windDirection, windSpeed] | ||
obsdatain: | ||
engine: | ||
type: bufr | ||
obsfile: "./testdata/gdas.t00z.satwnd.tm00.bufr_d" | ||
mapping file: "./testinput//bufr_satwnd_amv_goes_mapping.yaml" | ||
category: ["goes-16"] | ||
cache categories: # optional | ||
- ["goes-16"] | ||
- ["goes-17"] | ||
- ["goes-18"] | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/bufr4backend/gdas.t00z.satwnd.abi_goes-16.tm00_mpi4.nc" | ||
|
||
- obs space: | ||
name: "satwind_goes-17" | ||
simulated variables: [windDirection, windSpeed] | ||
obsdatain: | ||
engine: | ||
type: bufr | ||
obsfile: "./testdata/gdas.t00z.satwnd.tm00.bufr_d" | ||
mapping file: "./testinput/bufr_satwnd_amv_goes_mapping.yaml" | ||
category: ["goes-17"] | ||
cache categories: # optional | ||
- ["goes-16"] | ||
- ["goes-17"] | ||
- ["goes-18"] | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/bufr4backend/gdas.t00z.satwnd.abi_goes-17.tm00_mpi4.nc" | ||
|
||
- obs space: | ||
name: "satwind_goes-18" | ||
simulated variables: [windDirection, windSpeed] | ||
obsdatain: | ||
engine: | ||
type: bufr | ||
obsfile: "./testdata/gdas.t00z.satwnd.tm00.bufr_d" | ||
mapping file: "./testinput/bufr_satwnd_amv_goes_mapping.yaml" | ||
category: ["goes-18"] | ||
cache categories: # optional | ||
- ["goes-16"] | ||
- ["goes-17"] | ||
- ["goes-18"] | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/bufr4backend/gdas.t00z.satwnd.abi_goes-18.tm00_mpi4.nc" |
This file contains 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,21 @@ | ||
time window: | ||
begin: "2018-04-14T21:00:00Z" | ||
end: "2023-12-15T03:00:00Z" | ||
bound to include: begin | ||
|
||
observations: | ||
- obs space: | ||
name: "sfcsno_snow" | ||
distribution: | ||
name: Halo | ||
halo size: 250e3 | ||
simulated variables: [totalSnowDepth] | ||
obsdatain: | ||
engine: | ||
type: bufr | ||
obsfile: "./testdata/gdas.t00z.sfcsno.tm00.bufr_d" | ||
mapping file: "./testinput/bufr_sfcsno_mapping.yaml" | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/bufr4backend/gdas.t00z.sfcsno.tm00.nc" |
This file contains 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,21 @@ | ||
time window: | ||
begin: "2018-04-14T21:00:00Z" | ||
end: "2023-12-15T03:00:00Z" | ||
bound to include: begin | ||
|
||
observations: | ||
- obs space: | ||
name: "sfcsno_snow" | ||
distribution: | ||
name: Halo | ||
halo size: 250e3 | ||
simulated variables: [totalSnowDepth] | ||
obsdatain: | ||
engine: | ||
type: bufr | ||
obsfile: "./testdata/gdas.t00z.sfcsno.tm00.bufr_d" | ||
mapping file: "./testinput/bufr_sfcsno_mapping.yaml" | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/bufr4backend/gdas.t00z.sfcsno.tm00_mpi2.nc" |
This file contains 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,59 @@ | ||
time window: | ||
begin: "2018-04-14T21:00:00Z" | ||
end: "2023-12-15T03:00:00Z" | ||
bound to include: begin | ||
|
||
observations: | ||
- obs space: | ||
name: "satwind_goes-16" | ||
observed variables: [windSpeed, windDirection] | ||
derived variables: [windEastward, windNorthward] | ||
simulated variables: [windEastward, windNorthward] | ||
obsdatain: | ||
engine: | ||
type: script | ||
script file: "./testinput/bufr_satwnd_amv_goes.py" | ||
args: | ||
input_path: "./testdata/gdas.t00z.satwnd.tm00.bufr_d" | ||
mapping_path: "./testinput/bufr_satwnd_amv_goes_mapping.yaml" | ||
category: "goes-16" | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/script4backend/gdas.t00z.satwnd.abi_goes-16.tm00.nc" | ||
|
||
- obs space: | ||
name: "satwind_goes-17" | ||
observed variables: [windSpeed, windDirection] | ||
derived variables: [windEastward, windNorthward] | ||
simulated variables: [windEastward, windNorthward] | ||
obsdatain: | ||
engine: | ||
type: script | ||
script file: "./testinput/bufr_satwnd_amv_goes.py" | ||
args: | ||
input_path: "./testdata/gdas.t00z.satwnd.tm00.bufr_d" | ||
mapping_path: "./testinput/bufr_satwnd_amv_goes_mapping.yaml" | ||
category: "goes-17" | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/script4backend/gdas.t00z.satwnd.abi_goes-17.tm00.nc" | ||
|
||
- obs space: | ||
name: "satwind_goes-18" | ||
observed variables: [windSpeed, windDirection] | ||
derived variables: [windEastward, windNorthward] | ||
simulated variables: [windEastward, windNorthward] | ||
obsdatain: | ||
engine: | ||
type: script | ||
script file: "./testinput/bufr_satwnd_amv_goes.py" | ||
args: | ||
input_path: "./testdata/gdas.t00z.satwnd.tm00.bufr_d" | ||
mapping_path: "./testinput/bufr_satwnd_amv_goes_mapping.yaml" | ||
category: "goes-18" | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/script4backend/gdas.t00z.satwnd.abi_goes-18.tm00.nc" |
59 changes: 59 additions & 0 deletions
59
test/testinput/bufr_script4backend_satwnd_amv_goes_mpi4.yaml
This file contains 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,59 @@ | ||
time window: | ||
begin: "2018-04-14T21:00:00Z" | ||
end: "2023-12-15T03:00:00Z" | ||
bound to include: begin | ||
|
||
observations: | ||
- obs space: | ||
name: "satwind_goes-16" | ||
observed variables: [windSpeed, windDirection] | ||
derived variables: [windEastward, windNorthward] | ||
simulated variables: [windEastward, windNorthward] | ||
obsdatain: | ||
engine: | ||
type: script | ||
script file: "./testinput/bufr_satwnd_amv_goes.py" | ||
args: | ||
input_path: "./testdata/gdas.t00z.satwnd.tm00.bufr_d" | ||
mapping_path: "./testinput/bufr_satwnd_amv_goes_mapping.yaml" | ||
category: "goes-16" | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/script4backend/gdas.t00z.satwnd.abi_goes-16.tm00_mpi4.nc" | ||
|
||
- obs space: | ||
name: "satwind_goes-17" | ||
observed variables: [windSpeed, windDirection] | ||
derived variables: [windEastward, windNorthward] | ||
simulated variables: [windEastward, windNorthward] | ||
obsdatain: | ||
engine: | ||
type: script | ||
script file: "./testinput/bufr_satwnd_amv_goes.py" | ||
args: | ||
input_path: "./testdata/gdas.t00z.satwnd.tm00.bufr_d" | ||
mapping_path: "./testinput/bufr_satwnd_amv_goes_mapping.yaml" | ||
category: "goes-17" | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/script4backend/gdas.t00z.satwnd.abi_goes-17.tm00_mpi4.nc" | ||
|
||
- obs space: | ||
name: "satwind_goes-18" | ||
observed variables: [windSpeed, windDirection] | ||
derived variables: [windEastward, windNorthward] | ||
simulated variables: [windEastward, windNorthward] | ||
obsdatain: | ||
engine: | ||
type: script | ||
script file: "./testinput/bufr_satwnd_amv_goes.py" | ||
args: | ||
input_path: "./testdata/gdas.t00z.satwnd.tm00.bufr_d" | ||
mapping_path: "./testinput/bufr_satwnd_amv_goes_mapping.yaml" | ||
category: "goes-18" | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/script4backend/gdas.t00z.satwnd.abi_goes-18.tm00_mpi4.nc" |
This file contains 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,23 @@ | ||
time window: | ||
begin: "2018-04-14T21:00:00Z" | ||
end: "2023-12-15T03:00:00Z" | ||
bound to include: begin | ||
|
||
observations: | ||
- obs space: | ||
name: "sfcsno_snow" | ||
distribution: | ||
name: Halo | ||
halo size: 250e3 | ||
simulated variables: [totalSnowDepth] | ||
obsdatain: | ||
engine: | ||
type: script | ||
script file: "./testinput/bufr_sfcsno.py" | ||
args: | ||
input_path: "./testdata/gdas.t00z.sfcsno.tm00.bufr_d" | ||
mapping_path: "./testinput//bufr_sfcsno_mapping.yaml" | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/script4backend/gdas.t00z.sfcsno.tm00.nc" |
This file contains 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,23 @@ | ||
time window: | ||
begin: "2018-04-14T21:00:00Z" | ||
end: "2023-12-15T03:00:00Z" | ||
bound to include: begin | ||
|
||
observations: | ||
- obs space: | ||
name: "sfcsno_snow" | ||
distribution: | ||
name: Halo | ||
halo size: 250e3 | ||
simulated variables: [totalSnowDepth] | ||
obsdatain: | ||
engine: | ||
type: script | ||
script file: "./testinput/bufr_sfcsno.py" | ||
args: | ||
input_path: "./testdata/gdas.t00z.sfcsno.tm00.bufr_d" | ||
mapping_path: "./testinput//bufr_sfcsno_mapping.yaml" | ||
obsdataout: | ||
engine: | ||
type: H5File | ||
obsfile: "./testrun/script4backend/gdas.t00z.sfcsno.tm00_mpi2.nc" |
This file contains 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,2 @@ | ||
|
||
add_subdirectory( build_scripts ) |
This file contains 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,10 @@ | ||
|
||
|
||
list(APPEND _scripts | ||
obsForge_cpp_lint.py | ||
obsForge_py_lint.sh) | ||
|
||
foreach(_f IN LISTS _scripts) | ||
execute_process( COMMAND ${CMAKE_COMMAND} -E copy | ||
${CMAKE_CURRENT_SOURCE_DIR}/${_f} ${CMAKE_BINARY_DIR}/bin/${_f} ) | ||
endforeach() |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this for? I only see it in the sfcsno and not the satwnds