|
12 | 12 |
|
13 | 13 | p = argparse.ArgumentParser(description="Patterns/hatches testing code for vcs gms") |
14 | 14 | p.add_argument("--source", dest="src", help="source image file") |
15 | | -p.add_argument("--gm_type", dest="gm", help="gm to test") |
| 15 | +p.add_argument("--gm_type", dest="gm", help="gm to test", default="isofill") |
16 | 16 | p.add_argument("--fill_style", dest="fill_style", help="Patterns/hatches fill style", |
17 | 17 | default="pattern", type=str) |
18 | 18 | p.add_argument("--show", dest="show", action="store_true", help="show plots on screen (no bg)", default=False) |
|
23 | 23 | p.add_argument("--lon2", dest="lon2", default=180, type=float, help="Last Longitude") |
24 | 24 | p.add_argument("--keep", dest="keep", action="store_true", help="Save image, even if baseline matches.") |
25 | 25 | p.add_argument("--threshold", dest="threshold", type=int, default=checkimage.defaultThreshold, |
26 | | - help="Threshold value for image differnces") |
| 26 | + help="Default threshold") |
| 27 | +p.add_argument("--non-contiguous", dest="contig", default=True, action="store_false", help="use non contiguous levels") |
27 | 28 |
|
28 | 29 | args = p.parse_args(sys.argv[1:]) |
29 | 30 |
|
|
46 | 47 | p.type = ptype |
47 | 48 | gm.projection = p |
48 | 49 |
|
49 | | -gm.levels = [220, 230, 240, 250, 260, 270, 280, 290, 300, 310, 320] |
| 50 | +if args.contig: |
| 51 | + gm.levels = [220, 230, 240, 250, 260, 270, 280, 290, 300, 310, 320] |
| 52 | +else: |
| 53 | + gm.levels = [[230,235],[240,245],[250,255],[260,265],[270,275], |
| 54 | + [280,285],[290,295],[300,305],[310,315],[320,325]] |
50 | 55 | gm.fillareastyle = args.fill_style |
51 | 56 | gm.fillareacolors = [242, 244, 237, 248, 250, 252, 44, 243, 139, 247] |
52 | 57 | if args.fill_style == "hatch": |
|
75 | 80 | if args.lon1 != args.lon2: |
76 | 81 | xtra["longitude"] = (args.lon1, args.lon2) |
77 | 82 | nm_xtra += "_%i_%i" % (args.lon1, args.lon2) |
| 83 | +if not args.contig: |
| 84 | + nm_xtra += "_non-contig" |
78 | 85 |
|
79 | 86 | xtra["time"] = slice(0, 1) |
80 | 87 | xtra["squeeze"] = 1 |
|
0 commit comments