forked from NOAA-OWP/icefabric
-
Notifications
You must be signed in to change notification settings - Fork 1
NWM Request: HI geopackage queries are broken #37
Copy link
Copy link
Open
Description
Since the hl_uri field is missing in the Hawaii network table, the subsetting/geopackage retrieval tool is broken.
There needs to be a new fetch of the origin row using the pois and hydrolocations table to solve this
>>> catalog.load_table("hi_hf.network").scan().to_pandas()
id toid divide_id ds_id mainstem poi_id hydroseq hf_source hf_id lengthkm areasqkm tot_drainage_areasqkm type vpuid topo
0 wb-1366 tnx-1000001261 cat-1366 NaN 8.000010e+13 12.0 1.0 NHDPlusV2 8.000010e+13 7.242217 11.906515 516.127067 terminal hi fl-nex
1 wb-1366 tnx-1000001261 cat-1366 NaN 8.000010e+13 12.0 1.0 NHDPlusV2 8.000010e+13 7.242217 11.906515 516.127067 terminal hi fl-nex
2 wb-1366 tnx-1000001261 cat-1366 NaN 8.000010e+13 12.0 1.0 NHDPlusV2 8.000010e+13 7.242217 11.906515 516.127067 terminal hi fl-nex
3 wb-1366 tnx-1000001261 cat-1366 NaN 8.000010e+13 12.0 1.0 NHDPlusV2 8.000010e+13 7.242217 11.906515 516.127067 terminal hi fl-nex
4 wb-1366 tnx-1000001261 cat-1366 NaN 8.000010e+13 12.0 1.0 NHDPlusV2 8.000010e+13 7.242217 11.906515 516.127067 terminal hi fl-nex
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
13667 None cnx-5 cat-5 NaN NaN NaN NaN None NaN 0.000000 0.727659 0.727659 coastal hi fl-nex
13668 None cnx-4 cat-4 NaN NaN NaN NaN None NaN 0.000000 0.900819 0.900819 coastal hi fl-nex
13669 None cnx-3 cat-3 NaN NaN NaN NaN None NaN 0.000000 0.305996 0.305996 coastal hi fl-nex
13670 None cnx-2 cat-2 NaN NaN NaN NaN None NaN 0.000000 0.063980 0.063980 coastal hi fl-nex
13671 None cnx-1 cat-1 NaN NaN NaN NaN None NaN 0.000000 0.702290 0.702290 coastal hi fl-nex
[13672 rows x 15 columns]
>>> catalog.load_table("conus_hf.network").scan().to_pandas()
id toid divide_id ds_id mainstem hydroseq hf_source hf_id lengthkm areasqkm tot_drainage_areasqkm type vpuid hf_hydroseq hf_lengthkm hf_mainstem topo poi_id hl_uri
0 wb-86563 tnx-1000000897 cat-86563 NaN 70386.0 25828.0 NOAA Reference Fabric 4726667.0 2.091335 4.238100 71223.451142 terminal 02 70387.0 1.359631 70386.0 fl-nex 47323.0 None
1 wb-86563 tnx-1000000897 cat-86563 NaN 70386.0 25828.0 NOAA Reference Fabric 4726685.0 2.091335 4.238100 71223.451142 terminal 02 70386.0 0.731704 70386.0 fl-nex 47323.0 None
2 wb-95713 tnx-1000000898 cat-95713 NaN 1920967.0 25827.0 NOAA Reference Fabric 4150504.0 5.193594 5.196150 5.196150 terminal 02 1920969.0 0.635162 1920967.0 fl-nex NaN None
3 wb-95713 tnx-1000000898 cat-95713 NaN 1920967.0 25827.0 NOAA Reference Fabric 4151956.0 5.193594 5.196150 5.196150 terminal 02 1920971.0 0.049910 1920967.0 fl-nex NaN None
4 wb-95713 tnx-1000000898 cat-95713 NaN 1920967.0 25827.0 NOAA Reference Fabric 4150486.0 5.193594 5.196150 5.196150 terminal 02 1920970.0 2.506951 1920967.0 fl-nex NaN None
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
3502127 None inx-2136935 cat-2136935 2149814.0 NaN NaN NOAA Reference Fabric NaN 0.000000 222.195115 222.195115 internal 11 NaN NaN NaN fl-nex NaN None
3502128 None inx-2136934 cat-2136934 2151429.0 NaN NaN NOAA Reference Fabric NaN 0.000000 135.205181 135.205181 internal 11 NaN NaN NaN fl-nex NaN None
3502129 None inx-2136933 cat-2136933 2166001.0 NaN NaN NOAA Reference Fabric NaN 0.000000 203.102102 203.102102 internal 11 NaN NaN NaN fl-nex NaN None
3502130 None inx-2136932 cat-2136932 2175582.0 NaN NaN NOAA Reference Fabric NaN 0.000000 5.182194 5.182194 internal 11 NaN NaN NaN fl-nex NaN None
3502131 None inx-2136931 cat-2136931 2175582.0 NaN NaN NOAA Reference Fabric NaN 0.000000 22.597659 22.597659 internal 11 NaN NaN NaN fl-nex NaN None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels