# Path: cis/time_util.py
# def convert_datetime_to_std_time(dt):
#     return cis_standard_time_unit.date2num(dt)


from collections import namedtuple
from cis.time_util import convert_datetime_to_std_time
        from cis.utils import haversine
        from numpy import zeros
        from numpy import zeros
        from numpy import zeros
        from numpy import zeros
        from numpy import zeros
        from numpy import zeros
import datetime

        point = super(HyperPoint, cls).__new__(cls, lat, lon, alt, pres, t, val)

        # Store the coordinate tuple for this point in case we need it later
        point.coord_tuple = point.get_coord_tuple()

        return point

    def modified(self, lat=None, lon=None, alt=None, pres=None, t=None, val=None):
        """Creates a HyperPoint with modified values.

        :param lat:
        :param lon:
        :param alt:
        :param pres:
        :param t:
        :param val:
        :return:
        """
        values = [v for v in self]
        if lat is not None:
            values[HyperPoint.LATITUDE] = lat
        if lon is not None:
            values[HyperPoint.LONGITUDE] = lon
        if alt is not None:
            values[HyperPoint.ALTITUDE] = alt
        if pres is not None:
            values[HyperPoint.AIR_PRESSURE] = pres
        if t is not None:
            if isinstance(t, datetime.datetime):

# Path: cis/time_util.py
# def convert_datetime_to_std_time(dt):
#     return cis_standard_time_unit.date2num(dt)


# Path: cis/data_io/hyperpoint.py
from collections import namedtuple
from cis.time_util import convert_datetime_to_std_time
        from cis.utils import haversine
        from numpy import zeros
        from numpy import zeros
        from numpy import zeros
        from numpy import zeros
        from numpy import zeros
        from numpy import zeros
import datetime


        point = super(HyperPoint, cls).__new__(cls, lat, lon, alt, pres, t, val)

        # Store the coordinate tuple for this point in case we need it later
        point.coord_tuple = point.get_coord_tuple()

        return point

    def modified(self, lat=None, lon=None, alt=None, pres=None, t=None, val=None):
        """Creates a HyperPoint with modified values.

        :param lat:
        :param lon:
        :param alt:
        :param pres:
        :param t:
        :param val:
        :return:
        """
        values = [v for v in self]
        if lat is not None:
            values[HyperPoint.LATITUDE] = lat
        if lon is not None:
            values[HyperPoint.LONGITUDE] = lon
        if alt is not None:
            values[HyperPoint.ALTITUDE] = alt
        if pres is not None:
            values[HyperPoint.AIR_PRESSURE] = pres
        if t is not None:
            if isinstance(t, datetime.datetime):

                values[HyperPoint.TIME] = convert_datetime_to_std_time(t)