From 64e7d4f001b1bb62495a09a67a73027fee06981e Mon Sep 17 00:00:00 2001 From: twsearle <14909402+twsearle@users.noreply.github.com> Date: Fri, 11 Oct 2024 10:19:53 +0100 Subject: [PATCH] filter null ocean colour data --- CMakeLists.txt | 2 ++ share/CMakeLists.txt | 20 ++++++++++++++++++++ share/odb_col_chl_query_filter_null.yaml | 15 +++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 share/CMakeLists.txt create mode 100644 share/odb_col_chl_query_filter_null.yaml 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..a481b28 --- /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