nectarchain, the scientific software for the Cherenkov Telescope Array -- NectarCAM
This paper introduces nectarchain, the scientific software for the NectarCAM camera of the Cherenkov Telescope Array. The software transforms raw camera data into calibrated data ready for analysis. It comprises two main modules: a calibration pipeline that reduces data, performs flat-fielding, and determines gain, and a data quality monitoring pipeline that selects data meeting analysis standards. The paper also describes the downstream data format and how nectarchain integrates into the broader CTA software framework, along with the tests used to validate the code.