feature/ISL-4832-przepisac-catalogeditor-do-pythona #2
@@ -20,8 +20,8 @@ def find_catalog_column(catalog, field_name):
 | 
			
		||||
    Finds the index of a column in the catalog based on its field name.
 | 
			
		||||
 | 
			
		||||
    Parameters:
 | 
			
		||||
        catalog (np.ndarray): A structured NumPy array representing the catalog, where each row
 | 
			
		||||
                              corresponds to a field with attributes like 'field', 'val', etc.
 | 
			
		||||
        catalog (np.ndarray): A structured NumPy array representing the catalog.
 | 
			
		||||
                              https://docs.cyfronet.pl/display/ISDOC/Seismic+catalog
 | 
			
		||||
        field_name (str): The field name of the entry to search for.
 | 
			
		||||
 | 
			
		||||
    Returns:
 | 
			
		||||
 
 | 
			
		||||
@@ -23,8 +23,8 @@ def sort_by_time(catalog):
 | 
			
		||||
    Sorts the given catalog based on the 'Time' column.
 | 
			
		||||
 | 
			
		||||
    Parameters:
 | 
			
		||||
        catalog (np.ndarray): A structured NumPy array representing the catalog, where each row
 | 
			
		||||
                              contains fields like 'Time', 'ID', and others.
 | 
			
		||||
        catalog (np.ndarray): A structured NumPy array representing the catalog.
 | 
			
		||||
                              https://docs.cyfronet.pl/display/ISDOC/Seismic+catalog
 | 
			
		||||
 | 
			
		||||
    Returns:
 | 
			
		||||
        np.ndarray: The sorted catalog, where rows in 'val' fields are ordered by ascending 'Time' values.
 | 
			
		||||
 
 | 
			
		||||
@@ -22,8 +22,8 @@ def sort_by_time(catalog):
 | 
			
		||||
    Sorts the given catalog based on the 'Time' column.
 | 
			
		||||
 | 
			
		||||
    Parameters:
 | 
			
		||||
        catalog (np.ndarray): A structured NumPy array representing the catalog, where each row
 | 
			
		||||
                              contains fields like 'Time', 'ID', and others.
 | 
			
		||||
        catalog (np.ndarray): A structured NumPy array representing the catalog.
 | 
			
		||||
                              https://docs.cyfronet.pl/display/ISDOC/Seismic+catalog
 | 
			
		||||
 | 
			
		||||
    Returns:
 | 
			
		||||
        np.ndarray: The sorted catalog, where rows in 'val' fields are ordered by ascending 'Time' values.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user