Open amedenblik opened 1 year ago
@USGSPMM3 Question for you: I'm pulling in the drainage area data for this plot, and I noticed some stations have two drainage area values (one from NWIS and one from elsewhere). It seems that some are marked with comments: "null," so I was thinking those would be excluded (see example gage 02169500 which has one marked null but the other not). But stations with a single value also seemed to be marked with the same "null" comments, see this example gage: 02162093. And at this gage, 02168845, there are two drainage area values and both are marked with the comments: "null." Is there another identifier that can tell me which drainage area value I should be using at gages that have multiple?
@maggiejaenicke : I put a question to the GIS folks in the Teams General Chat for StreamStats. Generally speaking I doubt we have any comments or very few comments in the fields for DA. I think that any of the fields that have a reference other than NWIS would likely be better. That said, I'm wondering if we should be using NWIS data calls to call the most recent value from NWIS rather than using the StreamStats database values that may be outdate (I really hope they aren't). I guess it could be a good exercise for us to do a compare of the DAs in our database against the NWIS database and see how many have 3 unique and separate values
@maggiejaenicke
CitationID 193 is the citation for DRNAREA (Drainage Area) characteristics that were imported from NWIS.
For now, if a gage has multiple DRNAREA characteristics and one of them has citation ID 193, let's use the value that is not associated with NWIS/citationID 193.
I am still not sure how to handle the situation where a gage has multiple DRNAREA characeristics and neither is associated with citationID 193. Maybe that situation doesn't exist?
We will work on a better solution in the database/services for the long-term.
@maggiejaenicke I created numerous related issues (see tagged issues above). I went ahead and assigned them to you, but feel free to unassign yourself if you run out of time, etc. These issues contain some new functionality that I don't think you've worked with before, so please don't hesitate to reach out if you could use help.
There are a few other features we discussed, which I think we can wait on for now until we finish these issues. Listing them here so we don't forget:
See related GageStatsServices issue to edit the GET Stations endpoint: https://code.usgs.gov/StreamStats/web-services-and-apis/GageStatsServices/-/issues/142
In the Exploration tools, create a new tool that generates a plot with:
There should be a drop-down that allows users to select a State / Region to show all that gages in that state/region.
In subsequent issues (see tagged issues below), there will be numerous options to select gages. I would explore the Exploration Tools for inspiration on how you may want to design this interface.
Example in R (Seth Siefken has some code for this-- see below):
Seth's code: