PIC-IRIS / PH5

Library of PH5 clients, apis, and utilities
Other
15 stars 9 forks source link

[FEATURE] Remove reference to metadatatoph5 from ph5_validate & ph5tostationxml Response_t check #538

Open hrotman-pic opened 2 weeks ago

hrotman-pic commented 2 weeks ago

One of the current ph5_validate checks will print an error that refers to metadatatoph5, such as the example:

ERROR: Response_t[0]:response_file_das_a RT125_RESP is incomplete or inconsistent with Array_t_001:sr=1000 Array_t_001:sensor_model= Array_t_001:das_model=rt125. Please check with resp_load format [das_model]_[sr]_[srm]_[gain] or metadatatoph5 format [das_model]_[sensor_model]_[sr][cha] (check doesn't include [cha]).

Can this message be modified to read (example): ERROR: Response_t[0]:response_file_das_a RT125_RESP is incomplete or inconsistent with Array_t_001:sr=1000 Array_t_001:sensor_model= Array_t_001:das_model=rt125. Please check with resp_load format [das_model]_[sr]_[srm]_[gain].

ph5tostationxml also checks and produces a similar error message, currently an example is: ERROR: array 001 station 10000, channel 1: Response_t[1]:response_file_das_a RT125_RESP is incomplete or inconsistent with Array_t_001:sr=100 Array_t_001:sensor_model=GS11V Array_t_001:das_model=rt125. Please check with resp_load format [das_model]_[sr]_[srm]_[gain] or metadatatoph5 format [das_model]_[sensor_model]_[sr][cha] (check doesn't include [cha]).

Can this message be modified to read (example): ERROR: array 001 station 10000, channel 1: Response_t[1]:response_file_das_a RT125_RESP is incomplete or inconsistent with Array_t_001:sr=100 Array_t_001:sensor_model=GS11V Array_t_001:das_model=rt125. Please check with resp_load format [das_model]_[sr]_[srm]_[gain].