Skip to content

Commit 36e5f6c

Browse files
committed
Changing the directory where coefficients are downloaded and set property so UFO can use the same path to get the crtm coefficients
1 parent 9b63e4e commit 36e5f6c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

test/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ else() # Download CRTM coefficients
7676
set( CRTM_COEFFS_BRANCH_PREFIX "" ) #preserves the structure of the paths that have been used in jedi previously vs the local path above
7777
set( CRTM_COEFFS_BRANCH "fix_REL-3.1.2.0" )
7878

79-
set(CRTM_COEFFS_PATH ${CMAKE_BINARY_DIR}/test_data/${PROJECT_VERSION})
79+
set(CRTM_COEFFS_PATH ${CMAKE_SOURCE_DIR}/test-data-release)
8080
file(MAKE_DIRECTORY ${CRTM_COEFFS_PATH})
8181

8282
set(DOWNLOAD_BASE_URL "https://bin.ssec.wisc.edu/pub/s4/CRTM/")
@@ -103,7 +103,7 @@ else() # Download CRTM coefficients
103103
# -- UNTAR --
104104

105105
# Define the directory to untar into
106-
set(UNTAR_DEST "${CMAKE_BINARY_DIR}/test_data/${PROJECT_VERSION}")
106+
set(UNTAR_DEST "${CMAKE_SOURCE_DIR}/test-data-release")
107107
message(STATUS "Checking if ${UNTAR_DEST}/${CRTM_COEFFS_BRANCH} already exists...")
108108
# Only untar if the CHECK_PATH does not exist
109109
if(NOT EXISTS ${UNTAR_DEST}/${CRTM_COEFFS_BRANCH}/)
@@ -122,7 +122,9 @@ else() # Download CRTM coefficients
122122
endif()
123123
endif()
124124

125-
125+
set (UFO_CRTM_TESTFILES_PATH ${CRTM_COEFFS_PATH}/${CRTM_COEFFS_BRANCH}/fix)
126+
message(STATUS "Set the file path to be seen by UFO at ${UFO_CRTM_TESTFILES_PATH} ")
127+
set_property (GLOBAL PROPERTY UFO_CRTM_TESTFILES_PATH ${UFO_CRTM_TESTFILES_PATH})
126128

127129
# Create list of sensor ids for testing
128130
list( APPEND Simple_Sensor_Ids

0 commit comments

Comments
 (0)