!*******************************************************************************
!$RCSfile$
!$Revision$
!$Date$
!*******************************************************************************
MODULE status_fd

!==== Status array member values

  INTEGER, PARAMETER :: STATUS_INVALID          = 0
  INTEGER, PARAMETER :: STATUS_VALID            = 1
  INTEGER, PARAMETER :: STATUS_COMPLETE         = 1
  INTEGER, PARAMETER :: STATUS_INCOMPLETE       = 2
  INTEGER, PARAMETER :: STATUS_NOT_CUSTOMIZABLE = 2
  INTEGER, PARAMETER :: STATUS_CUSTOMIZED       = 4
  INTEGER, PARAMETER :: STATUS_MODIFIED         = 4
  INTEGER, PARAMETER :: STATUS_EMPTY            = 8
  INTEGER, PARAMETER :: STATUS_STANDARD         = 8

!==== Indices into the status array of the release structure

  INTEGER, PARAMETER :: MATERIAL_CUSTOMIZED          =  1
  INTEGER, PARAMETER :: RELEASE_DATA_STATUS          =  2
  INTEGER, PARAMETER :: INCIDENT_ID_STATUS           =  3
  INTEGER, PARAMETER :: DATA_SOURCE_STATUS           =  4
  INTEGER, PARAMETER :: MATERIAL_INDEX_STATUS        =  5
  INTEGER, PARAMETER :: DISTRIBUTION_TYPE_STATUS     =  6
  INTEGER, PARAMETER :: RELEATIVE_TIME_STATUS        =  7
  INTEGER, PARAMETER :: DURATION_STATUS              =  8
  INTEGER, PARAMETER :: RATE_MASS_STATUS             =  9
  INTEGER, PARAMETER :: X_LOCATION_STATUS            = 10
  INTEGER, PARAMETER :: Y_LOCATION_STATUS            = 11
  INTEGER, PARAMETER :: Z_LOCATION_STATUS            = 12
  INTEGER, PARAMETER :: X_SIZE_STATUS                = 13
  INTEGER, PARAMETER :: Y_SIZE_STATUS                = 14
  INTEGER, PARAMETER :: Z_SIZE_STATUS                = 15
  INTEGER, PARAMETER :: X_VELOCITY_STATUS            = 16
  INTEGER, PARAMETER :: Y_VELOCITY_STATUS            = 17
  INTEGER, PARAMETER :: Z_VELOCITY_STATUS            = 18
  INTEGER, PARAMETER :: MMD_STATUS                   = 19
  INTEGER, PARAMETER :: SIGMA_STATUS                 = 20
  INTEGER, PARAMETER :: GAS_DYNAMICS_1_STATUS        = 21
  INTEGER, PARAMETER :: GAS_DYNAMICS_2_STATUS        = 22
  INTEGER, PARAMETER :: SOURCE_TYPE_STATUS           = 23
  INTEGER, PARAMETER :: MATERIAL_STATUS              = 24
  INTEGER, PARAMETER :: MATERIAL_FILENAME_STATUS     = 25
  INTEGER, PARAMETER :: MATERIAL_FILEPATH_STATUS     = 26
  INTEGER, PARAMETER :: DISPLAY_STRING_STATUS        = 27
  INTEGER, PARAMETER :: REL_FILE_SRC_FILENAME_STATUS = 28
  INTEGER, PARAMETER :: REL_FILE_SRC_PATH_STATUS     = 29
  INTEGER, PARAMETER :: RAND_PUFF_NUM_STATUS         = 30
  INTEGER, PARAMETER :: RAND_PUFF_SPREAD_STATUS      = 31
  INTEGER, PARAMETER :: RAND_PUFF_SEED_STATUS        = 32
  INTEGER, PARAMETER :: HORIZ_UNCERTAINTY_STATUS     = 33
  INTEGER, PARAMETER :: VERT_UNCERTAINTY_STATUS      = 34
  INTEGER, PARAMETER :: REL_TRANSFORMED_TO_UTM       = 60
  INTEGER, PARAMETER :: SCIP32_OPID_HOLDER           = 59

!==== Max,Min Indices into the status array of the release structure used to set the
!     ready flag

  INTEGER, PARAMETER :: MIN_DATA_READY_STATUS = MATERIAL_INDEX_STATUS
  INTEGER, PARAMETER :: MAX_DATA_READY_STATUS = SOURCE_TYPE_STATUS

  INTEGER, PARAMETER :: MIN_FILE_READY_STATUS = REL_FILE_SRC_FILENAME_STATUS
  INTEGER, PARAMETER :: MAX_FILE_READY_STATUS = REL_FILE_SRC_PATH_STATUS

END MODULE status_fd
