Skip to content
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

filter null ocean colour data #122

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ add_subdirectory( src )

add_subdirectory ( docs )

add_subdirectory ( share )

################################################################################
# Export and summarize

Expand Down
20 changes: 20 additions & 0 deletions share/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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()
15 changes: 15 additions & 0 deletions share/odb_col_chl_query_filter_null.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading