Skip to content

Level 2

Peter Isaac edited this page Oct 12, 2021 · 8 revisions

The netCDF4 file created at Level 1 is input file to the processing at Level 2. At Level 2 quality control checks are run on the input raw data. The L2 processing is as follows:

  1. Read the Level 1 netCDF4 file; make a copy of the L1 data - ds2 = copy.deepcopy(ds1)
  2. Set some attributes for this level - pfp_utils.UpdateGlobalAttributes(cf, ds2, "L2")
  3. Apply linear corrections to the data - pfp_ck.do_linear(cf, ds2)
  4. Apply the quality control checks (range, diurnal, exclude dates and exclude hours) - pfp_ck.do_qcchecks(cf, ds2)
  5. Do the Sonic anemometer (CSAT, ...) diagnostic check - pfp_ck.do_SONICcheck(cf, ds2)
  6. Do the gas analyser (Li7500, EC155, ...) diagnostic check - pfp_ck.do_IRGAcheck(cf, ds2)
  7. Check missing data and QC flags are consistent - pfp_utils.CheckQCFlags(ds2)
  8. Write series statistics to file - pfp_io.get_seriesstats(cf, ds2)
  9. Write the percentage of good data as a variable attribute - pfp_utils.get_coverage_individual(ds2)

Clone this wiki locally