Skip to content

303adastra/StellarCartography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StellarCartography

An experimental astronomy library, written in Pharo.

Loading instructions

Starting from a Pharo image

Open a playground window (Ctrl+O+W) and evaluate:

Metacello new baseline: 'StellarCartography';
    repository: 'github://303adastra/StellarCartography:main';
    load.

Note: Evaluate by highlighting the text, then either right-click on the highlighted text and click Do it or press Ctrl+D.

Starting from the shell

Clone the repo:

git clone https://github.com/303adastra/StellarCartography.git
cd StellarCartography

Download the 64-bit Pharo image + VM into the StellarCartography directory and start the Pharo-UI:

curl get.pharo.org/64/stable+vm | bash
./pharo-ui Pharo.image

In the Pharo-UI, open a playground window (Ctrl+O+W) and evaluate:

Metacello new baseline: 'StellarCartography';
   repository: 'gitlocal://./src';
   load.

Note: Evaluate by highlighting the text, then either right-click on the highlighted text and click Do it or press Ctrl+D.

Example Usage

Once the StellarCartography package has been loaded into your Pharo image, you can highlight the following text in a Playground window and click 'Print it' or press 'Ctrl+P' to evaluate and print the Earth's rotation period:

|earth|
earth := SCEarth new.
earth rotationPeriod.

Note: Evaluating the above expression returns a Duration that prints as 0:23:56:04. Duration objects can also be expressed as a unit of time, e.g., earth rotationPeriod asSeconds.

About

An experimental astronomy library, written in Pharo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published