Skip to content
Snippets Groups Projects
Commit fabc6e23 authored by Bruce Flynn's avatar Bruce Flynn
Browse files

jpssrdr: open h5 files as ro

parent e6370df6
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ def main():
parser.add_argument("rdr", nargs="+", help="Any science rdr (RVIRS, RCRIS, RATMS)")
args = parser.parse_args()
if not args.rdrs:
if not args.rdr:
parser.exit(1, "no RDR's provided")
for o in merge_rdrs(args.rdr):
......
......@@ -229,7 +229,7 @@ def decode_rdr_blob(buf):
def rdr_datasets(filepath):
fobj = H5File(filepath)
fobj = H5File(filepath, mode='r')
rdr = dict(
telemetry=_rdrs_for_packet_dataset(_find_telemetry_group(fobj)),
diagnostic=_rdrs_for_packet_dataset(_find_diag_group(fobj)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment