SPI-Birds / pipelines

Pipelines for generating a standard data format for bird data
2 stars 6 forks source link

Outstanding issue for UAN: individuals with no age record but caught on nest #168

Closed StefanVriend closed 3 years ago

StefanVriend commented 3 years ago

UAN pipeline There are approx. 400 records in the UAN dataset of individuals caught on a nest (with a BroodID) but no age information. These records are currently not properly dealt with in the pipeline.

There are two issues:

  1. When age is not recorded, the create_individual_UAN() function sets RingAge to "adult".
  2. When age is not recorded, the create_individual_UAN() function sets BroodIDLaid to NA. However, these records do have a BroodID.

Solution: create_capture_UAN() uses CaptureMethod to find chicks on a nest (i.e., CaptureMethod is "P" or "PP") and assign the corrrect age to Age_observed and Age_calculated. In the same way, create_individual_UAN() can utilize that information to assign the correct RingAge and keep the BroodIDLaid.