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

Add more datasets #5

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from
Draft

Add more datasets #5

wants to merge 22 commits into from

Conversation

jomey
Copy link
Owner

@jomey jomey commented Sep 17, 2024

No description provided.

Also update import paramaters
Add script that converts the CU Boulder tiffs to COGs. A second step
updates the created new table with a date column to query for specific
dates.
Extract the function to buffer a CBRFC zone when querying overlapping
pixels into a separate file. Prepares re-using that for different SWE
products.
Add SQL function to extract CU Boulder SWE for a given date. This
pixel extraction logic changed to use the centroid of a pixel to
determine in which CBRFC zone it belongs to. This removes creating
more SWE than the product has.
Add the spatial select to only return centroid points within
the requested zone. Simplifies function return and calls to it
(as seen with the view example)
Update the UA SWE logic to use the centroid approach, identical
to CU Boulder
Save example query to calcluate the percentage of CBRFC zone
contained within a SWE pixel.
Folder will have all scripts to import SWE data into the DB
Using the ST_CLIP function without selecting the corresponding tiles
triggered this warning: "Raster is empty. Returning empty set".
A simple ST_INTERSECTS in the WHERE clause fixed this issue and gave
a nice performance boost.
Update the returned table view and use a unique name for the SWE column
Add a new table that holds the unique CH5 IDs. The zone table is now
connected with a new ch5_id table via foreign key. This prepares
linking datasets like ASO that are delivered on a per basin basis.
Also update the table import to not use a extent constraint
Generalize the spatial select for each product into a function
that takes the table name as argument.
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

Successfully merging this pull request may close these issues.

1 participant