Navigation and Ancillary Information Facility NIF Preparing for Programming Using the SPICE Toolkit January 2008.

Slides:



Advertisements
Similar presentations
Technotronics GCECT '091 Decode C This is a C Programming event, where you will be given problems to solve using C only. You will be given a Linux system.
Advertisements

MatLab API in C++ Christopher Dabney. Purpose MatLab … MatLab … is an interpreted scripting language is an interpreted scripting language conversion to.
Compilation & linkage.h read.h.c read.c.c main.c.c list.c.h list.h prog1 Linkage: g++ read.o main.o list.o –o prog1.o main.o.o list.o.o read.o Compilation:
Installing JDK Vijayan Sugumaran Department of DIS Oakland University.
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
Update the PATH variable Trying to run the command: “javac Ex1.java” you’ve may encountered the error: “javac is not recognized as internal or external.
Software Installation, release 4.0 Geant4 Users’ Workshop Tutorial SLAC February 18-22, 2002 Takashi Sasaki, Gabriele Cosmo,
Software Installation The full set of lecture notes of this Geant4 Course is available at
Navigation and Ancillary Information Facility NIF Getting and Installing the SPICE Toolkit October 2014.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Using Visual Studio 2013 An Integrated Development Environment (IDE)
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Navigation and Ancillary Information Facility NIF SPICE Conventions A summary of standards, lingo and common usage within SPICE November 2014.
Navigation and Ancillary Information Facility NIF Preparing for Programming Using the SPICE Toolkit January 2009.
Install Software. UNIX Shell The UNIX/LINUX shell is a program important part of a Unix system. interface between the user & UNIX kernel starts running.
Navigation and Ancillary Information Facility NIF Preparing for Programming Using the SPICE Toolkit March 2010.
Navigation and Ancillary Information Facility NIF Preparing for Programming Using the SPICE Toolkits November 2014.
March 2, 2005Wah-kai Ngai1 Installation of Geant4 1st HK Simulation Meeting.
UNIX/LINUX SHELLS.  “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.
Navigation and Ancillary Information Facility NIF Summary of Key Points January 2009.
Navigation and Ancillary Information Facility NIF Summary of Key Points October 2014.
Hidden Markov Toolkit (HTK) Installation Fang-Hui Chu Department of Computer Science & Information Engineering National Taiwan Normal University.
Chapter 0 Overview. Why you are here? Where will you go? What is this course for?
Navigation and Ancillary Information Facility NIF IDL Interface to CSPICE “Icy” How to Access the CSPICE library Using Interactive Data Language (IDL)
Navigation and Ancillary Information Facility NIF IDL Interface to CSPICE “Icy” How to Access the CSPICE library Using Interactive Data Language (IDL)
Setting up Cygwin Computer Organization I 1 May 2010 ©2010 McQuain Cygwin: getting the setup tool Free, almost complete UNIX environment emulation.
Installing the RETSINA AFC SDK on Windows 2000 Preferable System Requirements Software Dependencies Installation Procedure Joseph Giampapa MSEC Fall.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Navigation and Ancillary Information Facility NIF IDL Interface to CSPICE “Icy” How to Access the CSPICE library Using Interactive Data Language (IDL)
Navigation and Ancillary Information Facility NIF IDL Interface to CSPICE “Icy” How to Access the CSPICE library from the Interactive Data Language (IDL)
Navigation and Ancillary Information Facility NIF Exception Handling October 2014.
Installing JDK Vijayan Sugumaran Department of DIS Oakland University.
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
Navigation and Ancillary Information Facility NIF Porting Kernels November 2005.
Navigation and Ancillary Information Facility NIF Getting Started Using SPICE April 2006.
1 How to Install OpenGL u Software running under Microsoft Windows makes extensive use of "dynamic link libraries." A dynamic link library (DLL) is a set.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Open project in Microsoft Visual Studio → build program in “Release” mode.
Exploring Spyder: An IDE for scientific computing
Configuration your environment Many user-configurable Unix programs (such as your shell) read configuration files when they start up. These configuration.
Program Libraries 1. What is a program library? A library is a collection of implementations of behavior, written in terms of a language, that has a well-defined.
Navigation and Ancillary Information Facility NIF Getting and Installing the SPICE Toolkit November 2014.
Navigation and Ancillary Information Facility NIF Welcome to the SPICE Tutorials March 2010.
Navigation and Ancillary Information Facility NIF Welcome to the SPICE Training Class October 2007.
Navigation and Ancillary Information Facility NIF Welcome to the SPICE Tutorials November 2014.
1 Visual Studio 2005 Options for Debug Mode: C++, Fortran, Linker December 8, 2009 Intel Compiler Version
ScienceTools Linux Instructions Windows Instructions.
 CSC 215 : Procedural Programming with C C Compilers.
Navigation and Ancillary Information Facility NIF Getting and Installing the SPICE Toolkit January 2008.
Navigation and Ancillary Information Facility NIF Getting and Installing the SPICE Toolkit April 2006.
Cygwin: getting the setup tool
CSC 215 : Procedural Programming with C
Preparing for Programming Using the SPICE Toolkits
IDL Interface to CSPICE “Icy”
Shell Environments.
Cmake Primer.
Compilers, Make and SubVersion
Visual Studio 2005 Options for Release Mode: C++, Fortran, Linker
Software Installation
Getting Started: Developing Code with Cloud9
Cube Generator Todd Bradley January 8, 2014.
Software Installation, release 4.0
Hidden Markov Toolkit (HTK) Installation
Cygwin: getting the setup tool
The Role of Command Line Compiler (csc.exe)
Outline Announcements Dynamic Libraries
Presentation transcript:

Navigation and Ancillary Information Facility NIF Preparing for Programming Using the SPICE Toolkit January 2008

Navigation and Ancillary Information Facility NIF Preparing for Programming 2 Setting Path to Toolkit Executables Unix –csh, tcsh: Use the set command to add the location of toolkit executables to your path. »set path = ($path /my_directory/toolkit/exe) »set path = ($path /my_directory/cspice/exe) »set path = ($path /my_directory/icy/exe) »set path = ($path /my_directory/mice/exe) –bash »PATH=$PATH:/my_directory/toolkit/exe »PATH=$PATH:/my_directory/cspice/exe »PATH=$PATH:/my_directory/icy/exe »PATH=$PATH:/my_directory/mice/exe Windows –Add location of toolkit executables to the environment variable PATH from the Advanced pane on the System Control Panel (Control Panel->System->Advanced). »drive:\my_directory\toolkit\exe »drive:\my_directory\cspice\exe »drive:\my_directory\icy\exe »drive:\my_directory\mice\exe Replace the italics with the path in which you installed the toolkit on your computer. Recommended for all languages

Navigation and Ancillary Information Facility NIF Preparing for Programming 3 Compile and link an application, say program, against the SPICELIB/CSPICE libraries –Assume SPICE is installed at /naif/toolkit/ or CSPICE is installed at /naif/cspice/ »C $ gcc program.c -I/naif/cspice/include /naif/cspice/lib/csupport.a \ /naif/cspice/lib/cspice.a -lm »FORTRAN $ g77 program.f /naif/toolkit/support.a /naif/toolkit/spicelib.a »Some FORTRAN compilers (e.g. Absoft) require an additional flag " -lU77 " when linking against SPICELIB to pull in the standard Unix symbols The default SPICE library names do not conform to the UNIX convention libname.a. So you cannot use the library path/name options -L/path_to_libs/ and -lname unless you rename the SPICE library. Unix/Linux: Build

Navigation and Ancillary Information Facility NIF Preparing for Programming 4 The standard installation of Microsoft Visual Studio or Visual Toolkit may not update environment variables needed to use the C compiler (cl) from the standard DOS shell. –Environment variables for "cl" - Visual Studio 7: »INCLUDE C:\Program Files\Microsoft Visual Studio.NET\Vc7\include\ C:\Program Files\Microsoft Visual Studio.NET\FrameworkSDK\include\ »LIB C:\Program Files\Microsoft Visual Studio.NET\Vc7\lib\ C:\Program Files\Microsoft Visual Studio.NET\FrameworkSDK\Lib\ »PATH C:\Program Files\Microsoft Visual Studio.NET\Vc7\bin\ Windows: Compiler settings

Navigation and Ancillary Information Facility NIF Preparing for Programming 5 Assume SPICE is installed at C:\naif\toolkit\ with CSPICE installed at C:\naif\cspice\ –Compile and link an application, say program, against the SPICELIB/CSPICE libraries »C > cl program.c -IC:\naif\cspice\include C:\naif\cspice\lib\csupport.lib \ C:\naif\cspice\lib\cspice.lib »FORTRAN > df program.f C:\naif\toolkit\lib\SUPPORT.LIB \ C:\naif\toolkit\lib\SPICELIB.LIB Windows: Builds

Navigation and Ancillary Information Facility NIF Preparing for Programming 6 Icy: Register the Icy DLM to IDL Unix: do one of the following three things 1.Start the IDL application from a shell in the directory containing both icy.dlm and icy.so 2.Set the IDL_DLM_PATH environment variable to include the directory containing icy.dlm and icy.so: »setenv IDL_DLM_PATH 3.Use the IDL register command »IDL> dlm_register, Windows: do one of the following two things 1.Set environment variable IDL_DLM_PATH from the Advanced pane of the System Control panel 2.Use the IDL register command: »IDL> dlm_register, Confirm the IDL registration using the help command IDL> help, ‘icy’, /DLM **ICY - IDL/CSPICE interface from JPL/NAIF (not loaded) Required for “Icy”

Navigation and Ancillary Information Facility NIF Preparing for Programming 7 Use the IDL IDE’s preferences panel to set the current working directory to the location where you will be developing your lessons’ code. Optional: Place your dlm_register command in a start up script. Specify the script using the IDL IDE’s preferences panel. Icy: Using the IDL IDE Recommended for “Icy”

Navigation and Ancillary Information Facility NIF Preparing for Programming 8 Assume Mice is installed at C:\naif\mice\ on Windows, or /naif/mice/ on Unix/Linux. Use of Mice from MATLAB requires the Mice source and library directories exist in the MATLAB search path. –On Windows: »addpath('C:\naif\mice\lib') »addpath('C:\naif\mice\src\mice') –On Unix/Linux: »addpath('/naif/mice/lib') »addpath('/naif/mice/src/mice') Mice Required for “Mice”