Mars Weather Report - Is this possable?

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Posts: 5
Joined: 30.09.2002
With us: 16 years 7 months

Mars Weather Report - Is this possable?

Post #1by halkun » 12.03.2019, 19:19

So, for reasons that are strange I have wound up with one of my walls painted bright green. One day, I was thinking, "wouldn't it be fun to make a Mars weather report like it was a local weather report?" I would stand in front of a mars globe and point out how "It's a balmy -11 degrees today at Tharsis" with H and Ls and local temps...

Well, it turns out, you actually have global weather data from Nasa freely available! You can even generate maps and pull "Local" weather conditions from the probes on the surface! Cool... Now I need to make some fun animations...

I was playing with Blender but I'm looking for something a little more realtime. Something where I have the camera as a wide view of the planet and then I can zoom in on various parts like a satellite view.. I will also like to "fade in" overlays like temperature heat maps and also animate a 5 day forecast. The data is no problem, and I can make the maps. but can you do that with scripting with Celestia? Where would you start? I'm assuming Lua would be my best bet?

Posts: 10051
Joined: 04.09.2002
With us: 16 years 8 months
Location: NY, USA

Post #2by selden » 12.03.2019, 20:09

Yes, it can be done, although writing the script doubtless would take some time.

Both .CEL and .CELX scripts can be used to adjust Celestia's viewpoint, take it to specified locations and display textual information on the screen. .CEL scripts are easier to write but don't have the looping and other functionality that .CELX scripts (which are written in Lua) can provide.

CEL scripting, including equivalent .CELX code, is documented in the Celestia WikiBook. See, for example,

Scripting user guides are available on the documentation page at

Scripts that you might be able to use as starting points are available on the Celestia Motherlode at

Return to “Scripting”

Who is online

Users browsing this forum: 1 guest