def create_mapfile(img_name): """ Create a mapfile in isis from a LROC NAC Args: img_name """ (cub_name, trim_name) = file_variations(img_name, ['.cub', '.trim.cub']) isis.lronac2isis(from_=img_name, to=cub_name) isis.spiceinit(from_=cub_name) isis.trim(from_=cal_name, to=trim_name, left=45, right=45) write_file_list('map.lis', trim_name) isis.mosrange(fromlist='map.lis', to=img_name+'.map', precision=2, projection='equirectangular')
def basic_img_proc(img_name): (cub_name, cal_name) = file_variations(img_name, ['.cub', '.cal.cub']) isis.mdis2isis(from_=img_name, to=cub_name, target='MERCURY') isis.spiceinit(from_=cub_name) isis.mdiscal(from_=cub_name, to=cal_name)