Changes between Version 1 and Version 2 of PDAFomi_set_searchtype


Ignore:
Timestamp:
Mar 14, 2026, 1:37:26 PM (8 months ago)
Author:
lnerger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PDAFomi_set_searchtype

    v1 v2  
    33This page documents the function `PDAFomi_set_searchtype` of PDAF, which was introduced with PDAF 3.1.
    44
    5 In PDAF V3.1 we optimized the search for observations within the localization cut-off radius.
     5The routine `PDAFomi_set_searchtype` allows to choose the type of the search operation for observations within the localization cut-off radius (i.e. 'local observations') in domain-localized ensemble filters (i.e. LESTKF, LETKF, LNETF, LKNETF, LSEIK)
     6
     7In PDAF V3.1 we optimized the search for local observations. For example, we introduced a variant which first sorts the observation according to their coordinates along a chosen coordinate direction and then performs a bisection search to determine observations that possibly lie within the radius. This can significantly reduce the length of the search loop and hence speed up the search. We also introduced variants that only perform a single search loop. In PDAF V3.0 and before the search was done twice :A first loop counted the observation within the radius. Then local observation arrays were allocated with the correct size and a second loop was done which filled the arrays. For a single loop, we allocate the local observation array at their maximum size (i.e. the number of full observations) and then fill only the first elements up to the number of observation within the radius. While this approach is faster, it requires more memory.
     8
    69
    710The interface is: