-
Notifications
You must be signed in to change notification settings - Fork 1
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
As a user, I want to be able to dictate a proper feature name for output #285
Comments
Original Redmine Comment One thing we could do, which is a natural extension of the multi-feature grouping, is to allow a @name@ to be assigned to a singleton feature group, i.e., a single tuple. Like this:
Analogously:
edit: under the hood, everything is a feature group anyway, so this would be a very minor change. Obviously, you could kind of get that behavior now by declaring a singleton group using the long-form @FeatureGroup@ declaration, but that is a bit kludgey if you only want a singleton. Another possibility might be to allow the more friendly "station name" attribute to be used, which is sometimes available, but not always (and is sometimes more friendly, not always). |
Original Redmine Comment I really like your example as it reads pretty well and isn't confusing. I put it as @low@ because it's definitely not something that is urgent and desperately needs to be addressed. I don't even know when that can be worked into the GUI. It will be appreciated (by me at the very least) if it were an option in some form, just so that it can be easier to understand context free. What we have now works well and I wouldn't remove, just keep it as a pretty solid fallback if the user wasn't able to provide more. |
Original Redmine Comment James addressed the geographic feature part. I think the feature grouping capability provides feature aliasing at no extra cost. As for -units- variables and others, labeling on graphics is the purpose of the "label" attribute sprinkled throughout the declaration schema. So I just ran this through the COWRES:
And this was produced: Edit: I guess for units there are unit aliases. And yeah it stinks that it's contextual. |
Original Redmine Comment Now that I look at your example, I can't help but think that the names should be reduced if they are the same. If the features are @left="DRRC2HSF"@ and @right="DRRC2HSF"@, printing @DRRC2HSF@ rather than @DRRC2HSF-DRRC2HSF@ reads better. If you have @left="DRRC2HSF"@ and @right="DRRC2HSF"@ and @baseline="DRRC2"@, though, @DRRC2HSF-DRRC2HSF-DRRC2@ still makes sense. Even then, @right vs LEFT@ is a little easier to read and understand than @left-right@ since it reads a little more like "@right@ compared to @left@" as opposed to "@left@ and @right@". They are the same in this context, so it's purely for readability's sake, not functionality's. |
Original Redmine Comment I think we could do that. The default name chosen for a singleton feature group is a short string representation of the single tuple within it, which takes the form of l-r-b feature names. We could de-duplicate that in the situation where all two or all three names are identical. I guess the downside is consistency, i.e., two different string representations depending on the content, but the upside is parsimony. edit: another downside is that it would break a lot of system test benchmarks (file names for legacy csv and content of pairs), depending on the scope of the change. |
Original Redmine Comment I would say deduplicate when all non-null names are equal. I think @DRRC2HSF-DRRC2@ would be confusing if it were actually @DRRC2HSF-DRRC2HSF-DRRC2@ since it won't be clear which one of the three were @DRRC2@. Or if two of them were. Also, while this does not pertain to features, bonus points for title case for metric and axis names. "Observed Relative Frequency" and "Rank Histogram" read better on graphical products compared to "OBSERVED RELATIVE FREQUENCY" and "RANK HISTOGRAM". It makes sense for pure data products like CSV or Netcdf where things need to be highlighted like that, but it adds a layer of polish when terminology on graphical products mimic natural language. |
Original Redmine Comment Chris wrote:
Yup, that's what I meant by all two or all three, agree. Chris wrote:
We could do that, these are all enumerations (which is why they appear like that by default), so just needs a @tostring@ override. I think there's a helper for that in commons (edit: capitalization, that is). |
Original Redmine Comment Considering that the graphical outputs are probably most (if not all) that our gracious overlords see, that spit-shine might provide some good/easy office-political brownie points. |
Original Redmine Comment Yup. I think all these things are super easy, mostly one liners. Hardest thing is updating benchmarks, I guess. I wouldn't call any of them breaking changes, on first glance, unless downstream users' applications are overly sensitive. |
Author Name: Chris (Chris)
Original Redmine Issue: 98384, https://vlab.noaa.gov/redmine/issues/98384
Original Date: 2021-11-04
I just ran a job for a test and managed to generate the following graph:
!02343940_2310009_NWM_Short_Range_VOLUMETRIC_EFFICIENCY.png!
Just by looking at it, what does the graph represent? It has no variable and the only description I have as to where it pertains to is @02343940-2310009@. From experience (and having run the project personally), I know that that means USGS Site 02343940 and NWM Feature ID 2310009, neither of which still makes sense unless I go to USGS' website and search for the site and find a shapefile for the NWM and look through that to find 2310009.
Instead, I'd like to somehow display a name on there. For the above, I'd prefer that it read "SAWHATCHEE CREEK AT CEDAR SPRINGS, GA" or "CEDG1" instead (bonus points for title case on the former). I can't necessarily think of a clean way to do this given discrete location definitions, but, if the feature service were employed, I could theoretically state something like @usgs_data/name@ or @nws_lid@ and have the WRES glean that information when reading from the service.
The text was updated successfully, but these errors were encountered: