bc1dcbae0bf198f3725dbcf4d3b9bcc4d63dc814,mapping/viewshed2view.py,,,#,262

Before Change


        print("peaknames file should be a GNIS CSV file with | separator")
        sys.exit(1)

    demfile = sys.argv[1]
    lat = float(sys.argv[2])
    lon = float(sys.argv[3])

    if len(sys.argv) > 4:
        peak_gnis = sys.argv[4]
    else:
        peak_gnis = None

    viewshed2view(demfile, lon, lat, peak_gnis=peak_gnis)


After Change




if __name__ == "__main__":
    parser = argparse.ArgumentParser(description=""
        Convert a viewshed file to a 360-degree view from a given point.

Coordinates are specified in decimal degrees,
                                     formatter_class=
                                         argparse.RawTextHelpFormatter)

    parser.add_argument("-p", "--peaknames", dest="peakfile",
                        help="a GNIS CSV file with | separator")

    // Required arguments:
    parser.add_argument("viewshed"
                        , help="Viewshed file; GeoTIF format recommended")
    parser.add_argument("lat", type=float, help="latitude")
    parser.add_argument("lon", type=float, help="longitude")

    args = parser.parse_args(sys.argv[1:])

    viewshed2view(args.viewshed, args.lon, args.lat, peak_gnis=args.peakfile)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: akkana/scripts
Commit Name: bc1dcbae0bf198f3725dbcf4d3b9bcc4d63dc814
Time: 2019-07-19
Author: akkana@shallowsky.com
File Name: mapping/viewshed2view.py
Class Name:
Method Name:


Project Name: akkana/scripts
Commit Name: bc1dcbae0bf198f3725dbcf4d3b9bcc4d63dc814
Time: 2019-07-19
Author: akkana@shallowsky.com
File Name: mapping/viewshed2view.py
Class Name:
Method Name:


Project Name: LCAV/pyroomacoustics
Commit Name: f2e989565ab89af58dff63ab3cf89fe63af38327
Time: 2020-06-02
Author: fakufaku@gmail.com
File Name: examples/raytracing.py
Class Name:
Method Name:


Project Name: akkana/scripts
Commit Name: df00aa16a20b8502a9b4b2ec7783316370f53e18
Time: 2020-07-10
Author: akkana@shallowsky.com
File Name: comet.py
Class Name:
Method Name: