├── .gitattributes ├── .gitignore ├── AM-favicon.png ├── AstroMosaic.html ├── AstroMosaicEngine.js ├── AstroMosaicEngine.py ├── AstroMosaicEngineExample.html ├── AstroMosaicEngineExample.py ├── README.md ├── information-outline.png ├── menu-24px.svg ├── tutorial-system.css └── tutorial-system.js /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.bat 2 | *.pyc 3 | .vscode 4 | .tmp.driveupload 5 | -------------------------------------------------------------------------------- /AM-favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarmoruuth/AstroMosaic/726029baec2c9c44a381f4425cb3e0837a3146b4/AM-favicon.png -------------------------------------------------------------------------------- /AstroMosaicEngine.js: -------------------------------------------------------------------------------- 1 | /*************************************************************************\ 2 | * 3 | * AstroMosaic telescope planner engine. (C) Jarmo Ruuth, 2018-2025 4 | * 5 | * An embeddable JavaScript file of AstroMosaic engine. 6 | * It can show: 7 | * - Target with telescope field of view using Aladin Lite 8 | * - Target day visibility graphs 9 | * - Target year visibility graphs 10 | * 11 | \*************************************************************************/ 12 | 13 | /************************************************************************* 14 | * 15 | * AstroMosaicEngine 16 | * 17 | * AstroMosaic entry point for embedded Javascript. 18 | * 19 | * Notes: 20 | * - If calling AstroMosaicEngine multiple times Aladin view may show 21 | * multiple views. This can be solved by setting AstroMosaicEngine 22 | * return object to null before calling it again. 23 | * 24 | * Parameters: 25 | * 26 | * target 27 | * Image target as a name, coordinates or a comma 28 | * Separated list of coordinates. 29 | * 30 | * params 31 | * Parameters in JSON format for showing the requested view 32 | * or views. 33 | * { 34 | * fov_x : x fov in degrees, 35 | * fov_y : y fov in degrees, 36 | * grid_type : grid type, "fov" or "mosaic", if not set, "fov" is used, 37 | * grid_size_x : number of grid panels in x direction, if not set, 1 is used 38 | * grid_size_y : number of grid panels y direction, if not set, 1 is used 39 | * grid_overlap : grid overlap in percentage, if not set, 20 is used 40 | * location_lat : location latitude, 41 | * location_lng : location longitude, 42 | * horizonSoft : soft horizon limit or null, 43 | * horizonHard : hard horizon limit or null, 44 | * meridian_transit : meridian transit or null, 45 | * UTCdate_ms : start of day UTC date in milliseconds 46 | * or null for current day, 47 | * timezoneOffset : difference between UTC time and local time, in hours, 48 | * null for UTC, should match with lat/lng 49 | * isCustomMode : true to use custom colors, false otherwise 50 | * if true, all custom colors below must be given, 51 | * chartTextColor : custom chart text color, 52 | * gridlinesColor : custom chart grid lines color, 53 | * backgroundColor : custom chart background color 54 | * } 55 | * 56 | * target_div 57 | * Div section name for showing the target view, or null. 58 | * 59 | * day_div 60 | * Div section name for showing the day visibility view, or null. 61 | * 62 | * year_div 63 | * Div section name for showing the year visibility view, or null. 64 | * 65 | * radec_div 66 | * Div section name for showing target coordinates, or mosaic panel coordinates. 67 | * 68 | * Requirements: 69 | * 70 | * Aladin Lite needs the following CSS to be loaded:: 71 | * 72 | * 73 | * Aladin Lite needs the following scripts to be loaded: 74 | * 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 | 50 |