ceff-tech / ffc_api_client

An R client for the online Functional Flows Calculator API
https://ceff-tech.github.io/ffc_api_client
9 stars 3 forks source link

evaluate_alteration() does not work for certain COMIDs #58

Open annieholt opened 4 years ago

annieholt commented 4 years ago

I get the following error message for several of the COMIDs where stream gages are located, using the attached timeseries data (also for COMIDs 17608051 and 17611425 for example)

flowdata_COMID17574729.txt

test_results <- ffcAPIClient::evaluate_alteration(timeseries_df = test_df , token = get_token(), latitude = lat,longitude = long) [1] "Using default date format string of %m/%d/%Y" [1] "Using date format string %m/%d/%Y" [1] "COMID 17574729 is of stream class PGR - sending parameters to FFC online for that stream class. This may produce different results than if you run data through the FFC yourself using their default parameters." Error in if (median >= predictions[["p10"]] && median <= predictions[["p90"]]) { : missing value where TRUE/FALSE needed