## matlab-astrometry

Versión 19.0312 (8.14 MB) por
A Matlab class to annotate astrophotography images (identify objects/astrometry)

162 descargas

De GitHub

astrometry: A Matlab class to annotate astrophotography images (identify objects/astrometry)

#matlab-astrometry

Purpose
-------

This Matlab class allows to use the astrometry.net software, either installed
locally, or through internet connection, in order to solve (annotate)
astrophotography images.

Syntax/Usage
------------

First navigate to the matlab-astrometry directory or type:

Then use:

as = astrometry;
Create a solver, but does not solve.
Use solve(as, file) or local(as, file) or web(as, file) afterwards.

as = astrometry(file, ...); image(as);
Solve the given astrophotography image with local or web method.
Then plot the result. Additional arguments may include name/value pairs
(see example below):

ra: approximate RA coordinate (e.g. deg or 'hh:mm:ss')
dec: approximate DEC coordinate (e.g. deg or 'deg:mm:ss')
radius: approximate field size (in deg)
scale-low: lower estimate of the field coverage (in [deg], e.g. 0.1)
scale-high: upper estimate of the field coverage (in [deg], e.g. 180)

These two syntaxes will try first any local astrometry.net installation, and
if failed, the http://nova.astrometry.net/ service.

Going further
-------------

Read an existing Astrometry.net set of files stored in a given directory.
The directory may contain WCS, CORR, RDLS, JSON, and image.
Then plot the result. This allows to get previous data files, or obtained
externally, and label them. The 'as' astrometry object must have been used
to solve or import astrometry data.

[x,y] = sky2xy(as, ra, dec)
Convert a RA/DEC set of coordinates (in [deg] or 'hh:mm:ss'/'deg::mm:ss')
into pixel coordinates on the image. The 'as' astrometry object must have
been used to solve or import astrometry data.

[ra, dec] = xy2sky(as, x,y)
[ra, dec] = xy2sky(as, x,y, 'string')
Convert pixel coordinates on the image into a RA/DEC set of coordinates
(in [deg]). When given a 'string' argument, the result is given in
'hh:mm:ss'/'deg:mm:ss'. The 'as' astrometry object must have been used
to solve or import astrometry data.

f = astrometry.findobj('object name')
Return information about a named object (star, deep sky object) from the
data base. Example: astrometry.findobj('M33')

as = astrometry.local(file, ...);
Explicitly use the local 'solve-field' astrometry.net installation.
See above for the additional arguments.

as = astrometry.web(file, ...);
Explicitly use the http://nova.astrometry.net/ web service.
See above for the additional arguments.

web(as)
For a solved image, the corresponding sky view is displayed on
http://www.sky-map.org . The 'as' astrometry object must have been used
to solve or import astrometry data.

Using results
---------
Once an image has been solved with the 'as' object, you can use the astrometry results.

The annotation is done asynchronously, and the Matlab prompt is recovered.
You may use getstatus(as) to inquire for the solve-plate status (running, success, failed).
To wait for the end of the annotation, use waitfor(as).

* as.result.RA and as.result.Dec provide the center coordinates of the
field (in [deg]), while as.result.RA_hms and as.result.Dec_dms provide the
'HH:MM:SS' and 'Deg:MM:SS' coordinates.
* The field rotation wrt sky is stored in as.result.rotation.
* The pixel scale is given in [arcmin/pixel] as as.result.pixel_scale.
* The field extension is given with its bounds as as.result.RA_min, as.result.RA_max,
as.result.Dec_min, and as.result.Dec_min.
* The constellation name is stored in as.result.Constellation.

Improving the plate-solve efficiency
------------------------------------

To facilitate the plate-solve/annotation of images, you may:

* specify the field size with additional arguments such as:
astrometry(..., 'scale-low', 0.5, 'scale-high',2)

* provide an initial guess for the location, and its range, such as:

* add more star data bases (e.g. 2MASS over Tycho2).

Examples
--------

as=astrometry('examples/M13-2018-05-19.jpg','scale-low', 0.5, 'scale-high',2);
image(as);

Methods
-------

as=astrometry(filename)
image(as)
local(astrometry, filename, ...)
web(astrometry, filename, ...)
sky2sx(as, ra, dec)
xy2sky(as, x, y)
findobj(as, 'name')
waitfor(as)

Installation:
-------------

Local installation (recommended)

On Linux systems, install the 'astrometry.net' package, as well as the
'tycho2' data base. On Debian-class systems, this is achieved with:

sudo apt install astrometry.net astrometry-data-tycho2 sextractor

On other systems, you will most probably need to compile it.
See: http://astrometry.net/doc/build.html
RedHat/Arch/MacOSX have specific installation instructions.

### Citar como

Emmanuel Farhi (2023). matlab-astrometry (https://github.com/farhi/matlab-astrometry), GitHub. Recuperado .

##### Compatibilidad con la versión de MATLAB
Se creó con R2010a
Compatible con cualquier versión
Windows macOS Linux
##### Categorías
Más información sobre Image Filtering and Enhancement en Help Center y MATLAB Answers.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

#### private

No se pueden descargar versiones que utilicen la rama predeterminada de GitHub

Versión Publicado Notas de la versión
19.0312

now use an asynchronous solve-plate (get back prompt, computation in background).

18.1211
{"ft_lang_label":"__label__en","ft_lang_prob":0.5302786,"math_prob":0.45035535,"size":5567,"snap":"2023-40-2023-50","text_gpt3_token_len":1469,"char_repetition_ratio":0.14848104,"word_repetition_ratio":0.0754717,"special_character_ratio":0.2638764,"punctuation_ratio":0.22113676,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95589733,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-10-01T11:34:05Z\",\"WARC-Record-ID\":\"<urn:uuid:f98e7245-97d2-4109-98f4-bbd76b00720a>\",\"Content-Length\":\"97652\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6fcb7f2e-ee87-4d81-8383-b05d72656d8e>\",\"WARC-Concurrent-To\":\"<urn:uuid:d102c3d4-e82a-403a-809a-74824c89ae66>\",\"WARC-IP-Address\":\"104.86.80.92\",\"WARC-Target-URI\":\"https://es.mathworks.com/matlabcentral/fileexchange/68659-matlab-astrometry\",\"WARC-Payload-Digest\":\"sha1:N5TSSKTUOBU4YHDU46HE7ZWKZLDCVOFG\",\"WARC-Block-Digest\":\"sha1:363MWDVUDMYEI5TWIDBH5MRIPMG5A6M2\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510888.64_warc_CC-MAIN-20231001105617-20231001135617-00200.warc.gz\"}"}