Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : CelestLab details
Please login or create an account


CNES Space Mechanics Toolbox for Mission Analysis
(583 downloads for this version - 78817 downloads for all versions)
Owner Organization
Alain Lamy
Thierry Martin
Creation Date
August 4, 2020
Source created on
Scilab 6.1.x
Binaries available on
Scilab 6.1.x:
Windows 64-bit Windows 32-bit Linux 64-bit Linux 32-bit MacOSX
Install command
--> atomsInstall("celestlab")
CelestLab - CNES Space Mechanics Toolbox for Scilab 
Version 3.4.0			     

CelestLab is a Scilab toolbox for Space Flight Dynamics. 

It has been developed by CNES (Centre National d'Etudes Spatiales - 
French Space Agency) for mission analysis purposes.

CelestLab can be used for trajectory analysis and orbit
design for various types of space missions. 
It allows engineers to perform tasks such as: orbit propagation, attitude
computation, elementary manoeuvre computation, change of coordinate systems,

CelestLab comes with an extension module called CelestLabX.  
The features in CelestLab that require CelestLabX to be installed are
related to: 
- STELA: CNES orbit long-term propagation software
- Two Line Elements 
- MSIS2000 atmospheric model 

- CelestLab can be used with Scilab versions 5.5.x to 6.1 
- The version of CelestLabX that should be used is 3.4.0 

- CelestLabX Atoms page for more details about CelestLabX:
- The detailed changelog in CelestLab menu for more information about what has
changed in CelestLab compared to the previous version. 

Files (2)
[64.41 MB]
OS-independent binary for Scilab 6.1.x
Binary version for Scilab 6.1 (platform independent) 
[57.07 MB]
Source code archive

News (0)
Comments (2)     Leave a comment 
Comment from Hani Ibrahim -- August 27, 2020, 09:58:41 AM    
There is a BUG for the macOS version of Scilab 6.1; After installation and restart you get
the error:

*** CelestLab is not available for this version of Scilab (Scilab 6.1.0 or less required)

This because Scilab 6.1 for macOS returns 611 (6.1.1) of CL__scilabVersion() but
celestlab.start doesn't except numbers greater than 610.

To avoid problems with macOS or even with newer Scilab 6.1. versions in the future, please
change line 27 of celestlab.start.



1) Install celestlab via Atoms
2) Go to Mac's Finder and open the Application folder
3) Search for the Scilab-branch-6.1 app bundle
4) Right click (control-click) on it and click "Show Package Contents"
5) Go to folder "Contents/MacOS/share/scilab/contrib/celestlab/3.4.0/etc"
6) Open file celestlab.start in a texteditor (e.g. TextEdit) and go to line 27
7) Change 
      if (vnum > 610)
      if (vnum >= 620)
8) Save celestlab.start
9) Restart Scilab
10) Done
Answer from Alain Lamy -- September 1, 2020, 02:12:18 PM    
Thanks for the report. 
Actually we have never used CelestLab under macOs. 

Comment from Hiroshi Tachihara -- September 29, 2020, 07:42:10 AM    
I have a question about the behavior of function CL_gm_visiParams.

Once you execute the following script, 

satVec = [0: 180];
distVec = CL_gm_visiParams(7000e3, 6500e3, 'sat', satVec / 180 * %pi, 'dist');

plot(satVec, distVec);
xlabel('sat [deg]');
ylabel('dist [m]');

you can find that dist = %nan while sat > 68 deg, because view line from a satellite
not touch the Earth surface.
However while sat > 112 deg, dist will get definite value again. I understand that dist

cannot be defined during this sat. Why does dist get these values?

Hiroshi Tachihara
Answer from Alain Lamy -- September 29, 2020, 09:11:11 AM    

Thanks for the remark. 
You're right. 
The results are not valid for an angle from the satellite greater than 90 deg. 
They should be Nan. 
We'll add a test on the input angle to ensure that. 

Leave a comment
You must register and log in before leaving a comment.
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.