Here we can use any of the 15,000 datasets indexed in our catalog in the same way. Once we align our catalog to the STAC specification, we will also be able to get most imagery datasets like Landsat, sentinel, etc.
That work is being documented here, and will guide some of the New Zealand work.
Putting arbitrary gridded data onto the model grid
The AOI sent along isn't "rectilinear" in that it conforms to the raster/GDAL view of the world. However, we have developed ways to quickly summarize big datasets (both in domain and feature count).
Here we are determining the area weighted mean PET for each model cell. the fun used can be any standard summary function (min, mean, mode, freq, ect) or a user defined function:
o = zonal::execute_zonal(x, AOI, fun = "mean", ID = 'CELL_ID')
plot(o['mean'], border = NA)
Relation to the Hydrofabric
Hydrofabrics are delivered VPU by VPU (VPU = NHDPlusV2 vector processing unit). This Texas AOI falls in VPU-12. We can point the function subset_hy to the VPU-12 geopackage and extract the flowpaths, catchments, poi (points of interest) for the AOI:
We can further explore what type of POIs we have indexed (gages, thermoelectric plants, HUC12 outlets, waterbodies, and so on)
table(nl$nexus_locations$type)
#>
#> Gages HUC12 NID TE WBIn WBOut
#> 84 257 17 16 15 7
Flexible zonal stats and data
Just to emphasize the ability to reuse flexible data, we can generate the mean, catchment wide PET on 2020-01-01 simply by switching out the areal units:
o2 = zonal::execute_zonal(x, nl$cats, fun = "mean", ID = 'ID')
plot(o2['mean'], border = NA)
key libraries (the last two are lynker/owp developed)
read in the area of interest (AOI) from the GDB Justin sent
Get PET data from Gridmet for 2020-01-01
Here we can use any of the 15,000 datasets indexed in our catalog in the same way. Once we align our catalog to the STAC specification, we will also be able to get most imagery datasets like Landsat, sentinel, etc.
That work is being documented here, and will guide some of the New Zealand work.
Putting arbitrary gridded data onto the model grid
The AOI sent along isn't "rectilinear" in that it conforms to the raster/GDAL view of the world. However, we have developed ways to quickly summarize big datasets (both in domain and feature count).
Here we are determining the area weighted mean PET for each model cell. the
fun
used can be any standard summary function (min, mean, mode, freq, ect) or a user defined function:Relation to the Hydrofabric
Hydrofabrics are delivered VPU by VPU (VPU = NHDPlusV2 vector processing unit). This Texas AOI falls in VPU-12. We can point the function
subset_hy
to the VPU-12 geopackage and extract the flowpaths, catchments, poi (points of interest) for the AOI:We can further explore what type of POIs we have indexed (gages, thermoelectric plants, HUC12 outlets, waterbodies, and so on)
Flexible zonal stats and data
Just to emphasize the ability to reuse flexible data, we can generate the mean, catchment wide PET on 2020-01-01 simply by switching out the areal units:
Created on 2022-08-15 by the reprex package (v2.0.1)