Skip to content

Latest commit

 

History

History
151 lines (130 loc) · 7.81 KB

File metadata and controls

151 lines (130 loc) · 7.81 KB
warning DO NOT CHANGE THIS MANUALLY, THIS IS GENERATED BY https://github/duckdb/community-extensions repository, check README there
title astro
excerpt DuckDB Community Extensions Astronomical calculations + FITS file I/O - coordinate transforms, photometry, cosmology, dust extinction, sidereal time
extension
name description version language build license maintainers
astro
Astronomical calculations + FITS file I/O - coordinate transforms, photometry, cosmology, dust extinction, sidereal time
1.4.1
C++
cmake
MIT
bjoernbethge
repo
github ref
synapticore-io/astro-duck
a9f49d72ff4fd4c56a4ae0927172c15b204b910b
docs
hello_world extended_description
SELECT astro_angular_separation(10.68, 41.27, 83.82, -5.39) AS separation_deg;
The astro extension adds 62 functions (59 scalar + 3 FITS table functions) to DuckDB: coordinate transforms (equatorial / galactic frames, RA/Dec to XYZ), angular separation, photometry (magnitude/flux, distance modulus, absolute magnitude), CCM89 + O'Donnell 1994 dust extinction with UBVRIJHK bands, cosmological distances (luminosity, comoving), celestial body models (stars, brown dwarfs, planets, black holes, asteroids), Keplerian orbital mechanics, 3D octree spatial sectors, sidereal time / observation planning (GMST, LMST, hour angle, equatorial to horizontal alt/az conversion), and FITS file I/O (fits_hdus, fits_header, read_fits via cfitsio) for reading astronomical catalogs and images directly from SQL.
extension_star_count 1
extension_star_count_pretty 1
extension_download_count 798
extension_download_count_pretty 798
image /images/community_extensions/social_preview/preview_community_extension_astro.png
layout community_extension_doc

Installing and Loading

INSTALL {{ page.extension.name }} FROM community;
LOAD {{ page.extension.name }};

{% if page.docs.hello_world %}

Example

{{ page.docs.hello_world }}```
{% endif %}

{% if page.docs.extended_description %}
### About {{ page.extension.name }}
{{ page.docs.extended_description }}
{% endif %}

### Added Functions

<div class="extension_functions_table"></div>

|         function_name         | function_type | description | comment | examples |
|-------------------------------|---------------|-------------|---------|----------|
| astro_absolute_mag            | scalar        | NULL        | NULL    |          |
| astro_altaz_from_radec        | scalar        | NULL        | NULL    |          |
| astro_angular_separation      | scalar        | NULL        | NULL    |          |
| astro_body_asteroid           | scalar        | NULL        | NULL    |          |
| astro_body_black_hole         | scalar        | NULL        | NULL    |          |
| astro_body_brown_dwarf        | scalar        | NULL        | NULL    |          |
| astro_body_planet_gas_giant   | scalar        | NULL        | NULL    |          |
| astro_body_planet_ice_giant   | scalar        | NULL        | NULL    |          |
| astro_body_planet_rocky       | scalar        | NULL        | NULL    |          |
| astro_body_star_main_sequence | scalar        | NULL        | NULL    |          |
| astro_body_star_neutron       | scalar        | NULL        | NULL    |          |
| astro_body_star_white_dwarf   | scalar        | NULL        | NULL    |          |
| astro_color_excess            | scalar        | NULL        | NULL    |          |
| astro_comoving_distance       | scalar        | NULL        | NULL    |          |
| astro_const_AU                | scalar        | NULL        | NULL    |          |
| astro_const_G                 | scalar        | NULL        | NULL    |          |
| astro_const_L_sun             | scalar        | NULL        | NULL    |          |
| astro_const_M_earth           | scalar        | NULL        | NULL    |          |
| astro_const_M_sun             | scalar        | NULL        | NULL    |          |
| astro_const_R_earth           | scalar        | NULL        | NULL    |          |
| astro_const_R_sun             | scalar        | NULL        | NULL    |          |
| astro_const_c                 | scalar        | NULL        | NULL    |          |
| astro_const_ly                | scalar        | NULL        | NULL    |          |
| astro_const_pc                | scalar        | NULL        | NULL    |          |
| astro_const_sigma_sb          | scalar        | NULL        | NULL    |          |
| astro_distance_modulus        | scalar        | NULL        | NULL    |          |
| astro_dyn_gravity_accel       | scalar        | NULL        | NULL    |          |
| astro_extinction_alambda      | scalar        | NULL        | NULL    |          |
| astro_extinction_av           | scalar        | NULL        | NULL    |          |
| astro_extinction_band         | scalar        | NULL        | NULL    |          |
| astro_flux_deredden           | scalar        | NULL        | NULL    |          |
| astro_flux_to_mag             | scalar        | NULL        | NULL    |          |
| astro_frame_transform_pos     | scalar        | NULL        | NULL    |          |
| astro_frame_transform_vel     | scalar        | NULL        | NULL    |          |
| astro_gmst                    | scalar        | NULL        | NULL    |          |
| astro_hour_angle              | scalar        | NULL        | NULL    |          |
| astro_jd_from_timestamp       | scalar        | NULL        | NULL    |          |
| astro_lmst                    | scalar        | NULL        | NULL    |          |
| astro_luminosity_distance     | scalar        | NULL        | NULL    |          |
| astro_mag_deredden            | scalar        | NULL        | NULL    |          |
| astro_mag_to_flux             | scalar        | NULL        | NULL    |          |
| astro_orbit_make              | scalar        | NULL        | NULL    |          |
| astro_orbit_mean_motion       | scalar        | NULL        | NULL    |          |
| astro_orbit_period            | scalar        | NULL        | NULL    |          |
| astro_orbit_position          | scalar        | NULL        | NULL    |          |
| astro_orbit_velocity          | scalar        | NULL        | NULL    |          |
| astro_radec_to_xyz            | scalar        | NULL        | NULL    |          |
| astro_sector_bounds           | scalar        | NULL        | NULL    |          |
| astro_sector_center           | scalar        | NULL        | NULL    |          |
| astro_sector_id               | scalar        | NULL        | NULL    |          |
| astro_sector_parent           | scalar        | NULL        | NULL    |          |
| astro_unit_AU                 | scalar        | NULL        | NULL    |          |
| astro_unit_M_earth            | scalar        | NULL        | NULL    |          |
| astro_unit_M_sun              | scalar        | NULL        | NULL    |          |
| astro_unit_length_to_m        | scalar        | NULL        | NULL    |          |
| astro_unit_ly                 | scalar        | NULL        | NULL    |          |
| astro_unit_mass_to_kg         | scalar        | NULL        | NULL    |          |
| astro_unit_pc                 | scalar        | NULL        | NULL    |          |
| astro_unit_time_to_s          | scalar        | NULL        | NULL    |          |
| fits_hdus                     | table         | NULL        | NULL    |          |
| fits_header                   | table         | NULL        | NULL    |          |
| read_fits                     | table         | NULL        | NULL    |          |

### Overloaded Functions

<div class="extension_functions_table"></div>

This extension does not add any function overloads.

### Added Types

<div class="extension_types_table"></div>

This extension does not add any types.

### Added Settings

<div class="extension_settings_table"></div>

This extension does not add any settings.