Commit ed03ae04 authored by xu_mijian's avatar xu_mijian

fix bugs about loading files

parent 7ef77a39
Pipeline #746 failed with stage
in 54 seconds
......@@ -51,7 +51,10 @@ Syntax: read filename dx dy [\'geo\']
dy = float(arg_lst[2])
to_geo = False
elif len(arg_lst) == 4:
if arg_lst[4] == 'geo':
if arg_lst[3] == 'geo':
filename = arg_lst[0]
dx = float(arg_lst[1])
dy = float(arg_lst[2])
to_geo = True
else:
print('Error: Specify \'geo\' to convert spherical coordinate to geo coordinate')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment