Skip to content

Enhance and clarify sorting options for MEASUREMENT TO STATION report #305

@jhaasdyk-au

Description

@jhaasdyk-au

Brief description
RE: MEASUREMENT TO STATION report from --output-msr-to-stn [either for import.exe or adjust.exe]
RE: sort order argument --sort-msr-to-stn-field

The default option for --sort-msr-to-stn-field is "0. Original station order (default)".
The User Guide indicates: "By default, the measurement to station table is sorted according to station",
which suggests to me a default alphanumeric sorting (or sorting per user supplied order).
However, it appears that the sort order observed conforms to neither of these.

Consider default alphanumeric sorting.
Consider also other sorting options.

Background / Observed behaviour

For our NSW JADJ submission (not supplied here) the default sort order does:

  • NOT sort by station name alpha numeric
  • NOT sort by station name in order supplied in stn file
  • NOT sort by station name in order supplied in msr file

Rather, the following order is provided in the .m2s file [and/or the .adj file]
How is order is determined?
All these top-of-list stations have 1x Ymsr, but thereafter don't display and obvious (to me) pattern.

ADE1        
COCO_1900001
TOW2_1900001
ANDA        
PERT_1994117
ARD2        
HOB2_1995279
ASHF        
TIDB_1900001
BAIR        
BARR        
ALIC_1900001
BDST        
...

Meanwhile, as expected, Option '1. Measurement count' returns the list (below) sorted by (1) number of obs then (2) alphanumeric within those groups.
(all stations below at top of list have 1xmsr)

00NA_1900001  
01NA_1900001  
01NA_2017124  
02NA          
10-2882_301117
1005_95000    
101_8715      
11_gocup      
12_gocup      
13_gocup 
...

Basic requirements
Depending on original intent:

  • Update documentation to be more specific: is default sorting alphanumeric? or order supplier by user? or other?
  • Update default sorting behaviour (if necessary)
  • Extend options list:
  1. Original station order (default) [i.e. as supplied by user?]
  2. Alphanumeric station order
  3. Measurement count (increasing)
  4. Measurement count (decreasing)

Priority
[Low]

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature improveImprove or enhance an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions