| 1 | ############################################################################### |
| 2 | # pytest_downsample.py: 100 m) |
| 3 | # Author(s): [email protected] |
| 4 | # Copyright (c) 2016-2019 European Union (Joint Research Centre) |
| 5 | # License EUPLv1.2 |
| 6 | # |
| 7 | # This file is part of jiplib |
| 8 | ############################################################################### |
| 9 | |
| 10 | # History |
| 11 | # 2017/10/23 - Created by Pieter Kempeneers ([email protected]) |
| 12 | # Change log |
| 13 | |
| 14 | |
| 15 | import argparse |
| 16 | import os |
| 17 | import jiplib as jl |
| 18 | |
| 19 | parser=argparse.ArgumentParser() |
| 20 | parser.add_argument("-input","--input",help="Path of the input file",dest="input",required=True,type=str) |
| 21 | args = parser.parse_args() |
| 22 | |
| 23 | # jim0=jl.createJim(filename=args.input,dx=1000,dy=1000) |
| 24 | jim0=jl.Jim({'filename':args.input,'dx':1000,'dy':1000}) |
| 25 | if jim0.nrOfCol() == 256: |
| 26 | print("Success: createJim with downsample") |
| 27 | else: |
| 28 | print("Failed: createJim with downsample, ncol:",jim0.nrOfCol()) |
| 29 |