Esempio n. 1
0
            save = args.save
    else:
        save = ''


    if not args.quiet:
        print("\rReading %s (%d of %d) ... " % (_file, frame+1, len(system.datamaps)), end='')
        sys.stdout.flush()

    datamap = DataMap(_file, min_mass = args.min_mass)

    if not args.quiet:
        print("Done!", end='')

    if args.type == 'flow':
        datamap.flow(
                show = args.show, save = save, dpi = args.dpi, transparent = args.transparent,
                temp = args.temp, clim = [args.Tmin, args.Tmax],
                color = args.colour, xlim = xlims, ylim = ylims,
                axis = args.axis, noaxis = args.noaxis,
                width = args.width, scale = args.scale,
                xlabel = args.xlabel, ylabel = args.ylabel, title = args.title
                )
    else:
        if args.type == 'shear':
            datamap._calc_cell_shear(args.shear_numcells, args.shear_massflow)
        draw_colourmap(datamap, args.type, xlims, ylims)

if not args.quiet:
    print()