
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vmcoolwiki.ipac.caltech.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ali</id>
	<title>CoolWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://vmcoolwiki.ipac.caltech.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ali"/>
	<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php/Special:Contributions/Ali"/>
	<updated>2026-05-09T09:11:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12507</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12507"/>
		<updated>2014-07-02T17:25:22Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
: [[File:python-3-solutions.txt | Python code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: http://www.youtube.com/watch?v=KtW0enPpgZI&amp;amp;feature=youtu.be&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[File:wise_allsky.wise_allsky_4band_p3as_psd13598.txt | wise_allsky.wise_allsky_4band_p3as_psd13598.txt]] Please note the change of extension to .txt for the wiki.&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: Read the data file from C-WAYS 2012 NITARP team.&lt;br /&gt;
:: [[File:maybefinaltable.txt | maybefinaltable.txt]]&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: https://www.youtube.com/watch?v=3ipY5m1poPs&lt;br /&gt;
: [[File:python-tutorial-5.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:plotting-demo.txt | Plotting demo]]&lt;br /&gt;
: [[http://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=20&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0CGsQFjAJOAo&amp;amp;url=http%3A%2F%2Fwww.physik.uzh.ch%2Flectures%2Finformatik%2Fpython%2Fres%2Fpyrefcard.pdf&amp;amp;ei=U_6yU_7AOcnwoASsxoL4Dg&amp;amp;usg=AFQjCNHQNJDpzCYdj1UEVpmuRGtLuS3DoA&amp;amp;sig2=74dyFa4DgH2LYVHNh_555g | Python and pyplot cheat sheet]]&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12506</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12506"/>
		<updated>2014-07-02T17:07:05Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
: [[File:python-3-solutions.txt | Python code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: http://www.youtube.com/watch?v=KtW0enPpgZI&amp;amp;feature=youtu.be&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[File:wise_allsky.wise_allsky_4band_p3as_psd13598.txt | wise_allsky.wise_allsky_4band_p3as_psd13598.txt]] Please note the change of extension to .txt for the wiki.&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: Read the data file from C-WAYS 2012 NITARP team.&lt;br /&gt;
:: [[File:maybefinaltable.txt | maybefinaltable.txt]]&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: https://www.youtube.com/watch?v=3ipY5m1poPs&lt;br /&gt;
: [[File:python-tutorial-5.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:plotting-demo.txt | Plotting demo]]&lt;br /&gt;
: [[http://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=20&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0CGsQFjAJOAo&amp;amp;url=http%3A%2F%2Fwww.physik.uzh.ch%2Flectures%2Finformatik%2Fpython%2Fres%2Fpyrefcard.pdf&amp;amp;ei=U_6yU_7AOcnwoASsxoL4Dg&amp;amp;usg=AFQjCNHQNJDpzCYdj1UEVpmuRGtLuS3DoA&amp;amp;sig2=74dyFa4DgH2LYVHNh_555g | Python and pyplot cheat sheet]]&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12486</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12486"/>
		<updated>2014-07-01T19:49:43Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
: [[File:python-3-solutions.txt | Python code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: http://www.youtube.com/watch?v=KtW0enPpgZI&amp;amp;feature=youtu.be&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[File:wise_allsky.wise_allsky_4band_p3as_psd13598.txt | wise_allsky.wise_allsky_4band_p3as_psd13598.txt]] Please note the change of extension to .txt for the wiki.&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: Read the data file from C-WAYS 2012 NITARP team.&lt;br /&gt;
:: [[File:maybefinaltable.txt | maybefinaltable.txt]]&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-5.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:plotting-demo.txt | Plotting demo]]&lt;br /&gt;
: [[http://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=20&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0CGsQFjAJOAo&amp;amp;url=http%3A%2F%2Fwww.physik.uzh.ch%2Flectures%2Finformatik%2Fpython%2Fres%2Fpyrefcard.pdf&amp;amp;ei=U_6yU_7AOcnwoASsxoL4Dg&amp;amp;usg=AFQjCNHQNJDpzCYdj1UEVpmuRGtLuS3DoA&amp;amp;sig2=74dyFa4DgH2LYVHNh_555g | Python and pyplot cheat sheet]]&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Plotting-demo.txt&amp;diff=12485</id>
		<title>File:Plotting-demo.txt</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Plotting-demo.txt&amp;diff=12485"/>
		<updated>2014-07-01T19:47:58Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12484</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12484"/>
		<updated>2014-07-01T19:47:50Z</updated>

		<summary type="html">&lt;p&gt;Ali: /* Session 5: Plotting and other miscellanea. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
: [[File:python-3-solutions.txt | Python code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: http://www.youtube.com/watch?v=KtW0enPpgZI&amp;amp;feature=youtu.be&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[File:wise_allsky.wise_allsky_4band_p3as_psd13598.txt | wise_allsky.wise_allsky_4band_p3as_psd13598.txt]] Please note the change of extension to .txt for the wiki.&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: Read the data file from C-WAYS 2012 NITARP team.&lt;br /&gt;
:: [[File:maybefinaltable.txt | maybefinaltable.txt]]&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-5.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:plotting-demo.txt | Plotting demo]]&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12483</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12483"/>
		<updated>2014-07-01T19:46:51Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
: [[File:python-3-solutions.txt | Python code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: http://www.youtube.com/watch?v=KtW0enPpgZI&amp;amp;feature=youtu.be&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[File:wise_allsky.wise_allsky_4band_p3as_psd13598.txt | wise_allsky.wise_allsky_4band_p3as_psd13598.txt]] Please note the change of extension to .txt for the wiki.&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: Read the data file from C-WAYS 2012 NITARP team.&lt;br /&gt;
:: [[File:maybefinaltable.txt | maybefinaltable.txt]]&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-5.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:plotting-demo.py.txt | Plotting demo]]&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-tutorial-5.pdf&amp;diff=12482</id>
		<title>File:Python-tutorial-5.pdf</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-tutorial-5.pdf&amp;diff=12482"/>
		<updated>2014-07-01T19:45:45Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12481</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12481"/>
		<updated>2014-07-01T19:45:28Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
: [[File:python-3-solutions.txt | Python code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: http://www.youtube.com/watch?v=KtW0enPpgZI&amp;amp;feature=youtu.be&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[File:wise_allsky.wise_allsky_4band_p3as_psd13598.txt | wise_allsky.wise_allsky_4band_p3as_psd13598.txt]] Please note the change of extension to .txt for the wiki.&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: Read the data file from C-WAYS 2012 NITARP team.&lt;br /&gt;
:: [[File:maybefinaltable.txt | maybefinaltable.txt]]&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-5.pdf | Link to Presentation]]&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12480</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12480"/>
		<updated>2014-06-25T03:34:40Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
: [[File:python-3-solutions.txt | Python code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: http://www.youtube.com/watch?v=KtW0enPpgZI&amp;amp;feature=youtu.be&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[File:wise_allsky.wise_allsky_4band_p3as_psd13598.txt | wise_allsky.wise_allsky_4band_p3as_psd13598.txt]] Please note the change of extension to .txt for the wiki.&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: Read the data file from C-WAYS 2012 NITARP team.&lt;br /&gt;
:: [[File:maybefinaltable.txt | maybefinaltable.txt]]&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
::&lt;br /&gt;
: Solutions&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12479</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12479"/>
		<updated>2014-06-25T03:34:16Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
: [[File:python-3-solutions.txt | Python code]]&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: http://www.youtube.com/watch?v=KtW0enPpgZI&amp;amp;feature=youtu.be&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[File:wise_allsky.wise_allsky_4band_p3as_psd13598.txt | wise_allsky.wise_allsky_4band_p3as_psd13598.txt]] Please note the change of extension to .txt for the wiki.&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: Read the data file from C-WAYS 2012 NITARP team.&lt;br /&gt;
:: [[File:maybefinaltable.txt | maybefinaltable.txt]]&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
::&lt;br /&gt;
: Solutions&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12478</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12478"/>
		<updated>2014-06-24T23:54:31Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
: [[File:python-3-solutions.txt | Python code]]&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[File:wise_allsky.wise_allsky_4band_p3as_psd13598.txt | wise_allsky.wise_allsky_4band_p3as_psd13598.txt]] Please note the change of extension to .txt for the wiki.&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: Read the data file from C-WAYS 2012 NITARP team.&lt;br /&gt;
:: [[File:maybefinaltable.txt | maybefinaltable.txt]]&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
::&lt;br /&gt;
: Solutions&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Maybefinaltable.txt&amp;diff=12477</id>
		<title>File:Maybefinaltable.txt</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Maybefinaltable.txt&amp;diff=12477"/>
		<updated>2014-06-24T23:54:00Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12476</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12476"/>
		<updated>2014-06-24T23:53:43Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
: [[File:python-3-solutions.txt | Python code]]&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[File:wise_allsky.wise_allsky_4band_p3as_psd13598.txt | wise_allsky.wise_allsky_4band_p3as_psd13598.txt]] Please note the change of extension to .txt for the wiki.&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: Read the data file from C-WAYS 2012 NITARP team.&lt;br /&gt;
:: [[File:maybefinaltable.txt | maybefinaltable.txt]]&lt;br /&gt;
: Solutions&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-3-solutions.txt&amp;diff=12475</id>
		<title>File:Python-3-solutions.txt</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-3-solutions.txt&amp;diff=12475"/>
		<updated>2014-06-24T20:38:45Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12474</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12474"/>
		<updated>2014-06-24T20:38:34Z</updated>

		<summary type="html">&lt;p&gt;Ali: /* Session 3: Controlling your program's flow. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
: [[File:python-3-solutions.txt | Python code]]&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[File:wise_allsky.wise_allsky_4band_p3as_psd13598.txt | wise_allsky.wise_allsky_4band_p3as_psd13598.txt]] Please note the change of extension to .txt for the wiki.&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Wise_allsky.wise_allsky_4band_p3as_psd13598.txt&amp;diff=12473</id>
		<title>File:Wise allsky.wise allsky 4band p3as psd13598.txt</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Wise_allsky.wise_allsky_4band_p3as_psd13598.txt&amp;diff=12473"/>
		<updated>2014-06-23T03:18:58Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12472</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12472"/>
		<updated>2014-06-23T03:18:33Z</updated>

		<summary type="html">&lt;p&gt;Ali: /* Session 4: Working with files and functions. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[File:wise_allsky.wise_allsky_4band_p3as_psd13598.txt | wise_allsky.wise_allsky_4band_p3as_psd13598.txt]] Please note the change of extension to .txt for the wiki.&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12471</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12471"/>
		<updated>2014-06-23T03:17:38Z</updated>

		<summary type="html">&lt;p&gt;Ali: /* Session 4: Working with files and functions. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[File:wise_allsky.wise_allsky_4band_p3as_psd13598.tbl | wise_allsky.wise_allsky_4band_p3as_psd13598.tbl]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12470</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12470"/>
		<updated>2014-06-23T03:17:25Z</updated>

		<summary type="html">&lt;p&gt;Ali: /* Session 4: Working with files and functions. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: [[wise_allsky.wise_allsky_4band_p3as_psd13598.tbl | wise_allsky.wise_allsky_4band_p3as_psd13598.tbl]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Ipac-table-demo.txt&amp;diff=12469</id>
		<title>File:Ipac-table-demo.txt</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Ipac-table-demo.txt&amp;diff=12469"/>
		<updated>2014-06-23T03:13:27Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12468</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12468"/>
		<updated>2014-06-23T03:13:09Z</updated>

		<summary type="html">&lt;p&gt;Ali: /* Session 4: Working with files and functions. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: [[File:ipac-table-demo.txt | IPAC table demo]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-tutorial-4.pdf&amp;diff=12467</id>
		<title>File:Python-tutorial-4.pdf</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-tutorial-4.pdf&amp;diff=12467"/>
		<updated>2014-06-23T03:12:29Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12466</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12466"/>
		<updated>2014-06-23T03:11:45Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-4.pdf | Link to Presentation]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12465</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12465"/>
		<updated>2014-06-12T19:01:38Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled==&lt;br /&gt;
: &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; 6/17 Session cancelled &amp;lt;/span&amp;gt;&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12464</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12464"/>
		<updated>2014-06-12T18:59:54Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4 Rescheduled&lt;br /&gt;
: %red%Cancelled%% for 6/17&lt;br /&gt;
: See below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 7/1/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12463</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12463"/>
		<updated>2014-06-12T16:27:15Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12462</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12462"/>
		<updated>2014-06-12T16:17:28Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=NIRlctGj_Ag&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12461</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12461"/>
		<updated>2014-06-09T20:30:54Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
::* Find the maximum of a list of numbers [2, 10, 4, 7] by coding our flow-chart example from tutorial 1.  Compare it to np.max() value. &lt;br /&gt;
::* For all prime numbers up to 13, calculate and print the square of the prime number.&lt;br /&gt;
::* A star has a position as follows: ra = 15.2345 (degrees), dec = -45.23435 (degrees) in epoch J2000.0 measurements.  It has a proper motion of -1.2 &amp;quot;/yr in right ascension and +0.35 &amp;quot;/yr in declination.  Write a program to print the right ascension and declination of the object when WISE looks at it in April of 2009?  We ignore parallax here.&lt;br /&gt;
::* Write a script to calculate and print when this object cross the declination line at -45.00000?&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-tutorial-3.pdf&amp;diff=12460</id>
		<title>File:Python-tutorial-3.pdf</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-tutorial-3.pdf&amp;diff=12460"/>
		<updated>2014-06-09T20:27:12Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12459</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12459"/>
		<updated>2014-06-09T20:26:21Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-3.pdf | Link to Presentation]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-2-solution.txt&amp;diff=12458</id>
		<title>File:Python-2-solution.txt</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-2-solution.txt&amp;diff=12458"/>
		<updated>2014-06-09T04:22:40Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12457</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12457"/>
		<updated>2014-06-09T04:22:19Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
:: [[File:python-2-solution.txt | Python script]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12456</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12456"/>
		<updated>2014-06-05T17:12:30Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=o8bmDLjJBqs&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12455</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12455"/>
		<updated>2014-06-03T23:49:56Z</updated>

		<summary type="html">&lt;p&gt;Ali: /* Session 1: Introduction to programming, spyder and python. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python-1-solution.txt | Python script solution for PACS array size exercise]]  Note: I had to use .txt extension to post it to wiki.&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-1-solution.txt&amp;diff=12454</id>
		<title>File:Python-1-solution.txt</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-1-solution.txt&amp;diff=12454"/>
		<updated>2014-06-03T23:49:14Z</updated>

		<summary type="html">&lt;p&gt;Ali: Have to use .txt extension for the file instead of .py because Wiki does not allow an executable to be loaded.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Have to use .txt extension for the file instead of .py because Wiki does not allow an executable to be loaded.&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12453</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12453"/>
		<updated>2014-06-03T23:47:02Z</updated>

		<summary type="html">&lt;p&gt;Ali: /* Session 1: Introduction to programming, spyder and python. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
:: [[File:python1-solution.py | Python script solution for PACS array size exercise]]&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12452</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12452"/>
		<updated>2014-06-03T23:45:19Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
::Evaluate the square root of 10.1*10.2 + 15.3*15.4&lt;br /&gt;
::What happens when you add two string variables together?&lt;br /&gt;
::Create a numpy integer array of values from 0 to 100, incrementing in steps of 2&lt;br /&gt;
::Create a numpy floating-point array of 101 elements that range in value from 0.0 to 1.0&lt;br /&gt;
::Find the minimum and maximum value of the resulting array in previous exercise.&lt;br /&gt;
::Find the sum total of all elements of the resulting array.&lt;br /&gt;
::What is the length of the array 'a' created by the following numpy command: a = np.zeros( int(np.sqrt(np.pi*100)+3.) )?&lt;br /&gt;
::What is the data type of the array 'a' in the previous exercise?&lt;br /&gt;
::Create an array 'x' of size 20 with floating point values between 1 and 20. Create a second array 'y' of size 20 with floating point values between 1 and 20. These represent the (x,y) coordinate values of 20 objects on a Cartesian grid. Calculate the distance between a point at (2.5,7.8) and all (x,y) pair objects, and store the resulting distance values in a variable 'dist'.&lt;br /&gt;
::Create a 2-Dimensional numpy array of size 15 columns X 17 rows filled with zeros. Set the middle column to 10. Set the last five rows to 20. &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12451</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12451"/>
		<updated>2014-06-03T20:39:11Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=5GHq0sAbPhM&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-tutorial-2.pdf&amp;diff=12450</id>
		<title>File:Python-tutorial-2.pdf</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-tutorial-2.pdf&amp;diff=12450"/>
		<updated>2014-06-02T19:48:41Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12449</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12449"/>
		<updated>2014-06-02T19:48:26Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=YwR218KbsD4&amp;amp;feature=youtu.be&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-2.pdf | Link to Presentation]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python1_solution.pdf&amp;diff=12448</id>
		<title>File:Python1 solution.pdf</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python1_solution.pdf&amp;diff=12448"/>
		<updated>2014-06-01T17:05:32Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12447</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12447"/>
		<updated>2014-06-01T17:05:13Z</updated>

		<summary type="html">&lt;p&gt;Ali: /* Session 1: Introduction to programming, spyder and python. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=YwR218KbsD4&amp;amp;feature=youtu.be&lt;br /&gt;
: Exercise:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solution:&lt;br /&gt;
:: [[File:python1_solution.pdf | Solution and worked example]]&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12446</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12446"/>
		<updated>2014-05-30T17:15:46Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: https://www.youtube.com/watch?v=YwR218KbsD4&amp;amp;feature=youtu.be&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12445</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12445"/>
		<updated>2014-05-30T17:14:59Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: [[https://www.youtube.com/watch?v=YwR218KbsD4&amp;amp;feature=youtu.be|Link to youtube video]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-tutorial-1.pdf&amp;diff=12444</id>
		<title>File:Python-tutorial-1.pdf</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=File:Python-tutorial-1.pdf&amp;diff=12444"/>
		<updated>2014-05-23T20:51:17Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12443</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12443"/>
		<updated>2014-05-23T20:50:59Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: [[File:python-tutorial-1.pdf | Link to Presentation]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12442</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12442"/>
		<updated>2014-05-23T20:49:49Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: :[[File:python1.pdf | Link to Presentation]]&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12441</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12441"/>
		<updated>2014-05-21T18:21:07Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
'''To join live to view the presentation slides:'''&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
'''To join live to the audio line.'''&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12440</id>
		<title>Pytuts</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=Pytuts&amp;diff=12440"/>
		<updated>2014-05-21T18:20:35Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Python programming for non-programmers=&lt;br /&gt;
&lt;br /&gt;
This tutorial series will walk you through the very basics of computer programming using the python scripting language.  The course is targeted towards the complete novice programmer.  That is, someone who has never programmed in any language, or has very little experience in programming.&lt;br /&gt;
&lt;br /&gt;
Programming is an essentially requirement for modern scientific research.  Python, in particular, is heavily used in astronomy for its relative ease of use and power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Registration==&lt;br /&gt;
You are not required to register for the course, but it will be helpful for me to know how many will attend in person.  To do that, &lt;br /&gt;
: '''please send me and e-mail at babar@ipac.caltech.edu with your e-mail address''' and use the subject line: '''nitarp python'''.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
To join the online course and participate in python programming exercises, you will need the following:&lt;br /&gt;
&lt;br /&gt;
* Python installed on your computer.  We will use the anaconda distribution&lt;br /&gt;
: http://continuum.io/downloads&lt;br /&gt;
: [[PyTest | How do I know its installed and ready to be used]] Or, testing your python.&lt;br /&gt;
&lt;br /&gt;
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.&lt;br /&gt;
* Audio: You need a phone connection to dial into a toll-free number for 1-1.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Instructions for joining the live sessions==&lt;br /&gt;
&lt;br /&gt;
To join live to view the presentation slides:&lt;br /&gt;
* go to http://caltech.webex.com on the day and time of the session.&lt;br /&gt;
* If requested, enter your name and e-mail address.&lt;br /&gt;
* Enter the meeting password&lt;br /&gt;
* Click &amp;quot;Join&amp;quot;&lt;br /&gt;
* Please ignore whatever pleas webEx makes about connecting to the audio channel by selecting 'NO' or 'Cancel', or whatever other appropriate options gets you out of the audio line.  Using webEx audio is expensive.  Instead, use the audio line instructions listed below.&lt;br /&gt;
NOTE: &lt;br /&gt;
* If this is your first webEx call, a java-based app will be installed on your computer. &lt;br /&gt;
* By default video will be ON if your computer is equipped with it.&lt;br /&gt;
&lt;br /&gt;
To join live to the audio line.&lt;br /&gt;
* dial 866-524-3365&lt;br /&gt;
* Enter telecon code.&lt;br /&gt;
&lt;br /&gt;
NOTE: '''Password and telecon code''' will be sent to those who provide me with their e-mail addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Tentative schedule=&lt;br /&gt;
&lt;br /&gt;
==Session 1: Introduction to programming, spyder and python.==&lt;br /&gt;
: Tuesday, 5/27/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like &amp;quot;I will sort the numbers ....&amp;quot;, you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.  The answer I am looking is more along these lines: 'Take the first two numbers.  Compare the first two numbers, etc.'&lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 2: Data, variables, and mathematical operations.==&lt;br /&gt;
: Tuesday, 6/3/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 3: Controlling your program's flow.==&lt;br /&gt;
: Tuesday, 6/10/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 4: Working with files and functions.==&lt;br /&gt;
: Tuesday, 6/17/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Session 5: Plotting and other miscellanea.==&lt;br /&gt;
: Tuesday, 6/24/2014&lt;br /&gt;
: 3:30 pm, PDT = 6:30 pm, EDT&lt;br /&gt;
: Link to Presentation&lt;br /&gt;
: Exercises:&lt;br /&gt;
:: &lt;br /&gt;
: Solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Previous incarnatation==&lt;br /&gt;
You can look a previous incarnation of this tutorial series for the&lt;br /&gt;
NITARP/SHIPs program for a more specific idea about the course.&lt;br /&gt;
&lt;br /&gt;
http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
	<entry>
		<id>https://vmcoolwiki.ipac.caltech.edu/index.php?title=PyTest&amp;diff=12438</id>
		<title>PyTest</title>
		<link rel="alternate" type="text/html" href="https://vmcoolwiki.ipac.caltech.edu/index.php?title=PyTest&amp;diff=12438"/>
		<updated>2014-05-16T21:11:54Z</updated>

		<summary type="html">&lt;p&gt;Ali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Is my python ready?==&lt;br /&gt;
&lt;br /&gt;
This page will attempt to answer the question, 'Now What?' after you have gone through and installed python.&lt;br /&gt;
&lt;br /&gt;
===Find python on your system===&lt;br /&gt;
&lt;br /&gt;
When you installed the distribution, you identified a local installation directory for it.&lt;br /&gt;
* Open your navigator, file explorer, or whatever the local file browser is called on your system.  On Macs, this is usually 'Finder'.&lt;br /&gt;
* Navigate to the installation folder (directory).&lt;br /&gt;
* Look for a folder called 'bin'.&lt;br /&gt;
* Go inside 'bin' and&lt;br /&gt;
* Look for 'spyder2' executable.&lt;br /&gt;
* Double click on spyder2.&lt;br /&gt;
* You should have something like what I show below in the Figure.  It won't be exactly the same, but should resemble it.&lt;br /&gt;
* Find the window pane with the title 'python' and a command-line prompt '&amp;gt;&amp;gt;&amp;gt;'.  Its in the bottom right in my Figure below.&lt;br /&gt;
* Type the following lines verbatim (hit return after each):&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;2+2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;import numpy as np&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* The answer you should get for the first line is '4', and&lt;br /&gt;
* The answer you should get for the 2nd line is that python thinks for a second or two, then returns the prompt without comment.&lt;br /&gt;
* If you get this far, you are set to go.&lt;br /&gt;
&lt;br /&gt;
{| cellpadding=&amp;quot;1&amp;quot;&lt;br /&gt;
| [[Image:spyder2.jpg]] &lt;br /&gt;
|''Screenshot of spyder2''&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ali</name></author>
		
	</entry>
</feed>