Closed jaseeverett closed 1 year ago
The crash has been fixed however there are 3 additional things which should be addressed
df <- head(pr_get_DataLocs("NRS"), 100)
res_spat <- 10
altout <- pr_match_Altimetry(df, pr = "GSLA")
returns altout
as only 83 rows, instead of 100. If the data missing from the satellite data, it should return an NA rather than removing that row all together.
I'm happy to work on these issues if you prefer @clairedavies
Also noted that the examples now fail, even using head(df, 5) because the first 5 are after 2019. Need to add a catch for when no data is prior to 2020
Done - caused because no data was returned, now all records are returned with NaN where necessary, trycatch and if statement combination used to prevent error message appearing in trycatch function even though the function was actually working.
When running the example for
pr_match_Altimetry
using 100 observations, it crashes. I suspect it is related to one of the date/lat/lon combinations not being found. When I run the code using only 10 obs, it works correctly.The error is: