With the changes to SWIN's 1st stage for 2021 to deal with the calibration value mismatch, we need to calculate NETRAD and ALB using the radiation values directly rather than rely on what is coming from the logger on site. So, these are now calculated in the 2nd stage. I also do some filtering out of negative SWOUT and ALB to 0-100. NaNs are written instead of unphysical values. Comments in header cover the changes and any needed references.
With the changes to SWIN's 1st stage for 2021 to deal with the calibration value mismatch, we need to calculate NETRAD and ALB using the radiation values directly rather than rely on what is coming from the logger on site. So, these are now calculated in the 2nd stage. I also do some filtering out of negative SWOUT and ALB to 0-100. NaNs are written instead of unphysical values. Comments in header cover the changes and any needed references.