Esempio n. 1
0
        public static UCAC2Index GetIndex(string ucac2Folder)
        {
            if (s_Index == null)
            {
                s_Index = new UCAC2Index(ucac2Folder);
            }

            return(s_Index);
        }
Esempio n. 2
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;
        }
Esempio n. 3
0
 public UCAC2Catalogue(string catalogLocation)
 {
     m_CatalogLocation = catalogLocation;
     m_Index           = UCAC2Index.GetIndex(catalogLocation);
 }
Esempio n. 4
0
 public LoadPosition(UCAC2Index index, UCAC2BinIndexEntry entry, SearchZone zone)
     : this(index, entry, zone, false)
 {
 }
Esempio n. 5
0
 public UCAC2Catalogue(string catalogLocation)
 {
     m_CatalogLocation = catalogLocation;
     m_Index = UCAC2Index.GetIndex(catalogLocation);
 }
Esempio n. 6
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;
        }
Esempio n. 7
0
 public LoadPosition(UCAC2Index index, UCAC2BinIndexEntry entry, SearchZone zone)
     : this(index, entry, zone, false)
 {
 }
Esempio n. 8
0
        public static UCAC2Index GetIndex(string ucac2Folder)
        {
            if (s_Index == null)
                s_Index = new UCAC2Index(ucac2Folder);

            return s_Index;
        }