class_docstr: Find orbit polynomial for a given timestamp.
class_docstr_tok: ["Find","orbit","polynomial","for","a","given","timestamp","."]
docstr: Initialize with the given candidates.
  
  Args:
      orbit_polynomials: Dictionary of orbit polynomials as found in
                         SEVIRI L1B files:
  
                         .. code-block:: python
  
                             {'X': x_polynomials,
                              'Y': y_polynomials,
                              'Z': z_polynomials,
                              'StartTime': polynomials_valid_from,
                              'EndTime': polynomials_valid_to}
docstr_tok: ["Initialize","with","the","given","candidates",".","Args",":","orbit_polynomials",":","Dictionary","of","orbit","polynomials","as","found","in","SEVIRI","L1B","files",":","..","code-block",":",":","python","{","'","X","'",":","x_polynomials",",","'","Y","'",":","y_polynomials",",","'","Z","'",":","z_polynomials",",","'StartTime","'",":","polynomials_valid_from",",","'EndTime","'",":","polynomials_valid_to","}"]
code: def __init__(self, orbit_polynomials):
      """Initialize with the given candidates.
  
      Args:
          orbit_polynomials: Dictionary of orbit polynomials as found in
                             SEVIRI L1B files:
  
                             .. code-block:: python
  
                                 {'X': x_polynomials,
                                  'Y': y_polynomials,
                                  'Z': z_polynomials,
                                  'StartTime': polynomials_valid_from,
                                  'EndTime': polynomials_valid_to}
  
      """
      self.orbit_polynomials = orbit_polynomials
      # Left/right boundaries of time intervals for which the polynomials are
      # valid.
      self.valid_from = orbit_polynomials["StartTime"][0, :].astype(
          "datetime64[us]"
      )
      self.valid_to = orbit_polynomials["EndTime"][0, :].astype(
          "datetime64[us]"
      )
  
imports: from __future__ import annotations
  import warnings
  from datetime import datetime, timedelta
  import dask.array
  import numpy
  import pyproj
  from numpy.polynomial.chebyshev import Chebyshev
  from satpy.readers.eum_base import issue_revision, time_cds_short
  from satpy.readers.utils import apply_earthsun_distance_correction
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 1 to create a new OrbitPolynomialFinder object  with example: obj = OrbitPolynomialFinder(orbit_polynomials)