Skip to content

Commit c23d9c9

Browse files
committed
new section in docs
1 parent be706b2 commit c23d9c9

17 files changed

+354
-18
lines changed

docs/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ PyOSP supports Python 3.0 or higher, and depends on `Numpy <https://numpy.org/>`
1717
Installation <user_guide/installation>
1818
Traditional curvilinear swath analysis <notebooks/fix_width_curv>
1919
Traditional circular swath analysis <notebooks/fix_radius_cir>
20+
Object-oriented swath analysis <notebooks/object_homo>
2021

2122
Indices and tables
2223
==================

docs/notebooks/object_homo.ipynb

+339-17
Large diffs are not rendered by default.

pyosp/cirsp/elev_cir.py

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ def __init__(self, center, raster, radius,
3535
super(Elev_cir,self).__init__(center, raster, radius,
3636
ng_start, ng_end,
3737
ng_stepsize, radial_stepsize)
38+
39+
def __repr__(self):
40+
return("{}".format(self.__class__.__name__))
3841

3942
def _radial_lines(self):
4043
num = (self.ng_end - self.ng_start) // self.ng_stepsize

pyosp/cirsp/orig_cir.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ def __init__(self, center, raster, radius,
3232
super(Orig_cir,self).__init__(center, raster, radius,
3333
ng_start, ng_end,
3434
ng_stepsize, radial_stepsize)
35-
35+
36+
def __repr__(self):
37+
return("{}".format(self.__class__.__name__))
38+
3639
def _radial_lines(self):
3740
num = (self.ng_end - self.ng_start) // self.ng_stepsize
3841
sector = list(np.arange(self.ng_start, self.ng_end+0.00001,

pyosp/cirsp/slope_cir.py

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def __init__(self, center, raster, radius,
3939
super(Slope_cir,self).__init__(center, raster, radius,
4040
ng_start, ng_end,
4141
ng_stepsize, radial_stepsize)
42+
43+
def __repr__(self):
44+
return("{}".format(self.__class__.__name__))
4245

4346
def _radial_lines(self):
4447
num = (self.ng_end - self.ng_start) // self.ng_stepsize

pyosp/cirsp/tpi_cir.py

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ def __init__(self, center, raster, radius,
4040
super(Tpi_cir,self).__init__(center, raster, radius,
4141
ng_start, ng_end,
4242
ng_stepsize, radial_stepsize)
43+
44+
def __repr__(self):
45+
return("{}".format(self.__class__.__name__))
4346

4447
def _radial_lines(self):
4548
num = (self.ng_end - self.ng_start) // self.ng_stepsize
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UTF-8
73 Bytes
Binary file not shown.
132 Bytes
Binary file not shown.
116 Bytes
Binary file not shown.
188 Bytes
Binary file not shown.
108 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)