Next / Previous / Contents / Shipman's homepage

78. class Maws2004Encounter

This is a specialization of the BaseEncounter class that handles the MAWS 2004 protocol's different encounter body section format. It also writes a slightly different output record.

baseclasses.py
# - - - - -   c l a s s   M a w s 2 0 0 4 E n c o u n t e r   - - - - -

class Maws2004Encounter(Maps2004Encounter):
    '''Represents the MAWS 2004 encounter record.

      Exports:  As inherited.
    '''

78.1. Maws2004Encounter.OUT_FIELD_LIST: Output record format table

The output format for imaws differs in two respects from the one output by iband7:

  • The SPEC4 field is not written.

  • Because the MAWS program was started after the 2004 change in the microaging fields, only the eight currently-used fields are written. This format omits the HD, UPP, and UNP fields.

To implement these changes, this class redefines the OUT_FIELD_LIST class attribute, which drives the formatting of output records.

baseclasses.py
    OUT_FIELD_LIST = [
      (LocationField,      LOCATION_ATTR),
      (BandSizeField,      BAND_SIZE_ATTR),
      (PageNoField,        PAGE_NO_ATTR),
      (CaptureCodeField,   CAPTURE_CODE_ATTR),
      (BandNoField,        BAND_NO_ATTR),
      (Spec6Field,         SPEC6_ATTR),
      (AgeCodeField,       AGE_CODE_ATTR),
      (HowGroupField,      HOW_AGED_ATTR),
      (SexCodeField,       SEX_CODE_ATTR),
      (HowGroupField,      HOW_SEXED_ATTR),
      (SkullField,         SKULL_ATTR),
      (CloacalField,       CLOACAL_ATTR),
      (BroodField,         BROOD_ATTR),
      (FatField,           FAT_ATTR),
      (BodyMoltField,      BODY_MOLT_ATTR),
      (FlightMoltField,    FLIGHT_MOLT_ATTR),
      (FlightWearField,    FLIGHT_WEAR_ATTR),
      (JuvenalField,       JUVENAL_ATTR),
      (WingField,          WING_ATTR),
      (MassField,          MASS_ATTR),
      (StatusField,        STATUS_ATTR),
      (DateField,          DATE_ATTR),
      (HHMField,           TIME_ATTR),
      (StationCodeField,   STATION_ATTR),
      (Net2Field,          NET_ATTR),
      (DispositionField,   DISPOSITION_ATTR),
      (NoteField,          NOTE_ATTR),
      (MicroPPCField,      MICRO_PPC_ATTR),
      (MicroSSCField,      MICRO_SSC_ATTR),
      (MicroPPFField,      MICRO_PPF_ATTR),
      (MicroSSFField,      MICRO_SSF_ATTR),
      (MicroTTField,       MICRO_TT_ATTR),
      (MicroRRField,       MICRO_RR_ATTR),
      (MicroBPLField,      MICRO_BPL_ATTR),
      (MicroNFField,       MICRO_NF_ATTR),
      (PulledField,        PULLED_ATTR),
      (ColorBandsField,    COLOR_BANDS_ATTR) ]