Currently, when precipitation and potential evapotranspiration are aggregated to a daily time step, missing data (i.e. -99 in Fortran) are not taken into account and are used in the aggregation. Therefore, we need to aggregate only the available prcp and pet and assuming zero for the no data.
Currently, when precipitation and potential evapotranspiration are aggregated to a daily time step, missing data (i.e. -99 in Fortran) are not taken into account and are used in the aggregation. Therefore, we need to aggregate only the available prcp and pet and assuming zero for the no data.
Previous code:
Updated code: