Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing CAMELS basin comid in hydrofabric #231

Open
glitt13 opened this issue Sep 2, 2024 · 0 comments
Open

Missing CAMELS basin comid in hydrofabric #231

glitt13 opened this issue Sep 2, 2024 · 0 comments

Comments

@glitt13
Copy link

glitt13 commented Sep 2, 2024

I'm trying to process all CAMELS basins and came across a No data found for: 6335902 error. This corresponds to the Falling Creek Near Juliette, GA - 02212600 station. I can ignore this for short term, but in the medium term it would be ideal to address for such a standard, widely used basin dataset. In the long run to understand the root cause once the hydrofabric's capabilities begin to be applied to ungauged catchments.

nldi_feat <- list('featureSource'='comid','featureID'='6335902')
hfsubsetR::get_subset(nldi_feature = nldi_feat,
                        outfile ="~/noaa/regionalization/data/input/hydrofabric/",
                        type = 'reference',lyrs = "network",
                        overwrite=FALSE)
> traceback()
13: stop("Filter expression not supported for Arrow Datasets: ", 
        oxford_paste(expr_labs, quote = FALSE), "\nCall collect() first to pull data into R.", 
        call. = FALSE)
12: filter.Dataset(arrow::open_dataset(network), hf_id == !!comid)
11: dplyr::filter(arrow::open_dataset(network), hf_id == !!comid)
10: findOriginQuery.comid(.query, network)
9: NextMethod()
8: findOriginQuery.nldi_feature(.query, network)
7: findOriginQuery(.query, network)
6: dplyr::select(findOriginQuery(.query, network), id, vpuid, topo, 
       hydroseq)
5: dplyr::distinct(dplyr::select(findOriginQuery(.query, network), 
       id, vpuid, topo, hydroseq))
4: dplyr::collect(dplyr::distinct(dplyr::select(findOriginQuery(.query, 
       network), id, vpuid, topo, hydroseq)))
3: dplyr::slice_min(dplyr::collect(dplyr::distinct(dplyr::select(findOriginQuery(.query, 
       network), id, vpuid, topo, hydroseq))), hydroseq, with_ties = TRUE)
2: findOrigin(net_hook, id = id, comid = comid, hl_uri = hl_uri, 
       poi_id = poi_id, nldi_feature = nldi_feature, xy = xy)
1: hfsubsetR::get_subset(nldi_feature = nldi_feat, outfile = fp_cat, 
       type = "reference", lyrs = lyrs, overwrite = overwrite)

This is with hfsubetR version 0.0.9, with default hfsubsetR::get_subset() arg hf_version = "2.2". The same error arose with hf_version set to "20", "20.1", and "2.1.1".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant