code: def get_coeffs(page):
      """Parse coefficients from the page."""
      coeffs = {}
      coeffs["datetime"] = []
      coeffs["slope1"] = []
      coeffs["intercept1"] = []
      coeffs["slope2"] = []
      coeffs["intercept2"] = []
  
      slope1_idx, intercept1_idx, slope2_idx, intercept2_idx = (
          None,
          None,
          None,
          None,
      )
  
      date_idx = 0
      for row in page.lower().split("\n"):
          row = row.split()
          if len(row) == 0:
              continue
          if row[0] == "update":
              # Get the column indices from the header line
              slope1_idx = row.index("slope_lo")
              intercept1_idx = row.index("int_lo")
              slope2_idx = row.index("slope_hi")
              intercept2_idx = row.index("int_hi")
              continue
  
          if slope1_idx is None:
              continue
  
          # In some cases the fields are connected, skip those rows
          if max(
              [slope1_idx, intercept1_idx, slope2_idx, intercept2_idx]
          ) >= len(row):
              continue
  
          try:
              dat = dt.datetime.strptime(row[date_idx], "%m/%d/%Y")
          except ValueError:
              continue
  
          coeffs["datetime"].append([dat.year, dat.month, dat.day])
          coeffs["slope1"].append(float(row[slope1_idx]))
          coeffs["intercept1"].append(float(row[intercept1_idx]))
          coeffs["slope2"].append(float(row[slope2_idx]))
          coeffs["intercept2"].append(float(row[intercept2_idx]))
  
      return coeffs
  
file_path: satpy/utils/fetch_avhrr_calcoeffs.py
imports: import datetime
  import os.path
  import sys
  import h5py
  import urllib2
label_desc: Use image node_id 2 for calling a global function with example usage: get_coeffs(page) and returns: coeffs