MCPcopy Create free account

hub / github.com/DPhi-Space/SimSat / functions

Functions89 in github.com/DPhi-Space/SimSat

↓ 18 callersFunction_json_error
(message: str, status: int = 400)
src/dashboard/simulation/views.py:14
↓ 4 callersFunction_request_get
(endpoint: str, params: Optional[Dict[str, Any]] = None)
scripts/api_test.py:15
↓ 4 callersFunctionformat_timestamp_utc
(timestamp)
src/sim/api.py:32
↓ 4 callersFunctionsendCommand
( command: Command["command"], parameters?: Command["parameters"] )
src/dashboard/frontend/src/api.ts:30
↓ 3 callersMethodget_target_image
(self, sat_lon, sat_lat, sat_alt, target_lon, target_lat)
src/sim/ImagingProviders/mapbox_provider.py:18
↓ 3 callersFunctionhandleCommand
(command: "start" | "pause" | "stop")
src/dashboard/frontend/src/SimulationControls.tsx:39
↓ 3 callersMethodreset
(self)
src/sim/simulator.py:37
↓ 2 callersFunction_show_png
(content: bytes, title: str)
scripts/api_test.py:31
↓ 2 callersMethod_spherical_to_cartesian
(self, lon, lat, radius)
src/sim/ImagingProviders/mapbox_provider.py:107
↓ 2 callersFunction_test_mapbox_endpoint
(endpoint: str, params: Dict[str, Any])
scripts/api_test.py:85
↓ 2 callersFunction_test_sentinel_endpoint
(endpoint: str, params: Dict[str, Any])
scripts/api_test.py:49
↓ 2 callersMethodget_single_image_lon_lat
( self, lon, lat, timestamp, data_type="png", spectral_bands=[
src/sim/ImagingProviders/sentinel_provider.py:15
↓ 2 callersFunctionserialize_xarray_dataset
(ds)
src/sim/api.py:15
↓ 2 callersMethodset_start_time
(self, start_time)
src/sim/simulator.py:152
↓ 1 callersMethod_parse_start_time
(self, start_time)
src/sim/simulator.py:133
↓ 1 callersMethod_publish_satellite_ground_position
(self, utcg_time, sim_time)
src/sim/simulator.py:84
↓ 1 callersMethodbuild_stac_datetime_window
(self, timestamp, window_seconds=10 * 24 * 60 * 60)
src/sim/ImagingProviders/sentinel_provider.py:104
↓ 1 callersFunctionfetchRecentTelemetry
()
src/dashboard/frontend/src/api.ts:25
↓ 1 callersMethodfetch_commands
(self)
src/gui.py:86
↓ 1 callersMethodfetch_commands
(self)
src/sim/gui.py:77
↓ 1 callersFunctionformatTime
(isoString: string | null)
src/dashboard/frontend/src/TelemetryPanel.tsx:8
↓ 1 callersMethodformat_timestamp_utc_z
(self, timestamp)
src/sim/ImagingProviders/sentinel_provider.py:63
↓ 1 callersMethodget_bbox_around_lon_lat
Create a bounding box (min_lon, min_lat, max_lon, max_lat) around a given lon/lat point.
src/sim/ImagingProviders/sentinel_provider.py:126
↓ 1 callersFunctionget_image
(data)
scripts/mapbox_dataset_generator.py:28
↓ 1 callersMethodget_orbital_location
(self, time)
src/sim/simulator.py:32
↓ 1 callersFunctionget_random_image_parameters
()
scripts/mapbox_dataset_generator.py:39
↓ 1 callersMethodget_single_array_image_bbox
(self, bbox, datetime, spectral_bands=['red', 'green', 'blue'])
src/sim/ImagingProviders/sentinel_provider.py:72
↓ 1 callersMethodhandle_commands
(self, command: str, parameters: dict)
src/gui.py:52
↓ 1 callersMethodhandle_commands
(self, command: str, parameters: dict)
src/sim/gui.py:41
↓ 1 callersMethodimage_to_png
(self, image_data, spectral_bands=['red', 'green', 'blue'])
src/sim/ImagingProviders/sentinel_provider.py:152
↓ 1 callersFunctionmain
(timing, time_step)
src/sim/main.py:17
↓ 1 callersFunctionmain
Run administrative tasks.
src/dashboard/manage.py:6
↓ 1 callersMethodpause_simulation
(self)
src/gui.py:106
↓ 1 callersMethodpause_simulation
(self, parameters)
src/sim/gui.py:97
↓ 1 callersFunctionpoll
()
src/dashboard/frontend/src/App.tsx:14
↓ 1 callersMethodreset_simulation
(self)
src/gui.py:114
↓ 1 callersMethodreset_simulation
(self, parameters)
src/sim/gui.py:105
↓ 1 callersMethodsend_telemetry
(self, lat, lon, alt_km, time )
src/gui.py:63
↓ 1 callersMethodsend_telemetry
(self, lat, lon, alt_km, time )
src/sim/gui.py:54
↓ 1 callersMethodset_sim_speed
(self, step_size: int, replay_speed: float)
src/sim/simulator.py:119
↓ 1 callersMethodset_start_time
(self, parameters)
src/sim/gui.py:113
↓ 1 callersMethodsim_step
(self)
src/sim/simulator.py:44
↓ 1 callersMethodstart_simulation
(self)
src/gui.py:97
↓ 1 callersMethodstart_simulation
(self, parameters)
src/sim/gui.py:88
↓ 1 callersMethodtick
(self)
src/sim/simulator.py:75
↓ 1 callersMethodto_dict
Convert command to JSON-serializable dict.
src/dashboard/simulation/models.py:83
FunctionApp
()
src/dashboard/frontend/src/App.tsx:7
FunctionCheckIcon
()
src/dashboard/frontend/src/SimulationControls.tsx:27
FunctionGlobeView
({ telemetry })
src/dashboard/frontend/src/GlobeView.tsx:10
FunctionPauseIcon
()
src/dashboard/frontend/src/SimulationControls.tsx:15
FunctionPlayIcon
()
src/dashboard/frontend/src/SimulationControls.tsx:9
FunctionSimulationControls
()
src/dashboard/frontend/src/SimulationControls.tsx:33
FunctionStopIcon
()
src/dashboard/frontend/src/SimulationControls.tsx:21
FunctionTelemetryPanel
({ latest })
src/dashboard/frontend/src/TelemetryPanel.tsx:18
Method__init__
(self)
src/gui.py:30
Method__init__
(self)
src/sim/gui.py:19
Method__init__
(self, name, TLE, t0=None, timing_mode=0, time_step=10)
src/sim/simulator.py:17
Method__init__
(self, shared_data_dict)
src/sim/camera.py:7
Method__init__
(self)
src/sim/ImagingProviders/mapbox_provider.py:11
Method__init__
(self)
src/sim/ImagingProviders/sentinel_provider.py:11
Method__str__
(self)
src/dashboard/simulation/models.py:15
Method__str__
(self)
src/dashboard/simulation/models.py:44
Method__str__
(self)
src/dashboard/simulation/models.py:80
Functioncommands
GET /api/commands/ -> simulator polls to fetch all unconsumed commands (in order) POST /api/commands/ -> dashboard adds a command to the q
src/dashboard/simulation/views.py:125
Functionget_mapbox_image
( lon: Optional[float] = Query(default=None, description="Target longitude (defaults to current satellite
src/sim/api.py:133
Functionget_mapbox_image_lon_lat
( lon_target: float = Query(..., description="The longitude of the target location", ge=-180, le=180),
src/sim/api.py:242
Functionget_metrics
()
src/sim/api.py:56
Functionget_sentinel_image
( spectral_bands: List[str] = Query(default=["red", "green", "blue"]), size_km: float = 5.0, windo
src/sim/api.py:67
Functionget_sentinel_image_lon_lat
( lon: float = Query(..., description="The longitude of the location", ge=-180, le=180), lat: float =
src/sim/api.py:181
FunctionhandleSetReplaySpeed
()
src/dashboard/frontend/src/SimulationControls.tsx:80
FunctionhandleSetStartTime
()
src/dashboard/frontend/src/SimulationControls.tsx:55
FunctionhandleSetStepSize
()
src/dashboard/frontend/src/SimulationControls.tsx:68
Methodon_command
(self, sender, data)
src/sim/simulator.py:95
Methodon_satellite_ground_position
(self, sender, data, time)
src/gui.py:36
Methodon_satellite_ground_position
(self, sender, data, time)
src/sim/gui.py:25
Methodon_satellite_ground_position
(self, sender, data, time)
src/sim/camera.py:12
Methodon_sim_tick
(self, sender, data)
src/gui.py:45
Methodon_sim_tick
(self, sender, data)
src/sim/gui.py:34
Functionroot
()
src/sim/api.py:276
Functionrun_api
(shared_data_dict)
src/sim/main.py:46
Functionrun_sim
(shared_data_dict, timing, time_step)
src/sim/main.py:50
Methodscale_rgb_255
Normalize 16-bit reflectance to 0-255 for display
src/sim/ImagingProviders/sentinel_provider.py:159
Functiontelemetry_ingest
POST /api/telemetry/ Expected JSON: { "satellite": "SAT-1", # name or identifier "timestamp": "ISO-8601 UTC",
src/dashboard/simulation/views.py:19
Functiontelemetry_recent
GET /api/telemetry/recent/ Returns the latest telemetry for each active satellite (most recently pushed, by updated_at).
src/dashboard/simulation/views.py:92
Functiontest_mapbox
()
scripts/api_test.py:206
Functiontest_mapbox_current
()
scripts/api_test.py:198
Functiontest_sentinel
()
scripts/api_test.py:113
Functiontest_sentinel_current
()
scripts/api_test.py:103
Functiontest_sentinel_multispectral
()
scripts/api_test.py:126