def test_fcd_hourly_asce(rs=h_args['rs'], rso=h_args['rso'], doy=h_args['doy'], time=h_args['time_mid'], lat=s_args['lat'], lon=s_args['lon'], fcd=h_args['fcd_asce']): assert float(calcs._fcd_hourly(rs, rso, doy, time, lat, lon, method='asce')) == pytest.approx(fcd)
def test_fcd_hourly_night(rs=h_args['rs'], rso=h_args['rso'], doy=h_args['doy'], time=6, lat=s_args['lat'], lon=s_args['lon'], fcd=1): # For now, check that nighttime fcd values are set to 1 assert float( calcs._fcd_hourly(rs, rso, doy, time, lat, lon, method='refet')) == pytest.approx(fcd)