Source code for pydsstools.core.enums

""" """

import logging
from enum import Enum, IntEnum


[docs] class GridType(IntEnum): invalid = -9999 undefined_time = 400 undefined = 401 hrap_time = 410 hrap = 411 albers_time = 420 albers = 421 specified_time = 430 specified = 431
[docs] class DataType(IntEnum): invalid = -9999 # CAPI used 5 per_aver = 0 per_cum = 1 inst_val = 2 inst_cum = 3 freq = 4
[docs] class CompressionMethod(IntEnum): invalid = -9999 undefined = 0 uncompressed = 1 zlib = 26 hec = 101001 # PRECIP_2_BYTE
[docs] class Datum(IntEnum): invalid = -9999 undefined = 0 nad27 = 1 nad83 = 2
[docs] class LocCoordSystem(IntEnum): none = 0 lat_long = 1 state_plane_fips = 2 state_plane_ads = 3 utm = 4 local = 5
[docs] class LocHorizUnits(IntEnum): unspecified = 0 feet = 1 meters = 2 decimal_degrees = 3 degrees_minutes_seconds = 4
[docs] class LocHorizDatum(IntEnum): unset = 0 nad83 = 1 nad27 = 2 wgs84 = 3 wgs72 = 4 local = 5
[docs] class LocVertUnits(IntEnum): unspecified = 0 feet = 1 meters = 2
[docs] class LocVertDatum(IntEnum): unset = 0 navd88 = 1 ngvd29 = 2 local = 3
[docs] class LocStoreFlag(IntEnum): no_overwrite = 0 # do not write over an existing location record overwrite = 1 # update or overwrite an existing location record
[docs] class RegStoreFlag(IntEnum): replace = 0 # always replace data fill_missing = 1 # only replace missing values write_always = 2 # write even if all values are missing skip_all_miss = 3 # if all missing, do not write and delete record if it exists no_overwrite = 4 # do not allow a missing input value to replace a valid value
[docs] class IrregStoreFlag(IntEnum): merge = 0 # insert new values; replace existing values at the same time replace = 1 # remove all data in the start-to-end range and rewrite
[docs] class BinaryType(IntEnum): UNDEFINED = 0 FILE = 600 IMAGE = 610
[docs] class CopyRecordFlag(IntEnum): """Record-status filter for ``copy_file`` / ``copy_file_to``. Mirrors the ``REC_STATUS_*`` constants in the HEC-DSS C library (``zdssVals.h``). Because this is an ``IntEnum``, values can be passed wherever a plain ``int`` is expected. Members ------- valid = 0 All valid records — primary records and their aliases. This is the default for a normal file merge. primary = 1 Primary records only (excludes aliases). alias = 2 Alias records only. deleted = 11 Records that have been deleted (soft-delete in DSS-7). renamed = 12 Records that have been renamed (the old-name tombstones). any = 100 Every record regardless of status, including deleted / renamed. Use for damaged-file recovery. """ valid = 0 primary = 1 alias = 2 deleted = 11 renamed = 12 any = 100