Telescope fixed star map loading and refreshing method

Through the combination of multi-threading and multi-core processors, the stars to be observed are screened and calculated in batches, and the telescope star map is quickly refreshed, solving the time-consuming problems in the existing technology, and improving user experience and computing efficiency.

CN119065729AActive Publication Date: 2024-12-03CHANGCHUN INST OF OPTICS FINE MECHANICS & PHYSICS CHINESE ACAD OF SCI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411557164.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2024-12-03
Estimated Expiration
2044-11-04

AI Technical Summary

Technical Problem

In the prior art, there is a time-consuming problem in the loading and refreshing of the telescope star map, which makes it impossible to refresh the star map in real time after loading, affecting the user experience.

Method used

Multi-threaded star refresh is used to filter out the set of stars to be observed, and parallel calculations are used to use multi-core processors to update the star positions in real time by time slices, reducing the calculation amount and refresh time.

Benefits of technology

It significantly shortens the time for refreshing the telescope star map, improves the refresh efficiency and user experience, and reduces the time-consuming CPU calculation, especially in high-core CPU environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065729A_ABST
    Figure CN119065729A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of astronomical observation, and particularly provides a telescope fixed star map loading and refreshing method, which comprises the following steps of: according to a telescope site, removing fixed stars which cannot be observed, obtaining all observable alternative fixed stars, setting a screening condition, selecting to-be-observed alternative fixed stars which meet the screening condition, and carrying out observation on the to-be-observed alternative fixed stars according to the to-be-observed alternative fixed stars; the method comprises the following steps: establishing a plurality of threads and sets corresponding to the plurality of threads, averagely distributing to-be-observed alternative stars into the plurality of sets, refreshing observable alternative stars in the to-be-observed alternative stars for the first time through the plurality of threads, setting a plurality of time slices, and distributing the to-be-observed alternative stars again. And thus, multi-thread and batch real-time refreshing of the alternative fixed star to be observed is realized. According to the alternative fixed star loading and refreshing method provided by the invention, the alternative fixed star refreshing time can be greatly shortened, the star map refreshing efficiency of the telescope is improved, meanwhile, the lagging phenomenon is avoided by refreshing in batches, the refreshing is smoother, and the astronomical observation experience feeling of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of astronomical observation, and in particular provides a method for loading and refreshing a telescope star map. Background Art

[0002] Star tracking is a key feature of terrestrial telescopes, playing a vital role in astronomical observations, pointing corrections, and astronomical positioning. A commonly used star-pointing calculation tool is the SOFA (Standards of Fundamental Astronomy) code toolkit. The telescope control system inputs UTC time, station location, and star information (right ascension and declination) to accurately calculate the position (azimuth and elevation) of stars at that station, thereby guiding the telescope for star observations.

[0003] like Figure 1 The figure shows the zenith chart commonly used in telescope control systems. The figure shows the state where star information has not been loaded yet. The top (north) is the azimuth 0°, and the azimuth increases in a clockwise direction, ranging from 0° to 360°. The outermost circle is the minimum pitch value, that is, the pitch is 0°, and the innermost circle is the maximum pitch value, that is, the pitch is 90°.

[0004] like Figure 2 The image shows a station at a certain moment in time using the HIP Catalogues (Hipparcos Catalogues) to select stars within the telescope's observation range from all stars below magnitude 8 and load them into the zenith chart.

[0005] for Figure 2 There are about 35,000 stars in the system. The traditional loading method is single-threaded loading. If single-threaded calculation is used, the loading time of the system is as follows: if the application CPU model is Intel(R) Core(TM) i9-11900K @ 3.50GHz, the first loading time is 11.3s, and the average loading time per star is 0.32ms. If the application CPU model is Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, the first loading time is 42s, and the average loading time per star is 1.2ms.

[0006] The existing technology uses a single thread to calculate the star map, which takes a long time to load the star map for the first time. In addition, due to the long loading time of the entire star, the star map cannot be refreshed in real time after loading. Summary of the Invention

[0007] To solve the above problems, the present invention provides a telescope star map loading and refreshing method, which adopts multi-threading to refresh candidate stars in batches, shortens the telescope star map refresh time, improves refresh efficiency, and enhances user experience.

[0008] The present invention provides a method for loading and refreshing a telescope star map, comprising: S1: Based on the address of the telescope observation station, obtain all the stars that can be observed by the telescope within 24 hours as candidate stars, and collect the candidate stars Load it into the telescope control system to complete the loading of candidate stars; S2: Preset screening conditions to filter the candidate star set The candidate stars that meet the screening conditions are called the set of stars to be observed ; S3: Calculate the set of stars to be observed The pitch angles of all candidate stars at the current moment, if the pitch angle is greater than 0°, the candidate star is called an observable candidate star, and the observable candidate star set Displayed in the telescope's star map, completing the first refresh of the telescope's star map; S4: Refresh the telescope star map in real time: S41: Division Time slices, create star information collection and create threads ,in, The value should not be greater than the number of CPU cores of the telescope control system. Indicates the thread sequence number, ; S42: Gather the stars to be observed The star information in is assigned to From the star information set, multiple subsets are obtained ,in Indicates the sequence number of any time slice, ; Subset Assign to thread middle; S43: By Thread Calculating Subsets The azimuth and elevation angles of all candidate stars to be observed at the current moment; S44: Based on the azimuth and elevation angles of all candidate stars to be observed at the previous and current moments, make the following judgments: If the pitch angle of the candidate star to be observed changes from less than or equal to 0° to greater than 0°, it is considered that the candidate star to be observed has become observable at the current moment and is moved into the set of observable candidate stars. and displayed in telescopic star maps; If the pitch angle of the candidate star to be observed changes from greater than 0° to less than or equal to 0°, it is considered that the candidate star to be observed has become unobservable at the current moment and is removed from the observable candidate star set. Removed; If the pitch angle of the candidate star to be observed is continuously greater than 0°, it is considered that the candidate star to be observed is continuously observable at the current moment. Update the position information of the candidate star to be observed; The observable candidate star collection Shown in telescopic star maps; Update the time slice number to ,like ,but , repeat S43 to S44.

[0009] Preferably, the candidate stars are all stars recorded in the Hipparcos catalog.

[0010] Preferably, the method for obtaining candidate stars is: The following judgment is made based on the latitude of the telescope observation station address: If the latitude value is within the range of [-1°, 1°], all stars are candidate stars; If the latitude value is greater than 1°, calculate the declination value corresponding to an azimuth of 180° and a pitch of 0° , then the declination value is [ ,90°] are all candidate stars; If the latitude value is less than -1°, calculate the declination value corresponding to an azimuth of 0° and an elevation of 0° , then the declination value is [-90°, ]The stars within the range are all candidate stars.

[0011] Preferably, the sieve calculates the declination value using the Basic Astronomy Standard Code Toolkit and declination values .

[0012] Preferably, the screening conditions include the magnitude range of the candidate stars and the spectral type of the candidate stars.

[0013] Preferably, a set of observable candidate stars The display method is: Q1: Create A collection of stars and A one-to-one correspondence between star sets Computation threads ,in Indicates the thread sequence number, ; Q2: Assign all observable candidate stars to In a collection of stars; Q3: Calculate the pitch angles of all observable candidate stars in the star set corresponding to each thread at the current moment; Q4: A collection of all observable candidate stars with an elevation angle greater than 0° Send to telescope for display in star map.

[0014] Preferably, the number of time slices The value is 8.

[0015] Compared with the prior art, the present invention can achieve the following beneficial effects: When loading a telescope star map, this embodiment of the present invention directly removes stars that are never observable. For most telescope observation sites at latitudes, the total number of stars involved in the calculation decreases, with the number decreasing at higher latitudes. This significantly reduces the number of stars that need to be loaded and refreshed, reducing the computational effort for subsequent initial and ongoing star map refreshes, thereby improving refresh efficiency.

[0016] Before refreshing the telescope star map for the first time, candidate stars to be observed are selected based on screening conditions, which can further reduce the number of stars that need to be refreshed. When refreshing the telescope star map for the first time, the embodiment of the present invention takes advantage of the parallel acceleration of multi-core processors to distribute the observable candidate stars to be refreshed to multiple threads for refreshing, greatly reducing the time consumption of star calculations and shortening the first refresh time. The more CPU cores the telescope control system has, the greater the reduction in time consumption.

[0017] When refreshing the star map in real time, the time-slicing and multi-threading methods are used to recalculate the position of each group of stars to be observed in its fixed time slice and thread, ultimately achieving the goal of small-batch, time-sharing, and continuous position update of stars. This not only ensures the accuracy of the star positions in the star map, but also further shortens the time for real-time refreshing of the telescope star map and improves the refresh efficiency.

[0018] In addition, the present invention sets a real-time refresh method with time-slice refresh, which can reduce the refresh freeze phenomenon, making the real-time refresh of the telescope star map smoother, and improving the user's experience of astronomical observation. The higher the CPU main frequency of the telescope control system and the more cores it has, the smoother the real-time refresh and the better the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a telescope zenith map without candidate stars provided in an embodiment of the present invention; Figure 2 is a telescope zenith map after loading observable candidate stars according to an embodiment of the present invention; Figure 3 is a flowchart of loading and refreshing a telescope star map according to an embodiment of the present invention; Figure 4 is a flow chart of a method for acquiring an alternative star according to an embodiment of the present invention; Figure 5 This is a flow chart of a method for refreshing a telescope star map for the first time according to an embodiment of the present invention; Figure 6 The present invention provides a flow chart of a method for real-time refreshing of a telescope star map. DETAILED DESCRIPTION

[0020] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the following description, identical modules are denoted by identical reference numerals. In the case of identical reference numerals, their names and functions are also identical. Therefore, their detailed description will not be repeated.

[0021] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and do not constitute a limitation of the present invention.

[0022] like Figure 3 As shown, an embodiment of the present invention provides a method for loading and refreshing a telescope star map, comprising: S1: When conducting astronomical observations through a telescope, after turning it on for the first time and opening the star observation software, you must first load the observable stars. From an observational perspective, the change in the position of stars relative to ground observation is primarily caused by the Earth's rotation. Stars themselves can be considered permanently stationary. When an observer is located at the equator, theoretically, all stars can be observed within a single day. When an observer is located in the Northern Hemisphere, theoretically, all stars in the Northern Hemisphere's sky can be observed within a single day. However, stars in parts of the Southern Hemisphere are permanently obscured by the Earth. When an observer is located in the Southern Hemisphere, theoretically, all stars in the Southern Hemisphere's sky can be observed within a single day. However, stars in parts of the Northern Hemisphere are permanently obscured by the Earth. Therefore, once a telescope's site is determined, stars that are permanently unobservable can be eliminated based on the site's latitude. This leaves candidates as candidates those stars that are visible within the observation range within 24 hours. The number of candidate stars varies for different sites. Higher latitudes tend to have fewer candidate stars, while lower latitudes tend to have more.

[0023] Based on the telescope observation station address, the SOFA (Standards of Fundamental Astronomy) code toolkit is applied, and the stars recorded in the HIP catalog (Hipparcos catalog) are used as the range. All stars included in the Hipparcos catalog that can be observed by the telescope within 24 hours are obtained as candidate stars to obtain the candidate star set. , load the above candidate stars into the telescope's control system, and complete the loading of candidate stars when the telescope is turned on. Figure 4 As shown, the method for obtaining candidate stars is as follows: The following judgment is made based on the latitude of the telescope observation station address: If the latitude of the telescope station is within the range of [-1°, 1°], the telescope station is considered to be located near the Earth's equator, and all stars can be observed at some time within 24 hours, that is, all stars in the Hipparcos catalog are candidate stars; If the latitude of the telescope observation station is greater than 1°, that is, greater than 1° north latitude, the declination value corresponding to the calculated azimuth angle of 180° and the pitch angle of 0° is expressed as , then in the Hipparcos catalog, the declination value is [ ,90°] are all candidate stars; If the latitude of the telescope observation station is less than -1°, that is, greater than 1° south latitude, the declination value corresponding to the azimuth angle of 0° and the pitch angle of 0° is calculated. , then in the Hipparcos catalog, the declination value is [-90°, ]The stars within the range are all candidate stars.

[0024] The Hipparcos Star Catalog (HIP) is a major product of the European Space Agency's (ESA) Hipparcos Astrometry Satellite (Hipparcos) program. The HIP catalog contains a large amount of high-precision celestial position and photometric data, serving as a basis for telescope astronomical observations. It is a publicly available online database. The SOFA Code Toolkit for Basic Astronomy, created by the International Astronomical Union (IAU), is a collection of subroutines that implement official IAU algorithms for basic astronomical calculations. These subroutines provide authoritative and effective algorithmic procedures and constant values ​​for astronomical calculations, and are available as open-source C language code. Both concepts are fundamental to astronomical observation and are considered state-of-the-art.

[0025] S2: The candidate star set obtained above All candidate stars are observable by the telescope at a certain moment within 24 hours, but not at all times within 24 hours. Therefore, the telescope's star map will not show all candidate stars at every moment, and the telescope's star map needs to be refreshed according to the observability of the candidate stars.

[0026] like Figure 5 As shown, the method for refreshing the telescope star map for the first time is as follows: The user sets the candidate star screening conditions according to the stars to be observed, and selects all candidate stars that meet the screening conditions from the candidate stars. In the embodiment of the present invention, these are called candidate stars to be observed, and the candidate star set to be observed is obtained. The screening conditions mentioned in the embodiment of the present invention refer to the star conditions that the inventor needs to observe, such as the magnitude of the candidate stars, the spectral range of the candidate stars, and the number of the candidate stars. In the embodiment of the present invention, taking the magnitude as an example, assuming that the user needs to observe candidate stars with a magnitude lower than 8, the screening condition is that the star magnitude is lower than 8. When the telescope star map is refreshed, only the candidate stars with a magnitude lower than 8 are refreshed to the telescope star map, which is about 35,000 stars.

[0027] S3: Calculate the set of stars to be observed The pitch angles of all candidate stars at the current moment. If the pitch angle is greater than 0°, it means that the candidate star can be observed at the telescope observation station at the current moment. The candidate star to be observed is called an observable candidate star. All observable candidate stars form an observable candidate star set. , the observable candidate star set It is displayed in the telescope's star map, completing the first refresh of the telescope's star map.

[0028] The above observable candidate star set The display method is as follows: Q1: First, query the number of CPU (Central Processing Unit) cores of the computer used by the telescope control system, and create A collection of stars and A one-to-one correspondence between star sets Computation threads ,in Indicates the thread sequence number, , The value should not be greater than the number of CPU cores; Q2: Collect observable candidate stars All observable candidate star information is evenly distributed to From the star set, we get the subset ; Q3: Apply the basic astronomy standard code toolkit to calculate each thread The corresponding observable star set The azimuth and elevation angles of all observable candidate stars at the current moment; Q4: Determine whether the pitch angle obtained by the above calculation is greater than 0°. If the pitch angle is greater than 0°, it is considered that the telescope can observe the observable candidate star. All observable candidate stars with a pitch angle greater than 0° are merged to form an observable candidate star set. , the observable candidate star set Send it to the telescope star map for display, and realize the first refresh of the telescope star map.

[0029] When using the above method to refresh the telescope star map for the first time, when using the aforementioned CPU model Intel(R) Core(TM) i9-11900K @ 3.50GHz (16-core), 16 threads of parallel computing were used, the time consumption was reduced to 1.2s, a reduction of 89%. When using the aforementioned CPU model Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8-core), 8 threads of parallel computing were used, the time consumption was reduced to 9.8s, a reduction of 77%, showing a significant efficiency improvement.

[0030] S4: Since the Earth is constantly rotating, the positions of candidate stars to be observed change in real time relative to the observing telescope. Some observable candidate stars may be blocked by the Earth after a period of observation and cannot be observed anymore, or candidate stars that were originally blocked by the Earth and cannot be observed may become observable. Even the positions of candidate stars that are continuously observable may change, so it is necessary to refresh the telescope star map in real time.

[0031] like Figure 6 As shown, the method for refreshing the telescope star map in real time is as follows: S41: Division time slices and create A star information set, where The value should not be greater than the number of CPU cores. Indicates the number of time slices. In the embodiment of the present invention, the number of time slices The value is 8, and 8 time slices can be understood as batches of 8 sequences. The star information set can be recreated, or the one created in step Q1 above can be The star cluster is then split into A set of star information, A set of star information, because the telescope star map is refreshed only once for the first time, the one created in Q1 Each star set is used only once and can be reused after the first refresh.

[0032] create threads ,in, The value should not be greater than the number of CPU cores of the telescope control system. Indicates the thread sequence number, , the number of threads and the number of star information sets One-to-one correspondence, that is, each thread corresponds A collection of star information. The thread can be created from scratch or directly applied in Q3. The calculation thread is the same as the collection. The telescope star map is refreshed only once for the first time, so it is created in Q3. Each computing thread is used only once and can be reused after the first refresh.

[0033] S42: The embodiment of the present invention uses Indicates the serial number of any time slice, , the candidate star set to be observed All star information is evenly distributed to From the star information set, multiple subsets are obtained , the subset Assigned to the thread In, that is, thread Corresponding subset .

[0034] S43: By Thread Calculating Subsets The current azimuth and elevation angles of all candidate stars to be observed in the dataset. This allows for the calculation of azimuth and elevation angles by dividing multiple candidate stars into multiple groups or batches, reducing computational time and improving efficiency.

[0035] S44: Combine the azimuth and elevation angles of all candidate stars to be observed at the previous moment, compare and make the following judgment: When transitioning from the previous moment to the current moment, if the pitch angle of the candidate star to be observed changes from less than or equal to 0° to greater than 0°, the candidate star to be observed changes from the state of being blocked by the earth to the state of not being blocked by the earth. It is considered that the candidate star to be observed has become observable at the current moment and is moved into the set of observable candidate stars. middle; When transitioning from the previous moment to the current moment, if the pitch angle of the candidate star to be observed changes from greater than 0° to less than or equal to 0°, the candidate star to be observed changes from the state of not being blocked by the earth to the state of being blocked by the earth, and it is considered that the candidate star to be observed has become unobservable at the current moment, and the observable candidate star set is Removed; When transitioning from the previous moment to the current moment, if the pitch angle of the candidate star to be observed is continuously greater than 0°, then the candidate star to be observed is continuously not blocked by the earth, and it is considered that the candidate star is continuously observable at the current moment. Update the position information of the candidate star to be observed; The observable candidate star collection Displayed in telescopic star maps.

[0036] It should be noted that after the position information of the stars to be observed contained in each time slice is calculated, it is refreshed uniformly, so the number of time slices is the number of refreshes.

[0037] If the pitch angle of the candidate star to be observed is continuously less than or equal to 0°, it means that the candidate star to be observed is continuously blocked by the earth and is continuously unobservable, and there is no need to refresh it.

[0038] Update the time slice number to Repeat S43 to S44 for the time slice to refresh the telescope star map corresponding to the next time slice. Complete the batch and multi-thread real-time refresh of the telescope star map. If there is a , then the subsets corresponding to all time slices are All candidate stars to be observed in the real-time refresh are completed once, and then all candidate stars to be observed are refreshed in real time again, that is, , restart the next round of real-time refresh.

[0039] Although the embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art may make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.

[0040] The above specific embodiments of the present invention do not constitute a limitation on the scope of protection of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A method for loading and refreshing a telescope star map, characterized in that: include: S1: According to the address of the telescope observation station, all stars that can be observed by the telescope within 24 hours are obtained as candidate stars, and the candidate stars are collected Load it into the telescope control system to complete the loading of candidate stars; S2: Preset screening conditions to screen the candidate star set The candidate stars that meet the above screening conditions are called the set of stars to be observed ; S3: Calculate the set of stars to be observed The pitch angles of all candidate stars at the current moment in the set. If the pitch angle is greater than 0°, the candidate star is called an observable candidate star. Displayed in the star map of the telescope, completing the first refresh of the telescope star map; S4: Refresh the telescope star map in real time: S41: Division Time slices, create star information collection, and create Threads ,in, The value should not be greater than the number of CPU cores of the telescope control system. Indicates the thread sequence number, ; S42: Assemble the stars to be observed The star information in is assigned to From the star information set, multiple subsets are obtained ,in Represents the sequence number of any time slice, ; The subset Assigned to the thread middle; S43: By Thread Calculating Subsets The azimuth and elevation angles of all candidate stars to be observed at the current moment; S44: Based on the azimuth and elevation angles of all candidate stars to be observed at the previous moment and the current moment, the following judgment is made: If the pitch angle of the candidate star to be observed changes from less than or equal to 0° to greater than 0°, it is considered that the candidate star to be observed has become observable at the current moment, and it is moved into the observable candidate star set middle; If the pitch angle of the candidate star to be observed changes from greater than 0° to less than or equal to 0°, it is considered that the candidate star to be observed has become unobservable at the current moment, and it is removed from the observable candidate star set. Removed; If the pitch angle of the candidate star to be observed is continuously greater than 0°, it is considered that the candidate star to be observed is continuously observable at the current moment, and is included in the observable candidate star set. In the above method, the position information of the candidate star to be observed is updated; The observable candidate star collection shown in said telescopic star map; Update the time slice number to ,like ,but , repeat S43 to S44.

2. The telescope star map loading and refreshing method according to claim 1, characterized in that: The candidate stars are all stars recorded in the Hipparcos catalog.

3. The telescope star map loading and refreshing method according to claim 1, characterized in that: The method for obtaining the candidate stars is as follows: The following judgment is made based on the latitude value of the telescope observation station address: If the latitude value is within the range of [-1°, 1°], all stars are candidate stars; If the latitude value is greater than 1°, calculate the declination value corresponding to an azimuth of 180° and an elevation of 0° , then the declination value is [ ,90°] are all candidate stars; If the latitude value is less than -1°, calculate the declination value corresponding to an azimuth of 0° and an elevation of 0° , then the declination value is [-90°, ] are all candidate stars.

4. The telescope star map loading and refreshing method according to claim 3, characterized in that: The declination values ​​are calculated using the Basic Astronomy Standard Code Toolkit and declination values .

5. The telescope star map loading and refreshing method according to claim 1, characterized in that: The screening conditions include the magnitude range of the candidate stars and the spectral type of the candidate stars.

6. The telescope star map loading and refreshing method according to claim 1, characterized in that: The observable candidate star set The display method is: Q1: Create The star collection and A one-to-one correspondence between the star sets Computation threads ,in Indicates the thread sequence number, ; Q2: Assign all observable candidate stars to the In a collection of stars; Q3: Calculate the pitch angles of all observable candidate stars in the star set corresponding to each thread at the current moment; Q4: A collection of all observable candidate stars with elevation angles greater than 0° Send to telescope for display in star map.

7. The telescope star map loading and refreshing method according to claim 1, characterized in that: The number of time slices The value is 8.

Citation Information

Patent Citations

  • Fast acquisition positioning method for space target of ground-based photoelectric telescope

    CN103017762A

  • Pulsar search parallel optimization method for processing radio telescope data

    CN113742088A

  • Star map registration method based on local polar coordinate coding

    CN115861037A

  • Detection and correction of drift in a star-tracking navigation system

    FR3141254A1