object FilterSunMoonForm: TFilterSunMoonForm
  Left = 2075
  Height = 786
  Top = 119
  Width = 1490
  Caption = 'Filter Sun-Moon-MW-Clouds.csv'
  ClientHeight = 786
  ClientWidth = 1490
  OnCreate = FormCreate
  OnShow = FormShow
  Position = poScreenCenter
  LCLVersion = '2.2.6.0'
  object SourceFileEdit: TEdit
    AnchorSideLeft.Control = SourceFileButton
    AnchorSideLeft.Side = asrBottom
    AnchorSideTop.Control = SourceFileButton
    AnchorSideRight.Control = Owner
    AnchorSideRight.Side = asrBottom
    Left = 38
    Height = 30
    Hint = ' Input file.'
    Top = 4
    Width = 1448
    Anchors = [akTop, akLeft, akRight]
    AutoSize = False
    BorderSpacing.Left = 4
    BorderSpacing.Right = 4
    TabOrder = 0
  end
  object SourceFileButton: TBitBtn
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = Owner
    AnchorSideRight.Control = SourceFileEdit
    Left = 4
    Height = 30
    Hint = 'Select input file.'
    Top = 4
    Width = 30
    BorderSpacing.Left = 4
    BorderSpacing.Top = 4
    Glyph.Data = {
      36040000424D3604000000000000360000002800000010000000100000000100
      2000000000000004000064000000640000000000000000000000534D46A0A465
      34FFA46534FFA46534FFA46534FFA46534FFA46534FFA46534FFA46534FFA465
      34FFA46534FFA46534FFA46534FFA46534FFA46635E9A6673639484848E09786
      78FFA5693AFFBA8350FFBA8350FFBA8350FFBA8350FFBA8350FFBA8350FFBA83
      50FFBA8350FFBA8350FFBA8350FFBA8350FFB27845FFA56636C0494949E09999
      99FFA56839FFD3A67EFFD2A378FFD2A378FFD2A378FFD2A378FFD2A378FFD2A3
      78FFD2A378FFD2A378FFD2A378FFD3A479FFD1A57AFFA56635F5484848E29B9B
      9BFFA46738FFD5AB85FFCE9C6EFFCE9C6DFFCE9C6DFFCE9C6DFFCE9C6DFFCE9C
      6DFFCE9C6DFFCE9C6DFFCE9C6DFFCF9E70FFD5AB84FFA56635F84C4C4CE4A1A1
      A1FFA56838FFE2C4A9FFD5A881FFD3A47AFFD3A47AFFD3A47AFFD3A47AFFD3A4
      7AFFD3A47AFFD3A47AFFD3A47AFFD4A77EFFDDBA9CFFA56635F9515151E5A4A5
      A5FFA56737FFE9D2BEFFDDBA9BFFDDB999FFDCB695FFDBB592FFDAB390FFD9B2
      8EFFD8AE89FFD7AD87FFD7AD87FFD8B08BFFE5C9B1FFA56635FA565656E7A9A9
      A9FFA46636FFECD8C6FFDDBA99FFDDBA99FFDDBA99FFDDBA99FFDDBA99FFDDBA
      99FFDDBA99FFDCB795FFDAB28EFFD9B08BFFE7CFB8FFA56635FB5B5B5BE9AEAE
      AEFFA56736FFEBD7C4FFDCB794FFDCB794FFDCB794FFDCB794FFDCB794FFDCB7
      94FFDCB794FFDCB794FFDCB794FFDAB491FFE6CDB6FFA56635FC5F5F5FE9B3B3
      B3FFA46635FFEAD5C1FFDBB491FFDBB491FFDBB591FFDBB591FFDBB592FFDBB5
      92FFDBB592FFDBB592FFDBB592FFDCB896FFE7CFB7FFA46634FD656565EBB7B7
      B7FFA56635FFEAD3BEFFEAD4BFFFEAD4BFFFEAD4BEFFEAD4BEFFEAD4BEFFE9D3
      BEFFE9D3BEFFE9D3BEFFE9D3BEFFE9D3BEFFE8CFB8FFA56534FE6A6A6AECBDBD
      BDFFA66D41FFA56636FFA56636FFA56636FFA56636FFA56636FFA46635FFA466
      35FFA46635FFA46635FFA46534FFA46534FFA46534FFA66837E06E6E6EEEC0C1
      C1FFACACACFFAAAAAAFFA7A7A7FFA5A5A5FFA4A4A4FFA4A4A4FFACACACFFB6B6
      B6FFB9B9B9FFBBBBBBFFA2A2A2FF6A6A6AA94747470047474700737373EFC5C5
      C5FFB0B0B0FFADADADFFABABABFFAAAAAAFFACACACFF8D8D8DF58D8D8DF28C8C
      8CF28C8C8CF28C8C8CF2808080F66C6C6C844747470047474700787878F0C9C9
      C9FFC7C7C7FFC5C5C5FFC4C4C4FFC4C4C4FFB4B4B4FF747474CA727272387272
      7238727272386D6D6D386F6F6F355555550347474700474747007A7A7A9F7979
      79EC797979EC797979EC797979EC797979EC797979E278787835474747004747
      4700474747004747470047474700474747004747470047474700474747004747
      4700474747004747470047474700474747004747470047474700474747004747
      4700474747004747470047474700474747004747470047474700
    }
    OnClick = SourceFileButtonClick
    TabOrder = 1
  end
  object Button1: TButton
    AnchorSideTop.Control = ParametersGroupBox
    AnchorSideTop.Side = asrBottom
    AnchorSideRight.Control = ParametersGroupBox
    AnchorSideRight.Side = asrBottom
    Left = 268
    Height = 30
    Top = 397
    Width = 120
    Anchors = [akTop, akRight]
    BorderSpacing.Top = 5
    BorderSpacing.Right = 4
    Caption = 'Run'
    OnClick = Button1Click
    TabOrder = 2
  end
  object StatusBar1: TStatusBar
    Left = 0
    Height = 21
    Top = 765
    Width = 1490
    Panels = <    
      item
        Width = 50
      end>
    SimplePanel = False
  end
  object ProgressGroupBox: TGroupBox
    AnchorSideLeft.Control = ParametersGroupBox
    AnchorSideLeft.Side = asrBottom
    AnchorSideTop.Control = HelpGroupBox
    AnchorSideTop.Side = asrBottom
    AnchorSideRight.Control = Owner
    AnchorSideRight.Side = asrBottom
    AnchorSideBottom.Control = StatusBar1
    Left = 392
    Height = 484
    Top = 281
    Width = 1096
    Anchors = [akTop, akLeft, akRight, akBottom]
    BorderSpacing.Top = 9
    BorderSpacing.Right = 2
    Caption = 'Progress:'
    ClientHeight = 464
    ClientWidth = 1094
    TabOrder = 4
    object ProgressMemo: TMemo
      AnchorSideLeft.Control = ProgressGroupBox
      AnchorSideTop.Control = ProgressGroupBox
      AnchorSideRight.Control = ProgressGroupBox
      AnchorSideRight.Side = asrBottom
      AnchorSideBottom.Control = ProgressBar1
      Left = 0
      Height = 444
      Top = 0
      Width = 1094
      Anchors = [akTop, akLeft, akRight, akBottom]
      ReadOnly = True
      ScrollBars = ssAutoBoth
      TabOrder = 0
      WordWrap = False
    end
    object ProgressBar1: TProgressBar
      AnchorSideLeft.Control = ProgressGroupBox
      AnchorSideRight.Control = ProgressGroupBox
      AnchorSideRight.Side = asrBottom
      AnchorSideBottom.Control = ProgressGroupBox
      AnchorSideBottom.Side = asrBottom
      Left = 0
      Height = 20
      Top = 444
      Width = 1094
      Anchors = [akLeft, akRight, akBottom]
      Smooth = True
      TabOrder = 1
    end
  end
  object HelpGroupBox: TGroupBox
    AnchorSideLeft.Control = ParametersGroupBox
    AnchorSideLeft.Side = asrBottom
    AnchorSideTop.Control = SourceFileEdit
    AnchorSideTop.Side = asrBottom
    AnchorSideRight.Control = Owner
    AnchorSideRight.Side = asrBottom
    AnchorSideBottom.Control = StatusBar1
    Left = 392
    Height = 238
    Top = 34
    Width = 1098
    Anchors = [akTop, akLeft, akRight]
    Caption = 'Help:'
    ClientHeight = 218
    ClientWidth = 1096
    TabOrder = 5
    object Memo1: TMemo
      AnchorSideLeft.Control = HelpGroupBox
      AnchorSideTop.Control = HelpGroupBox
      AnchorSideRight.Control = HelpGroupBox
      AnchorSideRight.Side = asrBottom
      AnchorSideBottom.Control = HelpGroupBox
      AnchorSideBottom.Side = asrBottom
      Left = 0
      Height = 214
      Top = 4
      Width = 1096
      Anchors = [akTop, akLeft, akRight, akBottom]
      BorderSpacing.Top = 4
      Lines.Strings = (
        'Reads a csv file created previously by the “UDM/Tools/.dat to sun-moon-MW-clouds.csv” program and allows you to:  a) Filter that csv file for select data records and b) Apply data adjustments. For example, you can set filter parameters to find data records that were recorded during cloud-free nights. You can apply an adjustment for data recorded because the SQM was inside a weatherproof case. Data records selected by the filters are written out to two separate csv files, with keyword labels “Dense” and “Sparse”, as described below.'
        ''
        'Parameters:'
        '    1) Sun elevation angle cutoff in degrees - includes records with sun elevation angle less than or equal to this value (default -18.)'
        '    2) Moon elevation angle cutoff in degrees - includes records with moon elevation angle less than or equal to this value (default -10.)'
        '    3) Cloud algorithm cutoff - includes records with residual standard error (cloud parameter) less than or equal to this value (default 20.)'
        '    4) Galactic Latitude elevation angle in degrees - cutoff to eliminate Milky Way from FOV, includes records with galactic latitude greater than this value (symmetric, positive and negative) (default 0.)'
        '    5) Correction for weatherproof cover – value subtracted from SQM readings to account for darkening caused by presence of weatherproof cover (default 0.11)'
        '    6) Correction for aging of the SQM - estimate of the increase of brightness reading (darkening) per year due to sunlight exposure (default 0.01897)'
        '    7) Max MPSAS allowed - includes records with MPSAS values less than or equal to this value (default 22.0)'
        '    8) Sparse cutoff – after the above filters are applied, segregates data records remaining, which are estimated to be caused by constant cloud cover, fog, smoke into the “Sparse” output file; the majority of remaining records are written to “Dense” output file; specify a larger value to segregate more data records; set to zero for no segregation in which case all remaining records go into the “Dense” output file (default 25)'
        ''
        'For additional explanation, see the online SQM-LU-DL operator’s manual, link found under “UDM/Help”'
        '(http://unihedron.com/projects/darksky/cd/SQM-LU-DL/SQM-LU-DL_Users_manual.pdf)'
      )
      ReadOnly = True
      ScrollBars = ssAutoVertical
      TabOrder = 0
    end
  end
  object ParametersGroupBox: TGroupBox
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = SourceFileEdit
    AnchorSideTop.Side = asrBottom
    Left = 0
    Height = 358
    Top = 34
    Width = 392
    Caption = 'Parameters:'
    ClientHeight = 338
    ClientWidth = 390
    TabOrder = 6
    object SolarElevationAngleCutoffEdit: TLabeledEdit
      AnchorSideTop.Control = ParametersGroupBox
      AnchorSideRight.Control = ParametersGroupBox
      AnchorSideRight.Side = asrBottom
      Left = 268
      Height = 36
      Top = 0
      Width = 120
      Anchors = [akTop, akRight]
      BorderSpacing.Right = 2
      EditLabel.Height = 19
      EditLabel.Width = 182
      EditLabel.Caption = 'Sun elevation angle cutoff  (°):'
      EditLabel.ParentColor = False
      EditLabel.WordWrap = True
      LabelPosition = lpLeft
      TabOrder = 0
      OnChange = SolarElevationAngleCutoffEditChange
    end
    object MoonElevationAngleCutoffEdit: TLabeledEdit
      AnchorSideRight.Control = SolarElevationAngleCutoffEdit
      AnchorSideRight.Side = asrBottom
      Left = 268
      Height = 36
      Top = 40
      Width = 120
      Anchors = [akTop, akRight]
      EditLabel.Height = 19
      EditLabel.Width = 192
      EditLabel.Caption = 'Moon elevation angle cutoff (°):'
      EditLabel.ParentColor = False
      EditLabel.WordWrap = True
      LabelPosition = lpLeft
      TabOrder = 1
      OnChange = MoonElevationAngleCutoffEditChange
    end
    object CloudAlgorithmCutoffEdit: TLabeledEdit
      AnchorSideRight.Control = SolarElevationAngleCutoffEdit
      AnchorSideRight.Side = asrBottom
      Left = 268
      Height = 36
      Top = 80
      Width = 120
      Anchors = [akTop, akRight]
      EditLabel.Height = 19
      EditLabel.Width = 141
      EditLabel.Caption = 'Cloud algorithm cutoff:'
      EditLabel.ParentColor = False
      EditLabel.WordWrap = True
      LabelPosition = lpLeft
      TabOrder = 2
      OnChange = CloudAlgorithmCutoffEditChange
    end
    object GalacticLatitudeElevationAngleEdit: TLabeledEdit
      AnchorSideRight.Control = SolarElevationAngleCutoffEdit
      AnchorSideRight.Side = asrBottom
      Left = 268
      Height = 36
      Top = 120
      Width = 120
      Anchors = [akTop, akRight]
      EditLabel.Height = 19
      EditLabel.Width = 218
      EditLabel.Caption = 'Galactic Latitude elevation angle (°):'
      EditLabel.ParentColor = False
      EditLabel.WordWrap = True
      LabelPosition = lpLeft
      TabOrder = 3
      OnChange = GalacticLatitudeElevationAngleEditChange
    end
    object CorrectionForWeatherproofCoverEdit: TLabeledEdit
      AnchorSideRight.Control = SolarElevationAngleCutoffEdit
      AnchorSideRight.Side = asrBottom
      Left = 268
      Height = 36
      Top = 160
      Width = 120
      Anchors = [akTop, akRight]
      EditLabel.Height = 19
      EditLabel.Width = 218
      EditLabel.Caption = 'Correction for weatherproof cover:'
      EditLabel.ParentColor = False
      EditLabel.WordWrap = True
      LabelPosition = lpLeft
      TabOrder = 4
      OnChange = CorrectionForWeatherproofCoverEditChange
    end
    object CorrectionForAgingSQMEdit: TLabeledEdit
      AnchorSideRight.Control = SolarElevationAngleCutoffEdit
      AnchorSideRight.Side = asrBottom
      Left = 268
      Height = 36
      Top = 200
      Width = 120
      Anchors = [akTop, akRight]
      EditLabel.Height = 19
      EditLabel.Width = 200
      EditLabel.Caption = 'Correction for aging of the SQM:'
      EditLabel.ParentColor = False
      EditLabel.WordWrap = True
      LabelPosition = lpLeft
      TabOrder = 5
      OnChange = CorrectionForAgingSQMEditChange
    end
    object MaxMPSASAllowedEdit: TLabeledEdit
      AnchorSideRight.Control = SolarElevationAngleCutoffEdit
      AnchorSideRight.Side = asrBottom
      Left = 268
      Height = 36
      Top = 240
      Width = 120
      Anchors = [akTop, akRight]
      EditLabel.Height = 19
      EditLabel.Width = 126
      EditLabel.Caption = 'Max MPSAS allowed:'
      EditLabel.ParentColor = False
      EditLabel.WordWrap = True
      LabelPosition = lpLeft
      TabOrder = 6
      OnChange = MaxMPSASAllowedEditChange
    end
    object SparseCutoffEdit: TLabeledEdit
      AnchorSideRight.Control = SolarElevationAngleCutoffEdit
      AnchorSideRight.Side = asrBottom
      Left = 268
      Height = 36
      Top = 280
      Width = 120
      Anchors = [akTop, akRight]
      EditLabel.Height = 19
      EditLabel.Width = 85
      EditLabel.Caption = 'Sparse cutoff:'
      EditLabel.ParentColor = False
      EditLabel.WordWrap = True
      LabelPosition = lpLeft
      TabOrder = 7
      OnChange = SparseCutoffEditChange
    end
  end
  object SourceFileDialog: TOpenDialog
    Filter = 'Data files|*.csv'
    Left = 72
    Top = 472
  end
end
