Skip to content

Commit e03042f

Browse files
committed
diversity: replaced oppressive language with neutral definitions of the images that comprise an interferogram through the entire repository
1 parent edea69d commit e03042f

File tree

435 files changed

+6254
-6074
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

435 files changed

+6254
-6074
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ git reset --hard origin/master
5858

5959
```
6060
git checkout master
61-
(potentially update your local master against upstream, as described above)
61+
(potentially update your local reference against upstream, as described above)
6262
git checkout -b my_new_feature_branch
6363
6464
# do work. For example:

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ for example:
451451
>>> f = open("PICKLE/formslc")
452452
>>> import pickle
453453
>>> a = pickle.load(f)
454-
>>> o = f.getMasterOrbit()
454+
>>> o = f.getReferenceOrbit()
455455
>>> t, x, p, off = o._unpackOrbit()
456456
>>> print(t)
457457
>>> print(x)
@@ -529,7 +529,7 @@ The basic (ALOS) input file looks like this (indentation is optional):
529529
<stripmapApp>
530530
<component name="stripmapApp">
531531
<property name="sensor name">ALOS</property>
532-
<component name="Master">
532+
<component name="Reference">
533533
<property name="IMAGEFILE">
534534
/a/b/c/20070215/IMG-HH-ALPSRP056480670-H1.0__A
535535
</property>
@@ -538,7 +538,7 @@ The basic (ALOS) input file looks like this (indentation is optional):
538538
</property>
539539
<property name="OUTPUT">20070215</property>
540540
</component>
541-
<component name="Slave">
541+
<component name="Secondary">
542542
<property name="IMAGEFILE">
543543
/a/b/c/20061231/IMG-HH-ALPSRP049770670-H1.0__A
544544
</property>
@@ -564,7 +564,7 @@ properties and other components that are configurable. The property tags
564564
give the values of a single variable in the ISCE code. One of the properties
565565
defined in stripmapApp.py is the "sensor name" property. In the above example
566566
it is given the value ALOS. In order to run stripmapApp.py two images need to
567-
be specified. These are defined as components named 'Master' and 'Slave'.
567+
be specified. These are defined as components named 'Reference' and 'Secondary'.
568568
These components have properties named 'IMAGEFILE', 'LEADERFILE', and 'OUTPUT'
569569
with the values given in the above example.
570570

@@ -587,10 +587,10 @@ between three files as follows:
587587
<stripmapApp>
588588
<component name="insar">
589589
<property name="Sensor name">ALOS</property>
590-
<component name="master">
590+
<component name="reference">
591591
<catalog>20070215.xml</catalog>
592592
</component>
593-
<component name="slave">
593+
<component name="secondary">
594594
<catalog>20061231.xml</catalog>
595595
</component>
596596
</component>
@@ -600,7 +600,7 @@ between three files as follows:
600600
#### 20070215.xml
601601

602602
```xml
603-
<component name="Master">
603+
<component name="Reference">
604604
<property name="IMAGEFILE">
605605
/a/b/c/20070215/IMG-HH-ALPSRP056480670-H1.0__A
606606
</property>
@@ -614,7 +614,7 @@ between three files as follows:
614614
#### 20061231.xml
615615

616616
```xml
617-
<component name="Slave">
617+
<component name="Secondary">
618618
<property name="IMAGEFILE">
619619
/a/b/c/20061231/IMG-HH-ALPSRP049770670-H1.0__A
620620
</property>
@@ -636,7 +636,7 @@ The inputs are Sentinel GRD zipfiles
636636
<property name="epsg id">32618</property>
637637
<property name="geocode spacing">100</property>
638638
<property name="geocode interpolation method">bilinear</property>
639-
<component name="master">
639+
<component name="reference">
640640
<property name="safe">$dir$/rtcApp/data/S1A_IW_GRDH_1SDV_20181221T225104_20181221T225129_025130_02C664_B46C.zip</property>
641641
<property name="orbit directory">$dir$/orbits</property>
642642
<property name="output directory">$dir$/rtcApp/output</property>
@@ -679,7 +679,7 @@ This line creates an instance of the class Insar (that is given the family name
679679
Other applications could be created that could make several different instances
680680
of the Insar. Each instance would have the family name "insar" and would be
681681
given a unique instance name. This is possible for every component. In the
682-
above example xml files instances name "Master" and "Slave" of a family named
682+
above example xml files instances name "Reference" and "Secondary" of a family named
683683
"alos" are created.
684684

685685
### Component Configuration Files: Locations, Names, Priorities
@@ -710,23 +710,23 @@ the filename can be anything you choose. Configuration parameters can also be
710710
entered directly on the command line as in the following example:
711711

712712
```bash
713-
> stripmapApp.py insar.master.output=master_c.raw
713+
> stripmapApp.py insar.reference.output=reference_c.raw
714714
```
715715

716716
This example indicates that the variable named 'output' of the Component
717-
named 'master' belonging to the Component (or Application) named 'insar'
718-
will be given the name "master\_c.raw".
717+
named 'reference' belonging to the Component (or Application) named 'insar'
718+
will be given the name "reference\_c.raw".
719719

720720
The priority sequence on the command line goes from lowest priority on the left
721721
to highest priority on the right. So, if we use the command line,
722722

723723
```bash
724-
> stripmapApp.py myInputFile.xml insar.master.output=master_c.raw
724+
> stripmapApp.py myInputFile.xml insar.reference.output=reference_c.raw
725725
```
726726

727-
where the myInputFile.xml file also gives a value for the insar master output
728-
file as master\_d.raw, then the one defined on the right will win, i.e.,
729-
master\_c.raw.
727+
where the myInputFile.xml file also gives a value for the insar reference output
728+
file as reference\_d.raw, then the one defined on the right will win, i.e.,
729+
reference\_c.raw.
730730

731731
(2) The next priority location is the local directory in which stripmapApp.py is
732732
executed. Any xml file placed in this directory named according to either the
@@ -799,16 +799,16 @@ will see that the call to \_\_init\_\_ passes 'family=self.class.family' and
799799
'name=name' to the Component constructor (super class of Ampcor). The family
800800
name is given as "nstage" on line 265. The instance name is passed as the
801801
value of the 'name=name' and was passed to it from whatever program created it.
802-
Nstage is created in components/isceobj/StripmapProc/runRefineSlaveTiming.py where
803-
it is given the name 'master_offset1' on line 35. If you are setting a parameter that
802+
Nstage is created in components/isceobj/StripmapProc/runRefineSecondaryTiming.py where
803+
it is given the name 'reference_offset1' on line 35. If you are setting a parameter that
804804
should be the same for all uses of Ampcor, then you can use the
805805
family name 'ampcor' for the name of the xml file as 'ampcor.xml'. It is more
806-
likely that you will want to use the instance name 'master\_offset1.xml'
806+
likely that you will want to use the instance name 'reference\_offset1.xml'
807807
Use the family name 'ampcor' for the component tag 'name'.
808808

809809
Example for SLC matching use of Ampcor:
810810

811-
Filename: master\_offset1.xml:
811+
Filename: reference\_offset1.xml:
812812

813813
```xml
814814
<dummy>

applications/ISCE2ROIPAC.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def __init__(self, xmlfile='insarProc.xml'):
2626
def raw_rsc(self, key=None, write=False):
2727
'''Write out the RSC files for Raw data.'''
2828

29-
if key not in ['master', 'slave']:
30-
raise ValueError('Raw Files can only be written for master or slave.')
29+
if key not in ['reference', 'secondary']:
30+
raise ValueError('Raw Files can only be written for reference or secondary.')
3131

3232

3333
rsc = OrderedDict()
@@ -137,8 +137,8 @@ def slc_rsc(self, key=None, raw=None, write=False):
137137
Create rsc files for all the interferograms generated by ISCE.
138138
'''
139139

140-
if key not in ['master', 'slave']:
141-
raise ValueError('SLC files can only be written for master or slave.')
140+
if key not in ['reference', 'secondary']:
141+
raise ValueError('SLC files can only be written for reference or secondary.')
142142

143143
if raw is None:
144144
rsc = self.raw_rsc(key=key, write=False)
@@ -221,8 +221,8 @@ def slc_rsc(self, key=None, raw=None, write=False):
221221
'''Run the test on input xml file.'''
222222

223223
converter = insarProcXML()
224-
master_raw_rsc = converter.raw_rsc(key='master', write=True)
225-
slave_raw_rsc = converter.raw_rsc(key='slave', write=True)
224+
reference_raw_rsc = converter.raw_rsc(key='reference', write=True)
225+
secondary_raw_rsc = converter.raw_rsc(key='secondary', write=True)
226226

227-
master_slc_rsc = converter.slc_rsc(raw=master_raw_rsc, key='master', write=True)
228-
slave_slc_rsc = converter.slc_rsc(raw=slave_raw_rsc, key='slave', write=True)
227+
reference_slc_rsc = converter.slc_rsc(raw=reference_raw_rsc, key='reference', write=True)
228+
secondary_slc_rsc = converter.slc_rsc(raw=secondary_raw_rsc, key='secondary', write=True)

applications/PrepareStack.py

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def computeLookAngle(self):
7878
self.slook = np.sqrt(1-self.clook**2)
7979
# print('Estimated Look Angle: %3.2f degrees'%(np.arccos(self.clook)*180.0/np.pi))
8080

81-
def getBaseline(self, slave):
81+
def getBaseline(self, secondary):
8282
'''Compute baseline between current object and another orbit object.'''
8383

8484
ind = np.int(self.nvec/2)
@@ -93,17 +93,17 @@ def getBaseline(self, slave):
9393
vvec = np.cross(crp, rvec)
9494
mvel = np.linalg.norm(mvel)
9595

96-
ind = np.int(slave.nvec/2) #First guess
97-
spos = np.array(slave.pos[ind])
98-
svel = np.array(slave.vel[ind])
96+
ind = np.int(secondary.nvec/2) #First guess
97+
spos = np.array(secondary.pos[ind])
98+
svel = np.array(secondary.vel[ind])
9999
svel = np.linalg.norm(svel)
100100

101101
dx = spos - mpos;
102-
z_offset = slave.prf*np.dot(dx, vvec)/mvel
102+
z_offset = secondary.prf*np.dot(dx, vvec)/mvel
103103

104104
ind = np.int(ind - z_offset) #Refined estimate
105-
spos = slave.pos[ind]
106-
svel = slave.vel[ind]
105+
spos = secondary.pos[ind]
106+
svel = secondary.vel[ind]
107107
svel = np.linalg.norm(svel)
108108

109109
dx = spos-mpos
@@ -169,16 +169,16 @@ def __call__(self, parser, args, values, option_string=None):
169169
Days = np.zeros(nSar)
170170

171171
#######Setting the first scene as temporary reference.
172-
master = Orbits[0]
172+
reference = Orbits[0]
173173

174174

175-
Dopplers[0] = master.fd
176-
Days[0] = master.dt.toordinal()
175+
Dopplers[0] = reference.fd
176+
Days[0] = reference.dt.toordinal()
177177
for k in xrange(1,nSar):
178-
slave = Orbits[k]
179-
Bperp[k] = master.getBaseline(slave)
180-
Dopplers[k] = slave.fd
181-
Days[k] = slave.dt.toordinal()
178+
secondary = Orbits[k]
179+
Bperp[k] = reference.getBaseline(secondary)
180+
Dopplers[k] = secondary.fd
181+
Days[k] = secondary.dt.toordinal()
182182

183183

184184
print("************************************")
@@ -193,7 +193,7 @@ def __call__(self, parser, args, values, option_string=None):
193193

194194
geomRho = (1-np.clip(np.abs(Bperp[:,None]-Bperp[None,:])/inps.Bcrit, 0., 1.))
195195
tempRho = np.exp(-1.0*np.abs(Days[:,None]-Days[None,:])/inps.Tau)
196-
dopRho = (np.abs(Dopplers[:,None] - Dopplers[None,:])/ master.prf) < inps.dop
196+
dopRho = (np.abs(Dopplers[:,None] - Dopplers[None,:])/ reference.prf) < inps.dop
197197

198198
Rho = geomRho * tempRho * dopRho
199199
for kk in xrange(nSar):
@@ -205,17 +205,17 @@ def __call__(self, parser, args, values, option_string=None):
205205

206206
####Currently sorting on average coherence.
207207

208-
masterChoice = np.argsort(avgRho)
209-
masterOrbit = Orbits[masterChoice[0]]
210-
masterBperp = Bperp[masterChoice[0]]
208+
referenceChoice = np.argsort(avgRho)
209+
referenceOrbit = Orbits[referenceChoice[0]]
210+
referenceBperp = Bperp[referenceChoice[0]]
211211

212212

213213
print('*************************************')
214-
print('Ranking for Master Scene Selection: ')
214+
print('Ranking for Reference Scene Selection: ')
215215
print('**************************************')
216216
print('Rank Index Date nViable Avg. Coh.' )
217217
for kk in xrange(nSar):
218-
ind = masterChoice[kk]
218+
ind = referenceChoice[kk]
219219
print('{0:>3} {1:>3} {2:>10} {3:>4} {4:>2.3f}'.format(kk+1, ind+1, Orbits[ind].dt.strftime('%Y-%m-%d'), numViable[ind], avgRho[ind]))
220220

221221
print('***************************************')
@@ -234,31 +234,31 @@ def __call__(self, parser, args, values, option_string=None):
234234

235235
[ii,jj] = np.where(Rho > inps.cThresh)
236236

237-
print('Master Slave Bperp Deltat')
237+
print('Reference Secondary Bperp Deltat')
238238
for mind, sind in itertools.izip(ii,jj):
239-
master = Orbits[mind]
240-
slave = Orbits[sind]
241-
if master.dt > slave.dt:
242-
print('{0:>10} {1:>10} {2:>4.2f} {3:>4.2f}'.format(master.dt.strftime('%Y-%m-%d'), slave.dt.strftime('%Y-%m-%d'), Bperp[mind]-Bperp[sind], Days[mind] - Days[sind]))
243-
xmlname = '%s/insar_%s_%s.xml'%(inps.dirname, master.dt.strftime('%Y%m%d'), slave.dt.strftime('%Y%m%d'))
239+
reference = Orbits[mind]
240+
secondary = Orbits[sind]
241+
if reference.dt > secondary.dt:
242+
print('{0:>10} {1:>10} {2:>4.2f} {3:>4.2f}'.format(reference.dt.strftime('%Y-%m-%d'), secondary.dt.strftime('%Y-%m-%d'), Bperp[mind]-Bperp[sind], Days[mind] - Days[sind]))
243+
xmlname = '%s/insar_%s_%s.xml'%(inps.dirname, reference.dt.strftime('%Y%m%d'), secondary.dt.strftime('%Y%m%d'))
244244

245-
# sarxml.sartoinsarXML(master.filename, slave.filename, base=inps.base, out=xmlname)
245+
# sarxml.sartoinsarXML(reference.filename, secondary.filename, base=inps.base, out=xmlname)
246246

247247

248248
print('***************************************')
249249

250-
#######Currently picks master peg point.
250+
#######Currently picks reference peg point.
251251
print('***************************************')
252-
commonPeg = masterOrbit.peg
252+
commonPeg = referenceOrbit.peg
253253
print('Common peg point: ')
254254
print(commonPeg)
255-
print('Bperp Range: [%f , %f] '%(Bperp.min()-masterBperp, Bperp.max()-masterBperp))
255+
print('Bperp Range: [%f , %f] '%(Bperp.min()-referenceBperp, Bperp.max()-referenceBperp))
256256

257257
######Choose median doppler
258258
commonDop = np.median(Dopplers)
259259
maxDop = np.max(Dopplers)
260260
minDop = np.min(Dopplers)
261-
varDop = np.max(np.abs(Dopplers-commonDop))/masterOrbit.prf
261+
varDop = np.max(np.abs(Dopplers-commonDop))/referenceOrbit.prf
262262

263263
print('Common Doppler: ', commonDop)
264264
print('Doppler Range: [%f, %f]'%(minDop, maxDop))

0 commit comments

Comments
 (0)