You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parser=argparse.ArgumentParser(description='This program takes RINEX files (v2 or v3, compressed or not), rename them and modifiy their headers, and write them back to a destination directory')
35
-
parser.add_argument('rinexinput', type=str,
36
-
help='Input list file of the RINEX paths to process (generated with a find or ls command for instance) OR a single RINEX file\'s path (see -a/--alone for a single input file)')
37
-
parser.add_argument('outputfolder', type=str,
38
-
help='Output folder for modified RINEX files')
39
-
parser.add_argument(
40
-
'-s', '--sitelog', help='Get the RINEX header values from file\'s site\'s sitelog. Provide a single sitelog path or a folder contaning sitelogs.', type=str, default="")
41
-
parser.add_argument('-k', '--modif_kw', help='''Modification keywords for RINEX's header fields and/or filename. Will override the information from the sitelog.
42
-
Format : -k keyword_1=\'value\' keyword2=\'value\'. Acceptable keywords:\n
43
-
comment, marker_name, marker_number, station (legacy alias for marker_name), receiver_serial, receiver_type, receiver_fw, antenna_serial, antenna_type,
parser.add_argument('-m', '--marker', help="A four or nine character site code that will be used to rename input files. (apply also to the header\'s MARKER NAME, but a custom -k marker_name='XXXX' overrides it)", type=str, default='')
48
-
parser.add_argument('-n', '--ninecharfile',
31
+
parser=argparse.ArgumentParser(description='RinexMod takes RINEX files (v2 or v3, compressed or not), rename them and modifiy their headers, and write them back to a destination directory',
32
+
formatter_class=SmartFormatter,
33
+
epilog=textwrap.dedent('RinexMod '+str(rinexmod.__version__) +' - GNU Public Licence v3 - P. Sakic et al. - IPGP-OVS - https://github.com/IPGP/rinexmod'))
help="Input RINEX file(s). It can be 1) a list file of the RINEX paths to process (generated with find or ls command for instance) 2) several RINEX files paths 3) a single RINEX file path (see -a/--alone for a single input file)")
'-s', '--sitelog', help="Get the RINEX header values from file's site's sitelog. Provide a single sitelog path or a folder contaning sitelogs.", type=str, default="")
help="A four or nine character site code that will be used to rename input files. (apply also to the header's MARKER NAME, but a custom -k marker_name='XXXX' overrides it)", type=str, default='')
52
+
optional.add_argument('-co', '--country',
53
+
help='A three character string corresponding to the ISO 3166 Country code that will be used to rename input files. It overrides other country code sources (sitelog, --marker...). List of ISO country codes: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes', type=str, default="")
54
+
optional.add_argument('-n', '--ninecharfile',
49
55
help='Path of a file that contains 9-char. site names (e.g. from the M3G database)', type=str, default="")
50
-
parser.add_argument('-r', '--relative', help='Reconstruct files relative subfolders. You have to indicate the common parent folder, that will be replaced with the output folder', type=str, default=0)
help='Set file\'s compression (acceptables values : \'gz\' (recommended to fit IGS standards), \'Z\', \'none\')', default='')
53
-
parser.add_argument(
56
+
optional.add_argument('-sti', '--station_info',
57
+
help='Path of a GAMIT station.info file to obtain GNSS site metadata information (needs also -lfi option)', type=str, default="")
58
+
optional.add_argument('-lfi', '--lfile_apriori',
59
+
help='Path of a GAMIT apriori apr/L-File to obtain GNSS site position and DOMES information (needs also -sti option)', type=str, default="")
60
+
optional.add_argument('-r', '--relative', help='Reconstruct files relative subfolders. You have to indicate the common parent folder, that will be replaced with the output folder', type=str, default=0)
61
+
optional.add_argument('-nh', '--no_hatanaka', help="Skip high-level RINEX-specific Hatanaka compression (performed per default). See also -c 'none'", action='store_true', default=False)
help="Set low-level RINEX file compression (acceptable values : 'gz' (recommended to fit IGS standards), 'Z', 'none')", default='')
64
+
optional.add_argument(
54
65
'-l', '--longname', help='Rename file using long name RINEX convention (force gzip compression).', action='store_true', default=False)
55
-
parser.add_argument(
56
-
'-fs', '--force_sitelog', help="Force sitelog-based header values when RINEX's header and sitelog site name do not correspond", action='store_true', default=False)
57
-
parser.add_argument(
66
+
optional.add_argument(
67
+
'-fs', '--force_sitelog', help="If a single sitelog is provided, force sitelog-based header values when RINEX's header and sitelog site name do not correspond. \n If several sitelogs are provided, skip badly-formated sitelogs.", action='store_true', default=False)
68
+
optional.add_argument(
69
+
'-fc', '--force_fake_coords', help="When using GAMIT station.info metadata without apriori coordinates in the L-File, gives fake coordinates at (0°,0°) to the site", action='store_true', default=False)
70
+
optional.add_argument(
58
71
'-fr', '--force_rnx_load', help="Force the loading of the input RINEX. Useful if its name is not standard", action='store_true', default=False)
59
-
parser.add_argument(
60
-
'-i', '--ignore', help='Ignore firmware changes between instrumentation periods when getting header values info from sitelogs', action='store_true')
61
-
parser.add_argument(
72
+
optional.add_argument(
73
+
'-ig', '--ignore', help='Ignore firmware changes between instrumentation periods when getting header values info from sitelogs', action='store_true')
74
+
optional.add_argument(
62
75
'-a', '--alone', help='INPUT is a single/alone RINEX file (and not a list file of RINEX paths)', action='store_true')
63
-
parser.add_argument('-o', '--output_logs',
76
+
optional.add_argument('-ol', '--output_logs',
64
77
help='Folder where to write output logs. If not provided, logs will be written to OUTPUTFOLDER', type=str)
'-v', '--verbose', help='Print file\'s metadata before and after modifications.', action='store_true', default=False)
69
-
parser.add_argument(
80
+
optional.add_argument(
81
+
'-v', '--verbose', help="Print file's metadata before and after modifications.", action='store_true', default=False)
82
+
optional.add_argument(
70
83
'-t', '--sort', help='Sort the input RINEX list.', action='store_true', default=False)
71
-
parser.add_argument(
84
+
optional.add_argument(
72
85
'-u', '--full_history', help="Add the full history of the station in the RINEX's 'header as comment.", action='store_true', default=False)
73
-
parser.add_argument(
86
+
optional.add_argument(
74
87
'-tol', '--tolerant_file_period', help="the RINEX file period is tolerant and stick to the actual data content, but then can be odd (e.g. 07H, 14H...). A strict file period is applied per default (01H or 01D), being compatible with the IGS conventions", action='store_true', default=False)
75
-
parser.add_argument(
76
-
'-mp', '--multi_process', help="number of parallel multiprocesing (default: %(default)s, no parallelization)", type=int, default=1)
0 commit comments