Export for VELEST-cnv format.
| 
		 Before Width: | Height: | Size: 48 KiB  | 
| 
		 Before Width: | Height: | Size: 7.1 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/delete.png
									
									
									
									
									
								
							
							
						
						| 
		 Before Width: | Height: | Size: 5.0 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/filter.png
									
									
									
									
									
								
							
							
						
						| 
		 Before Width: | Height: | Size: 4.6 KiB  | 
| 
		 Before Width: | Height: | Size: 14 KiB  | 
| 
		 Before Width: | Height: | Size: 7.5 KiB  | 
| 
		 Before Width: | Height: | Size: 6.5 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/pylot.ico
									
									
									
									
									
								
							
							
						
						| 
		 Before Width: | Height: | Size: 2.2 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/pylot.png
									
									
									
									
									
								
							
							
						
						| 
		 Before Width: | Height: | Size: 22 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/sync.png
									
									
									
									
									
								
							
							
						
						| 
		 Before Width: | Height: | Size: 4.2 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/zoom_0.png
									
									
									
									
									
								
							
							
						
						| 
		 Before Width: | Height: | Size: 6.9 KiB  | 
| 
		 Before Width: | Height: | Size: 7.0 KiB  | 
| 
		 Before Width: | Height: | Size: 6.9 KiB  | 
@ -187,7 +187,7 @@ class Data(object):
 | 
			
		||||
                self.get_evt_data().write(fnout + fnext, format=evtformat)
 | 
			
		||||
 | 
			
		||||
        # try exporting event via ObsPy
 | 
			
		||||
        elif fnext == '.obs':
 | 
			
		||||
        else:
 | 
			
		||||
            # check for stations picked automatically as well as manually
 | 
			
		||||
            # Prefer manual picks!
 | 
			
		||||
            evtdata_copy = self.get_evt_data().copy()
 | 
			
		||||
@ -202,23 +202,29 @@ class Data(object):
 | 
			
		||||
                          evtdata_copy.picks[k].method_id == 'auto':
 | 
			
		||||
                          del evtdata_copy.picks[k]
 | 
			
		||||
                          break
 | 
			
		||||
                
 | 
			
		||||
            if fnext == '.obs':
 | 
			
		||||
               try:
 | 
			
		||||
                   evtdata_copy.write(fnout + fnext, format=evtformat)
 | 
			
		||||
                   # write header afterwards
 | 
			
		||||
                   evid = str(evtdata_org.resource_id).split('/')[1]
 | 
			
		||||
                   header = '# EQEVENT:  Label: EQ%s  Loc:  X 0.00  Y 0.00  Z 10.00  OT 0.00 \n' % evid
 | 
			
		||||
                   nllocfile = open(fnout + fnext)
 | 
			
		||||
                   l = nllocfile.readlines()
 | 
			
		||||
                   nllocfile.close()
 | 
			
		||||
                   l.insert(0, header)
 | 
			
		||||
                   nllocfile = open(fnout + fnext, 'w')
 | 
			
		||||
                   nllocfile.write("".join(l))
 | 
			
		||||
                   nllocfile.close()
 | 
			
		||||
               except KeyError as e:
 | 
			
		||||
                   raise KeyError('''{0} export format
 | 
			
		||||
                                     not implemented: {1}'''.format(evtformat, e))
 | 
			
		||||
            if fnext == '.cnv':
 | 
			
		||||
               try:
 | 
			
		||||
                   evtdata_org.write(fnout + fnext, format=evtformat)
 | 
			
		||||
               except KeyError as e:
 | 
			
		||||
                   raise KeyError('''{0} export format
 | 
			
		||||
                                     not implemented: {1}'''.format(evtformat, e))
 | 
			
		||||
 | 
			
		||||
            try:
 | 
			
		||||
                evtdata_copy.write(fnout + fnext, format=evtformat)
 | 
			
		||||
                # write header afterwards
 | 
			
		||||
                evid = str(evtdata_org.resource_id).split('/')[1]
 | 
			
		||||
                header = '# EQEVENT:  Label: EQ%s  Loc:  X 0.00  Y 0.00  Z 10.00  OT 0.00 \n' % evid
 | 
			
		||||
                nllocfile = open(fnout + fnext)
 | 
			
		||||
                l = nllocfile.readlines()
 | 
			
		||||
                nllocfile.close()
 | 
			
		||||
                l.insert(0, header)
 | 
			
		||||
                nllocfile = open(fnout + fnext, 'w')
 | 
			
		||||
                nllocfile.write("".join(l))
 | 
			
		||||
                nllocfile.close()
 | 
			
		||||
            except KeyError as e:
 | 
			
		||||
                raise KeyError('''{0} export format
 | 
			
		||||
                                  not implemented: {1}'''.format(evtformat, e))
 | 
			
		||||
 | 
			
		||||
    def getComp(self):
 | 
			
		||||
        """
 | 
			
		||||
 | 
			
		||||