diff --git a/CMakeLists.txt b/CMakeLists.txt index 335d308..946f02c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,8 @@ add_subdirectory( src ) add_subdirectory ( docs ) +add_subdirectory ( share ) + ################################################################################ # Export and summarize diff --git a/share/CMakeLists.txt b/share/CMakeLists.txt new file mode 100644 index 0000000..05d05f6 --- /dev/null +++ b/share/CMakeLists.txt @@ -0,0 +1,20 @@ +# (C) British Crown Copyright 2024 Met Office + +list( APPEND shared_files + odb_col_chl_query_filter_null.yaml +) + +set( destination share/orca-jedi/odb-query ) + +install( + FILES ${shared_files} + DESTINATION ${destination} + PERMISSIONS OWNER_READ GROUP_READ WORLD_READ) + +file( MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/${destination} ) + +foreach( file ${shared_files} ) + execute_process(COMMAND "${CMAKE_COMMAND}" "-E" "copy_if_different" + "${CMAKE_CURRENT_SOURCE_DIR}/${file}" + "${CMAKE_BINARY_DIR}/${destination}/${file}") +endforeach() diff --git a/share/odb_col_chl_query_filter_null.yaml b/share/odb_col_chl_query_filter_null.yaml new file mode 100644 index 0000000..dd56493 --- /dev/null +++ b/share/odb_col_chl_query_filter_null.yaml @@ -0,0 +1,15 @@ +where: + varno: [288,] + query: initial_obsvalue is not null +variables: +- name: receipt_time +- name: receipt_date +- name: initial_obsvalue +- name: instrument_type +- name: lat +- name: lon +- name: date +- name: time +- name: ops_obsgroup +- name: varno +- name: seqno