-
Notifications
You must be signed in to change notification settings - Fork 24
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
Enhance Gen-Vx-Mask shapefile masking to support multiple shapes and specify shape metadata. #1060
Comments
This issue resurfaced during the NOAA telecon on 2/24/2020: ======================================================== Logan, that’s a great example. And yes, you’re correct. MET would write output for that same mask name 3 times. There would be no way of differentiating the output. As for the impact on event equalization, I suppose you’re right. When creating the scorecard, METviewer computes pairwise differences. And it would expect a single set of stats for the 2 input models. And in your example, it’d get 3 for each model, which would result in an error. One option would be computing stats over the UNION of the MRGL regions instead of processing them separately. This is doable, but would just require the pre-processing calls to gen_vx_mask to be more sophisticated. You can run gen_vx_mask iteratively to compute the union of those 3 areas. If we enhanced gen_vx_mask to enable the “-shapeno” command line option to support multiple arguments, that’d make this a lot easier. You’d just say “-shapeno 0,3,4” assuming the MRGL areas are the 1st, 4,th, and 5th records (0-based). Or better yet, support “-shaperx MRGL” and have gen_vx_mask use regular expressions to figure out which records you want by reading the dbf file… or both. |
FYI, @Deba57 I'm working on this feature_1060_shapes branch for issue #1060 and have been able to get
The next task is further simplifying this to use all records where "CONTINENT = Europe". |
…is NOT used. However, do case-insensitive matching. Also work on the log, warning, and error messages.
…ecommend single quotes for embedded whitespace.
…hape_str command line option.
…ne file example and then update gen_vx_mask to point to that example.
Describe the Enhancement
This issue arose again via dtcenter/METplus#2155. Recommend at least supporting the specification of multiple
-shapeno
values. That would make the commands for this discussion MUCH easier.In met-8.0, the gen_vx_mask tool can read shapefiles to define masking regions. The shape to be used is defined by the
-shapeno
command line option. Suggest making this more user friendly by...-shapeno 1,2
or-shapeno 1 -shapeno 2
.gis_dump_dbf
tool dumps metadata to the screen, including key=value pairs such as:Consider adding a command line option to support specifying this metadata, such as:
And support multiple values as:
If multiple vals are specified for a given key, use all records whose value appears in the list.
If multiple keys are specified, only use records that match all of them.
Note that these
'key = ...; val = ...;
settings can be parsed similar to theparse_conf_key_value_map()
function. This map should be a mapping of unique ConcatString keys (BASIN_ID) to a StringArray of values (MBRFC,AKRFC,CNRFC).Be sure to add detailed debug messages to the let the user know what the tool is doing.
Note that this will require reading the .dbf file.
The
-shape
option is really just a fancy/convenient way of setting the-shapeno
setting. If both-shape
and-shapeno
are specified, use all unique records that are specified.Time Estimate
Estimate the amount of work required here.
Issues should represent approximately 1 to 3 days of work.
Sub-Issues
Consider breaking the enhancement down into sub-issues.
No sub-issues needed
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
No impacts.
Enhancement Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Development issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: