@@ -17,17 +17,15 @@ namespace py = pybind11;
17
17
void addbinding (py::class_<Topo> & pyRdr2Geo)
18
18
{
19
19
pyRdr2Geo
20
- .def (py::init ([](const isce3::product::RadarGridParameters & radar_grid,
21
- const isce3::core::Orbit & orbit,
22
- const isce3::core::Ellipsoid & ellipsoid,
23
- const isce3::core::LUT2d<double > & doppler,
24
- const double threshold,
25
- const int numiter,
26
- const int extraiter,
27
- const dataInterpMethod dem_interp_method,
28
- const int epsg_out,
29
- const bool compute_mask)
30
- {
20
+ .def (py::init ([](const isce3::product::RadarGridParameters&
21
+ radar_grid,
22
+ const isce3::core::Orbit& orbit,
23
+ const isce3::core::Ellipsoid& ellipsoid,
24
+ const isce3::core::LUT2d<double >& doppler,
25
+ const double threshold, const int numiter,
26
+ const int extraiter,
27
+ const dataInterpMethod dem_interp_method,
28
+ const int epsg_out, const bool compute_mask) {
31
29
auto rdr2geo_obj = Topo (radar_grid, orbit, ellipsoid, doppler);
32
30
rdr2geo_obj.threshold (threshold);
33
31
rdr2geo_obj.numiter (numiter);
@@ -37,41 +35,66 @@ void addbinding(py::class_<Topo> & pyRdr2Geo)
37
35
rdr2geo_obj.computeMask (compute_mask);
38
36
return rdr2geo_obj;
39
37
}),
40
- py::arg (" radar_grid" ),
41
- py::arg (" orbit" ),
42
- py::arg (" ellipsoid" ),
43
- py::arg (" doppler" ) = isce3::core::LUT2d<double >(),
44
- py::arg (" threshold" ) = 0.05 ,
45
- py::arg (" numiter" ) = 25 ,
46
- py::arg (" extraiter" ) = 10 ,
47
- py::arg (" dem_interp_method" ) = isce3::core::BIQUINTIC_METHOD,
48
- py::arg (" epsg_out" ) = 4326 ,
49
- py::arg (" compute_mask" ) = true )
50
- .def (" topo" , py::overload_cast<isce3::io::Raster &, const std::string &>
51
- (&Topo::topo),
52
- py::arg (" dem_raster" ),
53
- py::arg (" outdir" ))
54
- .def_property_readonly (" orbit" , &Topo::orbit)
55
- .def_property_readonly (" ellipsoid" , &Topo::ellipsoid)
56
- .def_property_readonly (" doppler" , &Topo::doppler)
57
- .def_property_readonly (" radar_grid" , &Topo::radarGridParameters)
58
- .def_property (" threshold" ,
59
- py::overload_cast<>(&Topo::threshold, py::const_),
60
- py::overload_cast<double >(&Topo::threshold))
61
- .def_property (" numiter" ,
62
- py::overload_cast<>(&Topo::numiter, py::const_),
63
- py::overload_cast<int >(&Topo::numiter))
64
- .def_property (" extraiter" ,
65
- py::overload_cast<>(&Topo::extraiter, py::const_),
66
- py::overload_cast<int >(&Topo::extraiter))
67
- .def_property (" dem_interp_method" ,
68
- py::overload_cast<>(&Topo::demMethod, py::const_),
69
- py::overload_cast<dataInterpMethod>(&Topo::demMethod))
70
- .def_property (" epsg_out" ,
71
- py::overload_cast<>(&Topo::epsgOut, py::const_),
72
- py::overload_cast<int >(&Topo::epsgOut))
73
- .def_property (" compute_mask" ,
74
- py::overload_cast<>(&Topo::computeMask, py::const_),
75
- py::overload_cast<bool >(&Topo::computeMask))
76
- ;
38
+ py::arg (" radar_grid" ), py::arg (" orbit" ),
39
+ py::arg (" ellipsoid" ),
40
+ py::arg (" doppler" ) = isce3::core::LUT2d<double >(),
41
+ py::arg (" threshold" ) = 0.05 , py::arg (" numiter" ) = 25 ,
42
+ py::arg (" extraiter" ) = 10 ,
43
+ py::arg (" dem_interp_method" ) =
44
+ isce3::core::BIQUINTIC_METHOD,
45
+ py::arg (" epsg_out" ) = 4326 , py::arg (" compute_mask" ) = true )
46
+ .def (" topo" ,
47
+ py::overload_cast<isce3::io::Raster&, const std::string&>(
48
+ &Topo::topo),
49
+ py::arg (" dem_raster" ), py::arg (" outdir" ))
50
+ .def (" topo" ,
51
+ py::overload_cast<isce3::io::Raster&, isce3::io::Raster&,
52
+ isce3::io::Raster&, isce3::io::Raster&,
53
+ isce3::io::Raster&, isce3::io::Raster&,
54
+ isce3::io::Raster&, isce3::io::Raster&,
55
+ isce3::io::Raster&, isce3::io::Raster&>(
56
+ &Topo::topo),
57
+ py::arg (" dem_raster" ), py::arg (" x_raster" ),
58
+ py::arg (" y_raster" ), py::arg (" height_raster" ),
59
+ py::arg (" incidence_angle_raster" ),
60
+ py::arg (" heading_angle_raster" ),
61
+ py::arg (" local_incidence_angle_raster" ),
62
+ py::arg (" local_Psi_raster" ),
63
+ py::arg (" simulated_amplitude_raster" ),
64
+ py::arg (" shadow_layover_raster" ))
65
+ .def (" topo" ,
66
+ py::overload_cast<isce3::io::Raster&, isce3::io::Raster&,
67
+ isce3::io::Raster&, isce3::io::Raster&,
68
+ isce3::io::Raster&, isce3::io::Raster&,
69
+ isce3::io::Raster&, isce3::io::Raster&,
70
+ isce3::io::Raster&>(&Topo::topo),
71
+ py::arg (" dem_raster" ), py::arg (" x_raster" ),
72
+ py::arg (" y_raster" ), py::arg (" height_raster" ),
73
+ py::arg (" incidence_angle_raster" ),
74
+ py::arg (" heading_angle_raster" ),
75
+ py::arg (" local_incidence_angle_raster" ),
76
+ py::arg (" local_Psi_raster" ),
77
+ py::arg (" simulated_amplitude_raster" ))
78
+ .def_property_readonly (" orbit" , &Topo::orbit)
79
+ .def_property_readonly (" ellipsoid" , &Topo::ellipsoid)
80
+ .def_property_readonly (" doppler" , &Topo::doppler)
81
+ .def_property_readonly (" radar_grid" , &Topo::radarGridParameters)
82
+ .def_property (" threshold" ,
83
+ py::overload_cast<>(&Topo::threshold, py::const_),
84
+ py::overload_cast<double >(&Topo::threshold))
85
+ .def_property (" numiter" ,
86
+ py::overload_cast<>(&Topo::numiter, py::const_),
87
+ py::overload_cast<int >(&Topo::numiter))
88
+ .def_property (" extraiter" ,
89
+ py::overload_cast<>(&Topo::extraiter, py::const_),
90
+ py::overload_cast<int >(&Topo::extraiter))
91
+ .def_property (" dem_interp_method" ,
92
+ py::overload_cast<>(&Topo::demMethod, py::const_),
93
+ py::overload_cast<dataInterpMethod>(&Topo::demMethod))
94
+ .def_property (" epsg_out" ,
95
+ py::overload_cast<>(&Topo::epsgOut, py::const_),
96
+ py::overload_cast<int >(&Topo::epsgOut))
97
+ .def_property (" compute_mask" ,
98
+ py::overload_cast<>(&Topo::computeMask, py::const_),
99
+ py::overload_cast<bool >(&Topo::computeMask));
77
100
}
0 commit comments