src/tropycal/tracks/storm.py
def interp(self,timeres=1,dt_window=24,dt_align='middle'):
        
        r"""
        Interpolate a storm temporally to a specified time resolution.
        
        Parameters
        ----------
        timeres : int
            Temporal resolution in hours to interpolate storm data to. Default is 1 hour.
        dt_window : int
            Time window in hours over which to calculate temporal change data. Default is 24 hours.
        dt_align : str
            Whether to align the temporal change window as "start", "middle" or "end" of the dt_window time period.
        
        Returns
        -------
        tropycal.tracks.Storm
            New Storm object containing the updated dictionary.
        """
        
        NEW_STORM = copy.copy(self)
        newdict = interp_storm(self.dict,timeres,dt_window,dt_align)
        for key in newdict.keys(): 
            NEW_STORM.dict[key] = newdict[key]

        #Add other attributes to new storm object
        for key in NEW_STORM.dict.keys():
            if key == 'realtime': continue
            if isinstance(NEW_STORM.dict[key], (np.ndarray,list)) == False and isinstance(NEW_STORM.dict[key], dict) == False:
                NEW_STORM[key] = NEW_STORM.dict[key]
                NEW_STORM.coords[key] = NEW_STORM.dict[key]
            if isinstance(NEW_STORM.dict[key], (np.ndarray,list)) == True and isinstance(NEW_STORM.dict[key], dict) == False:
                NEW_STORM.dict[key] = list(NEW_STORM.dict[key])
                NEW_STORM.vars[key] = np.array(NEW_STORM.dict[key])
                NEW_STORM[key] = np.array(NEW_STORM.dict[key])
                
        return NEW_STORM
r"""
        Interpolate a storm temporally to a specified time resolution.
        
        Parameters
        ----------
        timeres : int
            Temporal resolution in hours to interpolate storm data to. Default is 1 hour.
        dt_window : int
            Time window in hours over which to calculate temporal change data. Default is 24 hours.
        dt_align : str
            Whether to align the temporal change window as "start", "middle" or "end" of the dt_window time period.
        
        Returns
        -------
        tropycal.tracks.Storm
            New Storm object containing the updated dictionary.
        
r"""
Interpolate a storm temporally to a specified time resolution.

Parameters

timeres : int
Temporal resolution in hours to interpolate storm data to. Default is 1 hour.
dt_window : int
Time window in hours over which to calculate temporal change data. Default is 24 hours.

Returns

tropycal.tracks.Storm
New Storm object containing the updated dictionary.
r " " " Interpolate a storm temporally to a specified time resolution . Parameters timeres : int Temporal resolution in hours to interpolate storm data to . Default is 1 hour . dt_window : int Time window in hours over which to calculate temporal change data . Default is 24 hours . Returns tropycal . tracks . Storm New Storm object containing the updated dictionary .
def interp(self,timeres=1,dt_window=24,dt_align='middle'):
        NEW_STORM = copy.copy(self)
        newdict = interp_storm(self.dict,timeres,dt_window,dt_align)
        for key in newdict.keys(): 
            NEW_STORM.dict[key] = newdict[key]
        for key in NEW_STORM.dict.keys():
            if key == 'realtime': continue
            if isinstance(NEW_STORM.dict[key], (np.ndarray,list)) == False and isinstance(NEW_STORM.dict[key], dict) == False:
                NEW_STORM[key] = NEW_STORM.dict[key]
                NEW_STORM.coords[key] = NEW_STORM.dict[key]
            if isinstance(NEW_STORM.dict[key], (np.ndarray,list)) == True and isinstance(NEW_STORM.dict[key], dict) == False:
                NEW_STORM.dict[key] = list(NEW_STORM.dict[key])
                NEW_STORM.vars[key] = np.array(NEW_STORM.dict[key])
                NEW_STORM[key] = np.array(NEW_STORM.dict[key])
        return NEW_STORM
def interp ( self , timeres = 1 , dt_window = 24 , dt_align = 'middle' ) : NEW_STORM = copy . copy ( self ) newdict = interp_storm ( self . dict , timeres , dt_window , dt_align ) for key in newdict . keys ( ) : NEW_STORM . dict [ key ] = newdict [ key ] for key in NEW_STORM . dict . keys ( ) : if key == 'realtime' : continue if isinstance ( NEW_STORM . dict [ key ] , ( np . ndarray , list ) ) == False and isinstance ( NEW_STORM . dict [ key ] , dict ) == False : NEW_STORM [ key ] = NEW_STORM . dict [ key ] NEW_STORM . coords [ key ] = NEW_STORM . dict [ key ] if isinstance ( NEW_STORM . dict [ key ] , ( np . ndarray , list ) ) == True and isinstance ( NEW_STORM . dict [ key ] , dict ) == False : NEW_STORM . dict [ key ] = list ( NEW_STORM . dict [ key ] ) NEW_STORM . vars [ key ] = np . array ( NEW_STORM . dict [ key ] ) NEW_STORM [ key ] = np . array ( NEW_STORM . dict [ key ] ) return NEW_STORM
r"""
Interpolate a storm temporally to a specified time resolution.
r " " " Interpolate a storm temporally to a specified time resolution .
r"""
        Interpolate a storm temporally to a specified time resolution.
        
        Parameters
        ----------
        timeres : int
            Temporal resolution in hours to interpolate storm data to. Default is 1 hour.
        dt_window : int
            Time window in hours over which to calculate temporal change data. Default is 24 hours.
        dt_align : str
            Whether to align the temporal change window as "start", "middle" or "end" of the dt_window time period.
        
        Returns
        -------
        tropycal.tracks.Storm
            New Storm object containing the updated dictionary.
        """ #Add other attributes to new storm object
self
timeres
dt_window
dt_align