Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import isce
import isceobj
from iscesys.Component.Component import Component
from isceobj.Sensor.TOPS.TOPSSwathSLCProduct import TOPSSwathSLCProduct
REFERENCE = Component.Facility('reference',
public_name = 'reference',
module = 'isceobj.Sensor.TOPS',
factory = 'createTOPSSwathSLCProduct',
args=(),
mandatory = True,
doc = 'reference of the stack to be coregistered to')
SOURCE = Component.Facility('source',
public_name = 'source',
module = 'isceobj.Sensor.TOPS',
factory = 'createTOPSSwathSLCProduct',
args=(),
mandatory = True,
doc = 'original source of the image before coregistration')
###############
'''
adding reference and source to TOPSSwathSLCProduct and name the new instance coregSwathSLCProduct.
This way we can store the source(before coregistration) and the refernce (stack reference) images.
'''
class coregSwathSLCProduct(TOPSSwathSLCProduct):
facility_list = TOPSSwathSLCProduct.facility_list + (REFERENCE, SOURCE)
def __init__(self,name=''):
super(coregSwathSLCProduct, self).__init__(name=name)
return None