-
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
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,58 @@ | |||
time window: | |||
begin: "2018-04-14T21:00:00Z" | |||
end: "2023-12-15T03:00:00Z" |
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.
For my own reference, why are the satellite yamls such large time windows?
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.
This is purposely done since we want to test several other cycles as well. So, we gave a big range.
time window: | ||
begin: "2018-04-14T21:00:00Z" | ||
end: "2023-12-15T03:00:00Z" | ||
|
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.
Additionally, I think you should add " bound to include: begin"
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.
time window:
begin: # datetime in ISO format
length: # duration in ISO format
bound to include: end # which window bound is inclusive (options: begin, end (default)).
Since the end is inclusive already (default), we should add bound to include: begin
.
I will add it. Thanks!
@@ -0,0 +1,20 @@ | |||
time window: | |||
begin: "2018-04-14T21:00:00Z" | |||
end: "2023-12-15T03:00:00Z" |
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.
I'll suggest adding:
bound to include: begin
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.
Will do
@@ -0,0 +1,20 @@ | |||
time window: | |||
begin: "2018-04-14T21:00:00Z" | |||
end: "2023-12-15T03:00:00Z" |
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.
bound to include: begin
@@ -0,0 +1,58 @@ | |||
time window: | |||
begin: "2018-04-14T21:00:00Z" | |||
end: "2023-12-15T03:00:00Z" |
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.
bound to include: begin
@@ -0,0 +1,58 @@ | |||
time window: | |||
begin: "2018-04-14T21:00:00Z" | |||
end: "2023-12-15T03:00:00Z" |
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.
bound to include: begin
@@ -0,0 +1,22 @@ | |||
time window: | |||
begin: "2018-04-14T21:00:00Z" | |||
end: "2023-12-15T03:00:00Z" |
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.
bound to include: begin
@@ -0,0 +1,22 @@ | |||
time window: | |||
begin: "2018-04-14T21:00:00Z" | |||
end: "2023-12-15T03:00:00Z" |
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.
bound to include: begin
@@ -0,0 +1,58 @@ | |||
time window: | |||
begin: "2018-04-14T21:00:00Z" | |||
end: "2023-12-15T03:00:00Z" |
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.
bound to include: begin
engine: | ||
type: bufr | ||
obsfile: "./testdata/gdas.t00z.satwnd.tm00.bufr_d" | ||
mapping file: "./testinput//bufr_satwnd_amv_goes_mapping.yaml" |
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.
extra slash :)
test/CMakeLists.txt
Outdated
## Get the test data if we don't have it. | ||
if(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/${FILE_COLLECTION}") | ||
message(STATUS "Downloading: " ${CMAKE_CURRENT_BINARY_DIR}/${FILE_COLLECTION}) | ||
# file(DOWNLOAD | ||
# ${DOWNLOAD_URL}/${FILE_COLLECTION} | ||
# ${CMAKE_CURRENT_BINARY_DIR}/${FILE_COLLECTION} | ||
# SHOW_PROGRESS | ||
# STATUS download_status | ||
# INACTIVITY_TIMEOUT 30 | ||
# ) | ||
# | ||
# list(GET download_status 0 download_status_num) | ||
# | ||
# if(NOT download_status_num EQUAL 0 OR NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/${FILE_COLLECTION}) | ||
# # Remove empty file if download doesn't complete | ||
# file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/${BUFR_TAR}) | ||
# message(STATUS "Could not download test files, not building tests") | ||
# return() | ||
# endif() | ||
#<<orig | ||
|
||
#>>emily | ||
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/${FILE_COLLECTION} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) | ||
#<<emily |
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.
Please delete all the commented out unused code.
bufr2netcdf/gdas.t00z.satwnd.abi_goes-18.tm00.nc) | ||
|
||
# Perform script2netcdf tests | ||
#if (${BUILD_PYTHON_BINDINGS}) |
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.
Please delete this line if its not needed.
Add initial structure for Ctests
Tests added:
Tests data
This PR will be converted from draft to review when the reduced BUFR files are ready.
Issue #3
Here is the list of tests implemented: