Skip to content

FileMetadata

Domain entity representing metadata associated with a LASCO FITS file.

backend.database.domain.file_metadata.FileMetadata dataclass

Domain entity representing a file metadata

Each instance models a metadata of a single file. Metadata contains file name, datetime of observation, instrument used for observation, exposure time, pixel numbers in width and height, roll angle

Invariants
  • datetime fields must be timezone-aware UTC datetimes
  • instrument must be Instrument enum
  • exposure_time must be positive
  • width and height must be positive integers

Attributes:

Name Type Description
raw_file_name str

raw file name as present in the data

raw_file_hash Optional[str]

calculated file hash value, will be null initially

datetime_of_observation datetime

date and time of observation

last_modified_utc

date time when the file became available

instrument Instrument

instrument used for observation

exposure_time float

exposure time for taking the image

width int

number of pixels

height int

number of pixels

roll float

roll angle of camera while taking the observation