[Bugfix] Some typo.
This commit is contained in:
		
							parent
							
								
									6722024749
								
							
						
					
					
						commit
						f7cada6d09
					
				| @ -905,7 +905,7 @@ def getQualitiesfromxml(xmlnames, ErrorsP, ErrorsS, plotflag=1): | |||||||
|                 mstation = Pick.waveform_id.station_code |                 mstation = Pick.waveform_id.station_code | ||||||
|                 mstation_ext = mstation + '_' |                 mstation_ext = mstation + '_' | ||||||
|                 for mpick in arrivals_copy: |                 for mpick in arrivals_copy: | ||||||
|                     phase = identifyPhase(loopIdentifyPhase(Pick.phase_hint))) |                     phase = identifyPhase(loopIdentifyPhase(Pick.phase_hint)) | ||||||
|                     if phase == 'P': |                     if phase == 'P': | ||||||
|                         if ((mpick.waveform_id.station_code == mstation) or \ |                         if ((mpick.waveform_id.station_code == mstation) or \ | ||||||
|                                     (mpick.waveform_id.station_code == mstation_ext)) and \ |                                     (mpick.waveform_id.station_code == mstation_ext)) and \ | ||||||
| @ -925,7 +925,7 @@ def getQualitiesfromxml(xmlnames, ErrorsP, ErrorsS, plotflag=1): | |||||||
|             print("Found manual as well as automatic picks, prefered the {} manual ones!".format(lendiff)) |             print("Found manual as well as automatic picks, prefered the {} manual ones!".format(lendiff)) | ||||||
| 
 | 
 | ||||||
|         for Pick in arrivals_copy: |         for Pick in arrivals_copy: | ||||||
|             phase = identifyPhase(loopIdentifyPhase(Pick.phase_hint))) |             phase = identifyPhase(loopIdentifyPhase(Pick.phase_hint)) | ||||||
|             if phase == 'P': |             if phase == 'P': | ||||||
|                 Pqual = getQualityFromUncertainty(Pick.time_errors.uncertainty, ErrorsP) |                 Pqual = getQualityFromUncertainty(Pick.time_errors.uncertainty, ErrorsP) | ||||||
|                 if Pqual == 0: |                 if Pqual == 0: | ||||||
| @ -936,7 +936,7 @@ def getQualitiesfromxml(xmlnames, ErrorsP, ErrorsS, plotflag=1): | |||||||
|                     Pw2.append(Pick.time_errors.uncertainty) |                     Pw2.append(Pick.time_errors.uncertainty) | ||||||
|                 elif Pqual == 3: |                 elif Pqual == 3: | ||||||
|                     Pw3.append(Pick.time_errors.uncertainty) |                     Pw3.append(Pick.time_errors.uncertainty) | ||||||
|                 elif Pqual == 4 |                 elif Pqual == 4: | ||||||
|                     Pw4.append(Pick.time_errors.uncertainty) |                     Pw4.append(Pick.time_errors.uncertainty) | ||||||
|             elif phase == 'S': |             elif phase == 'S': | ||||||
|                 Squal = getQualityFromUncertainty(Pick.time_errors.uncertainty, ErrorsS) |                 Squal = getQualityFromUncertainty(Pick.time_errors.uncertainty, ErrorsS) | ||||||
| @ -948,7 +948,7 @@ def getQualitiesfromxml(xmlnames, ErrorsP, ErrorsS, plotflag=1): | |||||||
|                     Sw2.append(Pick.time_errors.uncertainty) |                     Sw2.append(Pick.time_errors.uncertainty) | ||||||
|                 elif Squal == 3: |                 elif Squal == 3: | ||||||
|                     Sw3.append(Pick.time_errors.uncertainty) |                     Sw3.append(Pick.time_errors.uncertainty) | ||||||
|                 elif Squal == 4 |                 elif Squal == 4: | ||||||
|                     Sw4.append(Pick.time_errors.uncertainty) |                     Sw4.append(Pick.time_errors.uncertainty) | ||||||
|             else: |             else: | ||||||
|                 print("Phase hint not defined for picking!") |                 print("Phase hint not defined for picking!") | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user