Added test data downloads for GTS

This commit is contained in:
Shahram Najm 2015-03-17 17:18:18 +00:00
parent 3d4907a17f
commit aea8071594
5 changed files with 34 additions and 4 deletions

View File

@ -1,6 +1,7 @@
# data/CMakeLists.txt
add_subdirectory(tigge)
add_subdirectory(bufr)
add_subdirectory(gts)
# Download all the binary GRIB data from website

View File

@ -36,11 +36,12 @@ if [ -z "$DATA_DIR" ]; then
exit 1
fi
gfiles=`cat $DATA_DIR/grib_data_files.txt`
tfiles=`cat $DATA_DIR/tigge/tigge_data_files.txt | sed -e 's:^:tigge/:'`
bfiles=`cat $DATA_DIR/bufr/bufr_data_files.txt $DATA_DIR/bufr/bufr_ref_files.txt | sed -e 's:^:bufr/:'`
grib_files=`cat $DATA_DIR/grib_data_files.txt`
tigge_files=`cat $DATA_DIR/tigge/tigge_data_files.txt | sed -e 's:^:tigge/:'`
bufr_files=`cat $DATA_DIR/bufr/bufr_data_files.txt $DATA_DIR/bufr/bufr_ref_files.txt | sed -e 's:^:bufr/:'`
gts_files=`cat $DATA_DIR/gts/gts_data_files.txt $DATA_DIR/gts/gts_ref_files.txt | sed -e 's:^:gts/:'`
files="$gfiles $tfiles $bfiles"
files="$grib_files $tigge_files $bufr_files $gts_files"
if [ $CLEAN -eq 1 ]; then
for f in $files; do

26
data/gts/CMakeLists.txt Normal file
View File

@ -0,0 +1,26 @@
# data/gts/CMakeLists.txt
# Download all the GTS data and reference files from website
#
FILE(READ "gts_data_files.txt" gts_files_to_download)
STRING(REGEX REPLACE "\n" ";" gts_files_to_download "${gts_files_to_download}")
FILE(READ "gts_ref_files.txt" gts_refs_to_download)
STRING(REGEX REPLACE "\n" ";" gts_refs_to_download "${gts_refs_to_download}")
ecbuild_get_test_multidata(
TARGET get_gts
NOCHECK
NAMES ${gts_files_to_download} ${gts_refs_to_download}
)
# Copy other files - e.g. text files etc from the source data/gts dir
LIST(APPEND other_files
gts_data_files.txt
gts_ref_files.txt
)
foreach( file ${other_files} )
execute_process( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${file} ${CMAKE_CURRENT_BINARY_DIR} )
endforeach()

View File

@ -0,0 +1 @@
EGRR20150317121020_00493212.DAT

View File

@ -0,0 +1 @@
EGRR20150317121020_00493212.DAT.ls.ref