src/tropycal/recon/dataset.py
def findMission(self,time):
        
        r"""
        Returns the name of a mission or list of missions given a specified time.
        
        Parameters
        ----------
        time : datetime.datetime or list
            Datetime object or list of datetime objects representing the time of the requested mission.
        
        Returns
        -------
        list
            The names of any/all missions that had in-storm observations during the specified time.
        """
        
        if isinstance(time,list):
            t1=min(time)
            t2=max(time)
        else:
            t1 = t2 = time
        selected=[]
        for name in self.missiondata:
            t_start = min(self.missiondata[name]['time'])
            t_end = max(self.missiondata[name]['time'])
            if (t_start<t1<t_end) or (t_start<t2<t_end) or (t1<t_start<t2):
                selected.append(name)
        if len(selected)==0:
            print('There were no in-storm recon missions during this time')
        return selected
r"""
        Returns the name of a mission or list of missions given a specified time.
        
        Parameters
        ----------
        time : datetime.datetime or list
            Datetime object or list of datetime objects representing the time of the requested mission.
        
        Returns
        -------
        list
            The names of any/all missions that had in-storm observations during the specified time.
        
r"""
Returns the name of a mission or list of missions given a specified time.

Parameters

time : datetime.datetime or list
Datetime object or list of datetime objects representing the time of the requested mission.

Returns

list
The names of any/all missions that had in-storm observations during the specified time.
r " " " Returns the name of a mission or list of missions given a specified time . Parameters time : datetime . datetime or list Datetime object or list of datetime objects representing the time of the requested mission . Returns list The names of any / all missions that had in - storm observations during the specified time .
def findMission(self,time):
        if isinstance(time,list):
            t1=min(time)
            t2=max(time)
        else:
            t1 = t2 = time
        selected=[]
        for name in self.missiondata:
            t_start = min(self.missiondata[name]['time'])
            t_end = max(self.missiondata[name]['time'])
            if (t_start<t1<t_end) or (t_start<t2<t_end) or (t1<t_start<t2):
                selected.append(name)
        if len(selected)==0:
            print('There were no in-storm recon missions during this time')
        return selected
def findMission ( self , time ) : if isinstance ( time , list ) : t1 = min ( time ) t2 = max ( time ) else : t1 = t2 = time selected = [ ] for name in self . missiondata : t_start = min ( self . missiondata [ name ] [ 'time' ] ) t_end = max ( self . missiondata [ name ] [ 'time' ] ) if ( t_start < t1 < t_end ) or ( t_start < t2 < t_end ) or ( t1 < t_start < t2 ) : selected . append ( name ) if len ( selected ) == 0 : print ( 'There were no in-storm recon missions during this time' ) return selected
r"""
Returns the name of a mission or list of missions given a specified time.
r " " " Returns the name of a mission or list of missions given a specified time .
r"""
        Returns the name of a mission or list of missions given a specified time.
        
        Parameters
        ----------
        time : datetime.datetime or list
            Datetime object or list of datetime objects representing the time of the requested mission.
        
        Returns
        -------
        list
            The names of any/all missions that had in-storm observations during the specified time.
        """
self
time