-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
webgisdeveloper
committed
Feb 1, 2022
1 parent
c2e92d8
commit 1bf5705
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
""" | ||
getInterpolation.py | ||
-- GPS Interpolation | ||
-- https://github.com/GeoGateway/JupyterNotebooks/tree/master/GPS_interpolation | ||
""" | ||
|
||
import argparse | ||
|
||
def _getParser(): | ||
parser = argparse.ArgumentParser() | ||
|
||
parser.add_argument('-dt', '--datatable', action='store', dest='datatable',required=True,help='data table in csv') | ||
parser.add_argument('-gs','--gridspaceing', action='store', dest='grid_space',required=False,help='Grid Spacing',default=0.018) | ||
parser.add_argument('-it','--interpolation_type', action='store', dest='interpolation_type',required=False,help='Interpolation type', | ||
choices=['linear', 'gaussian', 'power','exponential', 'hole-effect', 'spherical'], default='linear') | ||
parser.add_argument('-az','--azimuth', action='store', dest='azimuth',required=False,help='Azimuth', default=-5) | ||
parser.add_argument('-ea','--elevationangle', action='store', dest='elevation',required=False,help='Elevation Angle', default=60) | ||
|
||
return parser | ||
|
||
def main(): | ||
|
||
# Read command line arguments | ||
parser = _getParser() | ||
results = parser.parse_args() | ||
getInterpolation(results) | ||
|
||
def getInterpolation(results): | ||
"""run interpolation""" | ||
print(results) | ||
|
||
if __name__ == '__main__': | ||
main() |