SELECT `justfunctions.eu.find_moon_illumination`("2090-01-16")
/*--Output--
1
*/
CREATE OR REPLACE FUNCTION `your_project_id.your_dataset_id.find_moon_illumination`(`date` DATE)
RETURNS FLOAT64 AS (your_project_id.your_dataset_id.find_moon_illumination__(
CAST(date AS STRING)
))
OPTIONS ( description = '''Calculates the Moon's illumination on a specific <date>, expressed as a fraction or percentage. For example, during a full moon, the illumination is near 100, while during a new moon, it is close to 0''')
SQL User Defined Function (SQL UDF)
See something wrong? Contact us or report an issue on Github.