You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# start a tempfile
tempfile=tempfile("KBGM_example")
# Download a NEXRAD file and save as KBGM_example
download.file(
"https://noaa-nexrad-level2.s3.amazonaws.com/2019/10/01/KBGM/KBGM20191001_000542_V06",
method="libcurl", mode="wb", tempfile
)
# Calculate MistNet segmentation
mistnet_pvol <- apply_mistnet(tempfile)
# Replace DBZH values with NA when CELL >=1
# produces an error:
calculate_param(mistnet_pvol$scans[[1]], DBZH = ifelse(CELL >=1, NA, DBZH))
Last statement produces:
Error in Ops.param(test) : argument "e2" is missing, with no default
If we convert the scan to a ppi, the operation does succeed:
# convert scan to ppi:
my_ppi <- project_as_ppi(mistnet_pvol$scans[[1]])
# Replace DBZH values with NA when CELL >=1
# Succeeds where operations failed earlier for scan:
calculate_param(my_ppi, DBZH = ifelse(CELL >=1, NA, DBZH))
@bart1 as the original author of calculate_param() would you be able to generalize this to work also on scan and pvol objects? Brushing out weather like this is quite a common operation people want to use, so would be great if we can support it. If not, we need a more informative error message for why this isn't possible.
The text was updated successfully, but these errors were encountered:
The later error is one I need to fix. I guess for the other problem it might be mostly important to clarify the documentation and explain why c and if_else is needed.
Last statement produces:
If we convert the scan to a ppi, the operation does succeed:
@bart1 as the original author of
calculate_param()
would you be able to generalize this to work also on scan and pvol objects? Brushing out weather like this is quite a common operation people want to use, so would be great if we can support it. If not, we need a more informative error message for why this isn't possible.The text was updated successfully, but these errors were encountered: