1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-08 17:46:03 -05:00
sdrangel/plugins/feature/startracker/readme.md

233 lines
13 KiB
Markdown
Raw Normal View History

2021-01-13 15:51:38 -05:00
<h1>Star Tracker Feature Plugin</h1>
<h2>Introduction</h2>
The Star Tracker feature plugin is for use in radio astronomy and EME (Earth-Moon-Earth) communication.
It calculates the azimuth and elevation of celestial objects and can send them to the Rotator Controller or other plugins to point an antenna at that object.
The overhead position of the Sun, Moon and selected star can be displayed on the Map Feature.
It can display local Sidereal time, solar flux density and sky temperature.
2021-01-13 15:51:38 -05:00
The plugin can communicate with Stellarium, allowing Stellarium to control SDRangel as though it was a telescope and for the direction the antenna is pointing to be displayed in Stellarium.
<h2>Settings</h2>
2021-01-13 15:51:38 -05:00
![Star Tracker feature plugin GUI](../../../doc/img/StarTracker_plugin.png)
<h3>1: Start/Stop plugin</h3>
This button starts or stops the plugin. The plugin will only calculate azimuth and elevation or communicate with Stellarium when started.
<h3>2: Find target on map</h3>
Pressing this button centres the Map Feature (if open) on the current target.
<h3>3:Download Solar flux density data</h3>
Pressing this button downloads the Solar flux density data from the DRAO and Learmonth Observatories.
<h3>4: Set latitude and longitude from My Position</h3>
2021-01-13 15:51:38 -05:00
When clicked, it sets the latitude, longitude and height fields to the values from SDRangel's My Position preferences.
<h3>5: Show settings dialog</h3>
2021-01-13 15:51:38 -05:00
Pressing this button displays a settings dialog, that allows you to set:
* The epoch used when entering RA and Dec. This can be either J2000 (which is used for most catalogues) or JNOW which is the current date and time.
* The units used for the display of the calculated azimuth and elevation. This can be either degrees, minutes and seconds or decimal degrees.
2021-01-29 11:47:07 -05:00
* Whether to correct for atmospheric refraction. You can choose either no correction, the Saemundsson algorithm, typically used for optical astronomy or the more accurate Positional Astronomy Library calculation, which can be used for >250MHz radio frequencies or light. Note that there is only a very minor difference between the two.
2021-01-13 15:51:38 -05:00
* Air pressure in millibars for use in refraction correction.
* Air temperature in degrees Celsius for use in refraction correction.
* Relative humidity in % for use in refraction correction.
* Height above sea level in metres for use in refraction correction.
2021-01-29 11:47:07 -05:00
* Temperature lapse rate in Kelvin per kilometre for use in refraction correction.
* What data to display for the Solar flux measurement. Data can be selected from 2800 from DRAO or a number of different frequencies from Learmonth. Also, the Learmonth data can be linearly interpolated to the observation frequency set in the main window.
* The units to display the solar flux in, either Solar Flux Units, Jansky or Wm^-2Hz-1. 1 sfu equals 10,000 Jansky or 10^-22 Wm^-2Hz-1.
2021-01-13 15:51:38 -05:00
* The update period in seconds, which controls how frequently azimuth and elevation are re-calculated.
* The IP port number the Stellarium server listens on.
* Whether to start a Stellarium telescope server.
* Whether to draw the Sun in the map.
* Whether to draw the Moon on the map.
* Whether to draw the target star (or galaxy) on the map.
<h3>6: Latitude</h3>
2021-01-13 15:51:38 -05:00
Specifies the latitude in decimal degrees (North positive) of the observation point (antenna location).
2021-01-13 15:51:38 -05:00
<h3>7: Longitude</h3>
2021-01-13 15:51:38 -05:00
Specifies the longitude in decimal degrees (East positive) of the observation point (antenna location).
2021-01-13 15:51:38 -05:00
<h3>8: Time</h3>
2021-01-13 15:51:38 -05:00
Select the date and time at which the position of the target should be calculated. Select either Now, for the current time, or Custom to manually enter a date and time.
<h3>9: LST - Local Sidereal Time</h3>
The LST field displays the local sidereal time at the specified location (6&7) and Solar time (8).
<h3>10: Solar Flux</h3>
Displays the Solar flux density. The observatory where the data is sourced from, frequency and units can be set in the Settings dialog (5). The field is updated every 24 hours, or can be manually by pressing the download Solar flux density data button (3).
<h3>11: Target</h3>
2021-01-13 15:51:38 -05:00
Select a target object to track from the list.
To manually enter RA (right ascension) and Dec (declination) of an unlisted target, select Custom.
To allow Stellarium to set the RA and Dec, select Custom, and ensure the Stellarium Server option is checked in the Star Tracker Settings dialog.
| Target | Type | Details | Flux density (Jy) |
|------------------|-------------------|------------------------------------------------|---------------------------------------------
| Sun | Star | Targets our Sun | 10k-10M (50MHz), 500k-10M (1.4GHz) |
| Moon | Moon | Targets our Moon | 2 (50MHz), 1000 (1.4GHz) |
| PSR B0329+54 | Pulsar | Strongest in Northern hemisphere (J0332+5434) | 1.8 (50MHz), 1.5 (400MHz), 0.2 (1.4GHz) |
| PSR B0833-45 | Pulsar | Strongest in Southern hemisphere (J0835-4510) | 5.4 (150MHz), 5.0 (400MHz), 1.0 (1.4GHz) |
2021-01-29 11:47:07 -05:00
| Sagittarius A | Galactic centre | First detected source of extrasolar radio | ~0.5 (<1GHz) for Sgr A* |
2021-01-13 15:51:38 -05:00
| Cassiopeia A | Supernova | Brightest extrasolar radio source | 27k (50MHz), 10k (150MHz), 1768 (1.4GHz) |
| Cygnus A | Galaxy | First radio galaxy | 22k (50MHz), 11k (150MHz), 1579 (1.4GHz) |
| Taurus A (M1) | Supernova/Pulsar | Crab Nebular | 2008 (50MHz), 1368 (150MHz), 829 (1.4GHz) |
| Virgo A (M87) | Galaxy | | 2635 (50MHz), 1209 (150MHz), 212 (1.4GHz) |
| Custom | | Manually enter RA and Dec | |
References:
* ATNF Pulsar Catalogue - https://www.atnf.csiro.au/research/pulsar/psrcat/
* Cassiopeia A, Cygnus A, Taurus A, and Virgo A at ultra-low radio frequencies - https://research.chalmers.se/publication/516438/file/516438_Fulltext.pdf
* Repeating Jansky - https://www.gb.nrao.edu/~fghigo/JanskyAntenna/RepeatingJansky_memo10.pdf
<h3>12: Frequency</h3>
Enter the frequency of observation in MHz. This value is used for sky temperature and refraction calculations.
<h3>13: Beamwidth</h3>
2021-01-29 11:47:07 -05:00
Enter the half power (-3dB) beamwidth of your antenna. This value is used for sky temperature calculation.
<h3>14: Right Ascension</h3>
2021-01-13 15:51:38 -05:00
When target is set to Custom, you can specify the right ascension in hours of the target object. This can be specified as a decimal (E.g. 12.23, from 0 to 24) or in hours, minutes and seconds (E.g. 12h05m10.2s or 12 05 10.2). Whether the epoch is J2000 or JNOW can be set in the Star Tracker Settings dialog.
<h3>15: Declination</h3>
2021-01-13 15:51:38 -05:00
When target is set to Custom, you can specify the declination in degrees of the target object. This can be specified as a decimal (E.g. 34.6, from -90.0 to 90.0) or in degrees, minutes and seconds (E.g. 34d12m5.6s, 34d12'5.6" 34 12 5.6). Whether the epoch is J2000 or JNOW can be set in the Star Tracker Settings dialog.
<h3>16: Azimuth</h3>
2021-01-13 15:51:38 -05:00
Displays the calculated azimuth (angle in degrees, clockwise from North) to the object.
<h3>17: Elevation</h3>
2021-01-13 15:51:38 -05:00
Displays the calculated elevation (angle in degrees - 0 to horizon and 90 to zenith) to the object.
<h2>Plots</h2>
<h3>Elevation vs time</h3>
![Star Tracker Elevation vs Time](../../../doc/img/StarTracker_elevationvstime.png)
2021-01-13 15:51:38 -05:00
2021-01-29 11:47:07 -05:00
In order to assist in determining whether and when observations of the target object may be possible, an elevation vs time plot is drawn for the 24 hours encompassing the selected date and time.
Some objects may not be visible from a particular latitude for the specified time, in which case, the graph title will indicate the object is not visible on that particular date.
2021-01-13 15:51:38 -05:00
<h3>Solar flux vs frequency</h3>
![Star Tracker Solar Flux](../../../doc/img/StarTracker_solarflux.png)
2021-01-29 11:47:07 -05:00
The Solar flux vs frequency plot, shows the solar flux density data from the Learmonth observatory as a function of frequency. The measurements are made at 245, 410, 610, 1415, 2695, 4995, 8800 and 15400MHz.
<h3>Sky temperature</h3>
![Star Tracker sky temperature](../../../doc/img/StarTracker_skytemp.png)
2021-01-29 11:47:07 -05:00
Background sky temperature maps are available for display at 150MHz, 408MHz and 1420MHz, in both equatorial and galactic coordinates.
For these first six temperature maps, the temperature reported, which is in Kelvin, is for the single pixel corresponding to the target coordinates.
This temperature is therefore valid for a beamwidth of less than 1 degree.
2021-01-29 11:47:07 -05:00
The Star Tracker plugin can also estimate a sky temperature based on the user entered observation frequency and beamwidth.
To see this figure, which will be typically lower than the above, select one of the last two temperature maps from the right hand combo box.
2021-01-13 15:51:38 -05:00
<h2>Map</h2>
The Star Tracker feature can send the overhead position of the Sun, Moon and target Star to the Map. These can be enabled individually in the settings dialog. The Moon should be displayed with an approximate phase. Stars (or galaxies) are displayed as an image of a pulsar.
2021-01-15 05:31:39 -05:00
![StarTracker map](../../../doc/img/StarTracker_map.png)
2021-01-13 15:51:38 -05:00
When using the Find feature in the Map GUI, you can search for "Sun", "Moon" or "Star".
<h2>Stellarium Interface</h2>
In Star Tracker:
* Set target to Custom
* Press Show settings dialog and ensure Stellarium server is checked
* Press Start
Then in Stellarium:
* Enable Telescope Control plugin and restart
* Press the telescope button in the main toolbar
* Press "Configure telescopes..."
* Press "Add a new telescope"
2021-01-29 11:47:07 -05:00
* Set "Telescope controlled by" to "External software or a remote computer"
2021-01-13 15:51:38 -05:00
* Set "Name" to "SDRangel" (Optional)
* Set "Coordinate system" to "J2000 (default)"
* Press OK
* Press Connect
* Enter Right Ascension/Declination or press "Current object" to get RA/Dec of currently selected object
* Press "Slew" to send the RA/Dec to Star Tracker
Star Tracker will continually send the RA/Dec of its target to Stellarium and this should be displayed in Stellarium with a crosshair/reticle and the label SDRangel (or whatever name you entered for the telescope).
To see the rough field of view of your antenna, open the Ocular configuration window and under Eyepieces, add a new eyepiece with name SDRangel.
Set aFOV to the half-power beam width of your antenna, focal length to 100 and field stop to 0.
Then select the SDRangel telescope reticle and press Ocular view.
<h2>Attribution</h2>
Solar radio flux measurement at 10.7cm/2800MHz is from National Research Council Canada and Natural Resources Canada: https://www.spaceweather.gc.ca/solarflux/sx-4-en.php
2021-01-29 11:47:07 -05:00
Solar radio flux measurements at 245, 410, 610, 1415, 2695, 4995, 8800 and 15400MHz from the Learmonth Observatory: http://www.sws.bom.gov.au/World_Data_Centre/1/10
150MHz (Landecker and Wielebinski) and 1420MHz (Stockert and Villa-Elisa) All Sky images from MPIfR's (Max-Planck-Institut Fur Radioastronomie) Survey Sampler: https://www3.mpifr-bonn.mpg.de/survey.html
408MHz (Haslam) destriped (Platania) All Sky image and spectral index (Platania) from Strasbourg astronomical Data Center: http://cdsarc.u-strasbg.fr/viz-bin/cat/J/A+A/410/847
2021-01-13 15:51:38 -05:00
Icons are by Adnen Kadri and Erik Madsen, from the Noun Project Noun Project: https://thenounproject.com/
Icons are by Freepik from Flaticon https://www.flaticon.com/
<h2>API</h2>
Full details of the API can be found in the Swagger documentation. Here is a quick example of how to set the target to the Moon at the current time:
curl -X PATCH "http://127.0.0.1:8091/sdrangel/featureset/0/feature/0/settings" -d '{"featureType": "StarTracker", "StarTrackerSettings": { "target": "Moon", "dateTime": "" }}'
Or to a custom RA and declination on a given date and time:
curl -X PATCH "http://127.0.0.1:8091/sdrangel/featureset/0/feature/0/settings" -d '{"featureType": "StarTracker", "StarTrackerSettings": { "target": "Custom", "ra": "03h32m59.35s", "dec": "54d34m45.05s", "dateTime": "1921-04-15T10:17:05" }}'
To start tracking:
curl -X POST "http://127.0.0.1:8091/sdrangel/featureset/0/feature/0/run"
2021-01-29 11:47:07 -05:00
<h2>Developer Notes</h2>
To convert FITS images between projections, use Montage:
sudo apg-get install montage wcslib-tools
Create header for desired output image. E.g. For galatic coordinates, 0.3deg per pixel, covering 360/180 degrees:
mHdr -c ga -p 1200 -h 180.0 "0.0 +0.0" 360 header.hdr
This uses a gnomonic projection. To change to cylindrical/plate carree, with the centre of the galaxy at the centre of the image, edit header.hdr to have:
CTYPE1 = 'GLON-CAR'
CTYPE2 = 'GLAT-CAR'
CRVAL1 = 0
CRVAL2 = 0
Then convert with:
mProjectQL source.fits dest.fits header.hdr
FITS files can be scaled (Scale > ZScale) and exported to .png with SAOImageDS9: https://sites.google.com/cfa.harvard.edu/saoimageds9