S2PLOT:HowTo

From S2PLOT

(Difference between revisions)
Jump to: navigation, search
Revision as of 00:39, 6 March 2014
S2plot admin (Talk | contribs)

← Previous diff
Revision as of 00:43, 6 March 2014
S2plot admin (Talk | contribs)

Next diff →
Line 5: Line 5:
== Spherical coordinate systems in S2PLOT in C == == Spherical coordinate systems in S2PLOT in C ==
 +Astronomers like to use spherical coordinate systems, but S2PLOT would prefer you to use Cartesian coordinates. To aid in the development of visualisations that require spherical coordinate grids, we have put together some sample code.
 +Please download [http://astronomy.swin.edu.au/samples/us2spherical.c us2spherical.c], [http://astronomy.swin.edu.au/samples/us2spherical.h us2spherical.h] and [http://astronomy.swin.edu.au/samples/spheredemo.c spheredemo.c] and follow the instructions in the comments spheredemo.c.

Revision as of 00:43, 6 March 2014

The following series of How Tos show you how to solve a range of common visualisation problems with S2PLOT. They are not intended to provide a complete user guide to all the functionality of S2PLOT, and should be supplemented by looking at the Function List.


Choose from either C, Fortran or Python categories depending on your preferred programming mode. The How Tos assume that you have a working, a tested, version of S2PLOT installed on your system, and that you have suitable compilers available.

Spherical coordinate systems in S2PLOT in C

Astronomers like to use spherical coordinate systems, but S2PLOT would prefer you to use Cartesian coordinates. To aid in the development of visualisations that require spherical coordinate grids, we have put together some sample code.

Please download us2spherical.c, us2spherical.h and spheredemo.c and follow the instructions in the comments spheredemo.c.


How To ... in C


How To ... without (much) programming

Back to S2PLOT home page.

Personal tools