Example #1
0
        public LoadPosition(UCAC2Index index, UCAC2BinIndexEntry entry, SearchZone zone, bool bss)
        {
            this.ZoneId = entry.ZoneId;
            FirstStarNoInBin = entry.LastStarNo - entry.TotalStarsInBin;

            if (bss)
            {
                if (zone.RADeciHoursFrom == 0)
                    this.FromRecordId = 1;
                else
                    this.FromRecordId = index.BSSRAIndexPerZone[entry.ZoneId - 1, zone.RADeciHoursFrom - 1] -
                                        FirstStarNoInBin;

                if (zone.RADeciHoursTo == 0)
                    this.ToRecordId = 1;
                else
                    this.ToRecordId = index.BSSRAIndexPerZone[entry.ZoneId - 1, zone.RADeciHoursTo - 1] -
                                      (entry.LastStarNo - entry.TotalStarsInBin);
            }
            else
            {
                if (zone.RADeciHoursFrom == 0)
                    this.FromRecordId = 1;
                else
                    this.FromRecordId = index.RAIndexPerZone[entry.ZoneId - 1, zone.RADeciHoursFrom - 1] -
                                        FirstStarNoInBin;

                if (zone.RADeciHoursTo == 0)
                    this.ToRecordId = 1;
                else
                    this.ToRecordId = index.RAIndexPerZone[entry.ZoneId - 1, zone.RADeciHoursTo - 1] -
                                      (entry.LastStarNo - entry.TotalStarsInBin);
            }
            BSS = bss;
        }
Example #2
0
        public static UCAC2Index GetIndex(string ucac2Folder)
        {
            if (s_Index == null)
                s_Index = new UCAC2Index(ucac2Folder);

            return s_Index;
        }
Example #3
0
 public LoadPosition(UCAC2Index index, UCAC2BinIndexEntry entry, SearchZone zone)
     : this(index, entry, zone, false)
 {
 }
Example #4
0
 public UCAC2Catalogue(string catalogLocation)
 {
     m_CatalogLocation = catalogLocation;
     m_Index = UCAC2Index.GetIndex(catalogLocation);
 }