Are you over 18 and want to see adult content?
More Annotations
A complete backup of bethunesinvestments.com
Are you over 18 and want to see adult content?
A complete backup of expressfloorstogo.com
Are you over 18 and want to see adult content?
A complete backup of lang-platform.eu
Are you over 18 and want to see adult content?
A complete backup of auggusto.blogspot.com
Are you over 18 and want to see adult content?
A complete backup of dieselfueltestkit.com
Are you over 18 and want to see adult content?
Favourite Annotations
A complete backup of https://comptines.tv
Are you over 18 and want to see adult content?
A complete backup of https://tektura.com
Are you over 18 and want to see adult content?
A complete backup of https://syntax.com
Are you over 18 and want to see adult content?
A complete backup of https://connerstrong.com
Are you over 18 and want to see adult content?
A complete backup of https://yhcargoindia.com
Are you over 18 and want to see adult content?
A complete backup of https://giovanisi.it
Are you over 18 and want to see adult content?
A complete backup of https://brennaninc.com
Are you over 18 and want to see adult content?
A complete backup of https://dogankitap.com.tr
Are you over 18 and want to see adult content?
A complete backup of https://kayrosblog.ru
Are you over 18 and want to see adult content?
A complete backup of https://poczta-polska.pl
Are you over 18 and want to see adult content?
A complete backup of https://nasjonalforeningen.no
Are you over 18 and want to see adult content?
A complete backup of https://kunalab.ru
Are you over 18 and want to see adult content?
Text
PYTHON-ASTRO
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLOTTING This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLAY WITH FITS FILES Writing FITS files. The creation of a FITS file pass through 4 steps. 1) Creation of numpy array with the data. x = np.arange(100) 2) Creation of the HDU from the data. PYTHON-ASTRO: PYTHON: BASICS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: READ A 2 COLUMNS FILE AND PLOT THE RESULT p = line.split() x1.append(float(p)) y1.append(float(p)) We use p as an intermediate variable, to store the list of 2 strings (like for the first line). append is a method applied to the lists x1 and y1, to insert a new element to the end of the list. We now have the x and y vectors in the 2 variables x1 andy1.
PYTHON-ASTRO: LINKS TO COOL PAGES ON PLOTTING WITH PYTHON This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset.PYTHON-ASTRO
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLOTTING This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLAY WITH FITS FILES Writing FITS files. The creation of a FITS file pass through 4 steps. 1) Creation of numpy array with the data. x = np.arange(100) 2) Creation of the HDU from the data. PYTHON-ASTRO: PYTHON: BASICS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: READ A 2 COLUMNS FILE AND PLOT THE RESULT p = line.split() x1.append(float(p)) y1.append(float(p)) We use p as an intermediate variable, to store the list of 2 strings (like for the first line). append is a method applied to the lists x1 and y1, to insert a new element to the end of the list. We now have the x and y vectors in the 2 variables x1 andy1.
PYTHON-ASTRO: LINKS TO COOL PAGES ON PLOTTING WITH PYTHON This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PYTHON: BASICS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: HOW TO MAKE PLOTS, IMAGES, 3D, ETC, USING 2014 Python Lecture. Part IV This lecture is dedicated to the plotting library matplotlib. The topics are: Simple plot Controlling c PYTHON-ASTRO: USEFUL LIBRARIES This lecture will give some insights to the most useful python libraries. It is NOT exhaustive, you have to read the corresponding manual pages to find the best use you can have of them. PYTHON-ASTRO: INSTALLING PYTHON AND NICE LECTURES ON This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: AUGUST 2014 This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: JUNE 2013 This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset.PYTHON-ASTRO: 2015
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: REQUIERED PACKAGES AND IMPORTANT LINKS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: NICE BOOK ON PYTHON, NUMPY, IPYTHON ETC... A very up-to-date (august 2014) electronic book on python named "Introduction to Python for Econometrics, Statistics and Data Analysis" from Kevin Sheppard is available here: PYTHON-ASTRO: BIENVENIDOS Hola! There is so many people who wants to follow the Python course at IA-UNAM that I decided to create a blog to share stuff. This way those who cannot assist the lecture can at least follow the advances and download the scripts and programs.PYTHON-ASTRO
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLOTTING Python-Astro. Plotting is certainly one of the most common task one would do in Python (at least for astronomers). There is various libraries to draw plots in Python, but the mostly used and powerful is perhaps matplotlib. In the following we will present a few examples tohelp you to start.
PYTHON-ASTRO: PYTHON: BASICS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: USEFUL LIBRARIES This lecture will give some insights to the most useful python libraries. It is NOT exhaustive, you have to read the corresponding manual pages to find the best use you can have of them. PYTHON-ASTRO: PLAY WITH FITS FILES The FITS format is the most popular way to save and interchange astronomical data. The files are organized in units each of which contains a human readable header and a data. This structure is refereed as HDUs (Header/DATA Unit). A FITS file can contain one or more HDUs, the first of which is called "primary" and the rest arecalled "extensions
PYTHON-ASTRO: LINKS TO COOL PAGES ON PLOTTING WITH PYTHON This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLAYING WITH ARRAYS: SLICING, SORTING We want to extract the values where the 2nd and the 4th 1000-elements vectors are greater than 0.5. Using the numpy.where function: w1 = np.where ( (a > 0.5) & (a > 0.5)) as the result is a tuple of indices, and in this case the dimension of the result is 1, better extract on the fly the array of indices from the tuple: PYTHON-ASTRO: READ A 2 COLUMNS FILE AND PLOT THE RESULT append is a method applied to the lists x1 and y1, to insert a new element to the end of the list. We now have the x and y vectors in the 2 variables x1 and y1. We can transform the two lists into numpy vectors, to have more flexibility on them: xv = np.array (x1) yv =PYTHON-ASTRO: 2012
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: READ AN ASCII FILE (CONT') In the previous post we read a file of the form: 0.000000 0.000000 0.095200 0.095056 0.190400 0.189251 0.285599 0.281733 0.380799 0.371662 0.475999 0.458227PYTHON-ASTRO
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLOTTING Python-Astro. Plotting is certainly one of the most common task one would do in Python (at least for astronomers). There is various libraries to draw plots in Python, but the mostly used and powerful is perhaps matplotlib. In the following we will present a few examples tohelp you to start.
PYTHON-ASTRO: PYTHON: BASICS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: USEFUL LIBRARIES This lecture will give some insights to the most useful python libraries. It is NOT exhaustive, you have to read the corresponding manual pages to find the best use you can have of them. PYTHON-ASTRO: PLAY WITH FITS FILES The FITS format is the most popular way to save and interchange astronomical data. The files are organized in units each of which contains a human readable header and a data. This structure is refereed as HDUs (Header/DATA Unit). A FITS file can contain one or more HDUs, the first of which is called "primary" and the rest arecalled "extensions
PYTHON-ASTRO: LINKS TO COOL PAGES ON PLOTTING WITH PYTHON This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLAYING WITH ARRAYS: SLICING, SORTING We want to extract the values where the 2nd and the 4th 1000-elements vectors are greater than 0.5. Using the numpy.where function: w1 = np.where ( (a > 0.5) & (a > 0.5)) as the result is a tuple of indices, and in this case the dimension of the result is 1, better extract on the fly the array of indices from the tuple: PYTHON-ASTRO: READ A 2 COLUMNS FILE AND PLOT THE RESULT append is a method applied to the lists x1 and y1, to insert a new element to the end of the list. We now have the x and y vectors in the 2 variables x1 and y1. We can transform the two lists into numpy vectors, to have more flexibility on them: xv = np.array (x1) yv =PYTHON-ASTRO: 2012
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: READ AN ASCII FILE (CONT') In the previous post we read a file of the form: 0.000000 0.000000 0.095200 0.095056 0.190400 0.189251 0.285599 0.281733 0.380799 0.371662 0.475999 0.458227 PYTHON-ASTRO: PYTHON: BASICS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: USEFUL LIBRARIES This lecture will give some insights to the most useful python libraries. It is NOT exhaustive, you have to read the corresponding manual pages to find the best use you can have of them. PYTHON-ASTRO: REQUIERED PACKAGES AND IMPORTANT LINKS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: INSTALLING PYTHON AND NICE LECTURES ON This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: HOW TO MAKE PLOTS, IMAGES, 3D, ETC, USING 2014 Python Lecture. Part IV This lecture is dedicated to the plotting library matplotlib. The topics are: Simple plot Controlling c PYTHON-ASTRO: INTERACTING WITH FILES: READING WRITING Interacting with files: reading writing, ascii and fits. 2014 Python lecture. Part III. It's time to play with files containing data! In this lecture, we'll see how to read and write files (ascii and fits). Reading a simple ASCII file. How to treat special rows (comments, header) classical way. using numpy.loadtxt. PYTHON-ASTRO: NICE BOOK ON PYTHON, NUMPY, IPYTHON ETC... A very up-to-date (august 2014) electronic book on python named "Introduction to Python for Econometrics, Statistics and Data Analysis" from Kevin Sheppard is available here: PYTHON-ASTRO: JUNE 2013 This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: BIENVENIDOS Bienvenidos. Hola! There is so many people who wants to follow the Python course at IA-UNAM that I decided to create a blog to share stuff. This way those who cannot assist the lecture can at least follow the advances and download the scripts and programs. I can also use this blog in real time while in the lecture.PYTHON-ASTRO: 2015
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset.PYTHON-ASTRO
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: TABLE OF CONTENTS This is a kind of table of contents of the Python-Astro blog lectures. Generate a vector, using numpy. Write it to a file. Read the ascii file. Plot it (basic). PYTHON-ASTRO: PLOTTING Python-Astro. Plotting is certainly one of the most common task one would do in Python (at least for astronomers). There is various libraries to draw plots in Python, but the mostly used and powerful is perhaps matplotlib. In the following we will present a few examples tohelp you to start.
PYTHON-ASTRO: READ A 2 COLUMNS FILE AND PLOT THE RESULT append is a method applied to the lists x1 and y1, to insert a new element to the end of the list. We now have the x and y vectors in the 2 variables x1 and y1. We can transform the two lists into numpy vectors, to have more flexibility on them: xv = np.array (x1) yv = PYTHON-ASTRO: REQUIERED PACKAGES AND IMPORTANT LINKS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: USEFUL LIBRARIES This lecture will give some insights to the most useful python libraries. It is NOT exhaustive, you have to read the corresponding manual pages to find the best use you can have of them. PYTHON-ASTRO: LINKS TO COOL PAGES ON PLOTTING WITH PYTHON This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLAY WITH FITS FILES The FITS format is the most popular way to save and interchange astronomical data. The files are organized in units each of which contains a human readable header and a data. This structure is refereed as HDUs (Header/DATA Unit). A FITS file can contain one or more HDUs, the first of which is called "primary" and the rest arecalled "extensions
PYTHON-ASTRO: PLAYING WITH ARRAYS: SLICING, SORTING We want to extract the values where the 2nd and the 4th 1000-elements vectors are greater than 0.5. Using the numpy.where function: w1 = np.where ( (a > 0.5) & (a > 0.5)) as the result is a tuple of indices, and in this case the dimension of the result is 1, better extract on the fly the array of indices from the tuple:PYTHON-ASTRO: 2012
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset.PYTHON-ASTRO
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: TABLE OF CONTENTS This is a kind of table of contents of the Python-Astro blog lectures. Generate a vector, using numpy. Write it to a file. Read the ascii file. Plot it (basic). PYTHON-ASTRO: PLOTTING Python-Astro. Plotting is certainly one of the most common task one would do in Python (at least for astronomers). There is various libraries to draw plots in Python, but the mostly used and powerful is perhaps matplotlib. In the following we will present a few examples tohelp you to start.
PYTHON-ASTRO: READ A 2 COLUMNS FILE AND PLOT THE RESULT append is a method applied to the lists x1 and y1, to insert a new element to the end of the list. We now have the x and y vectors in the 2 variables x1 and y1. We can transform the two lists into numpy vectors, to have more flexibility on them: xv = np.array (x1) yv = PYTHON-ASTRO: REQUIERED PACKAGES AND IMPORTANT LINKS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: USEFUL LIBRARIES This lecture will give some insights to the most useful python libraries. It is NOT exhaustive, you have to read the corresponding manual pages to find the best use you can have of them. PYTHON-ASTRO: LINKS TO COOL PAGES ON PLOTTING WITH PYTHON This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLAY WITH FITS FILES The FITS format is the most popular way to save and interchange astronomical data. The files are organized in units each of which contains a human readable header and a data. This structure is refereed as HDUs (Header/DATA Unit). A FITS file can contain one or more HDUs, the first of which is called "primary" and the rest arecalled "extensions
PYTHON-ASTRO: PLAYING WITH ARRAYS: SLICING, SORTING We want to extract the values where the 2nd and the 4th 1000-elements vectors are greater than 0.5. Using the numpy.where function: w1 = np.where ( (a > 0.5) & (a > 0.5)) as the result is a tuple of indices, and in this case the dimension of the result is 1, better extract on the fly the array of indices from the tuple:PYTHON-ASTRO: 2012
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: TABLE OF CONTENTS This is a kind of table of contents of the Python-Astro blog lectures. Generate a vector, using numpy. Write it to a file. Read the ascii file. Plot it (basic). PYTHON-ASTRO: USEFUL LIBRARIES This lecture will give some insights to the most useful python libraries. It is NOT exhaustive, you have to read the corresponding manual pages to find the best use you can have of them. PYTHON-ASTRO: PYTHON: BASICS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: REQUIERED PACKAGES AND IMPORTANT LINKS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: OBJECT ORIENTED PROGRAMING. OBJECTS, CLASSES 2014 Python Lecture. Part VIII In this lecture I'll introduce the basic (and some not that basic) concepts of Object Oriented Programing. I'll use an example to show how to: PYTHON-ASTRO: HOW TO MAKE PLOTS, IMAGES, 3D, ETC, USING 2014 Python Lecture. Part IV This lecture is dedicated to the plotting library matplotlib. The topics are: Simple plot Controlling c PYTHON-ASTRO: INTRODUCTION TO SCIPY 2014 Python Lecture. Part V SciPy (pronounced “Sigh Pie”) is a Python-based ecosystem of open-source software for mathematics, science, and engineering. PYTHON-ASTRO: NICE BOOK ON PYTHON, NUMPY, IPYTHON ETC... A very up-to-date (august 2014) electronic book on python named "Introduction to Python for Econometrics, Statistics and Data Analysis" from Kevin Sheppard is available here: PYTHON-ASTRO: OPTIMIZATION, CALLING FORTRAN 2014 Python Lecture. Part IX In this latest lecture of this series, I'll present some tools to optimize your code by CPU and memory profiling. It also contains some tips on using the python debugger. PYTHON-ASTRO: SENDING REQUESTS TO MYSQL AND RECEIVING THE This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset.PYTHON-ASTRO
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: TABLE OF CONTENTS This is a kind of table of contents of the Python-Astro blog lectures. Generate a vector, using numpy. Write it to a file. Read the ascii file. Plot it (basic). PYTHON-ASTRO: PLOTTING Python-Astro. Plotting is certainly one of the most common task one would do in Python (at least for astronomers). There is various libraries to draw plots in Python, but the mostly used and powerful is perhaps matplotlib. In the following we will present a few examples tohelp you to start.
PYTHON-ASTRO: READ A 2 COLUMNS FILE AND PLOT THE RESULT append is a method applied to the lists x1 and y1, to insert a new element to the end of the list. We now have the x and y vectors in the 2 variables x1 and y1. We can transform the two lists into numpy vectors, to have more flexibility on them: xv = np.array (x1) yv = PYTHON-ASTRO: REQUIERED PACKAGES AND IMPORTANT LINKS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: USEFUL LIBRARIES This lecture will give some insights to the most useful python libraries. It is NOT exhaustive, you have to read the corresponding manual pages to find the best use you can have of them. PYTHON-ASTRO: LINKS TO COOL PAGES ON PLOTTING WITH PYTHON This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLAY WITH FITS FILES The FITS format is the most popular way to save and interchange astronomical data. The files are organized in units each of which contains a human readable header and a data. This structure is refereed as HDUs (Header/DATA Unit). A FITS file can contain one or more HDUs, the first of which is called "primary" and the rest arecalled "extensions
PYTHON-ASTRO: PLAYING WITH ARRAYS: SLICING, SORTING We want to extract the values where the 2nd and the 4th 1000-elements vectors are greater than 0.5. Using the numpy.where function: w1 = np.where ( (a > 0.5) & (a > 0.5)) as the result is a tuple of indices, and in this case the dimension of the result is 1, better extract on the fly the array of indices from the tuple:PYTHON-ASTRO: 2012
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset.PYTHON-ASTRO
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: TABLE OF CONTENTS This is a kind of table of contents of the Python-Astro blog lectures. Generate a vector, using numpy. Write it to a file. Read the ascii file. Plot it (basic). PYTHON-ASTRO: PLOTTING Python-Astro. Plotting is certainly one of the most common task one would do in Python (at least for astronomers). There is various libraries to draw plots in Python, but the mostly used and powerful is perhaps matplotlib. In the following we will present a few examples tohelp you to start.
PYTHON-ASTRO: READ A 2 COLUMNS FILE AND PLOT THE RESULT append is a method applied to the lists x1 and y1, to insert a new element to the end of the list. We now have the x and y vectors in the 2 variables x1 and y1. We can transform the two lists into numpy vectors, to have more flexibility on them: xv = np.array (x1) yv = PYTHON-ASTRO: REQUIERED PACKAGES AND IMPORTANT LINKS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: USEFUL LIBRARIES This lecture will give some insights to the most useful python libraries. It is NOT exhaustive, you have to read the corresponding manual pages to find the best use you can have of them. PYTHON-ASTRO: LINKS TO COOL PAGES ON PLOTTING WITH PYTHON This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLAY WITH FITS FILES The FITS format is the most popular way to save and interchange astronomical data. The files are organized in units each of which contains a human readable header and a data. This structure is refereed as HDUs (Header/DATA Unit). A FITS file can contain one or more HDUs, the first of which is called "primary" and the rest arecalled "extensions
PYTHON-ASTRO: PLAYING WITH ARRAYS: SLICING, SORTING We want to extract the values where the 2nd and the 4th 1000-elements vectors are greater than 0.5. Using the numpy.where function: w1 = np.where ( (a > 0.5) & (a > 0.5)) as the result is a tuple of indices, and in this case the dimension of the result is 1, better extract on the fly the array of indices from the tuple: PYTHON-ASTRO: TABLE OF CONTENTS This is a kind of table of contents of the Python-Astro blog lectures. Generate a vector, using numpy. Write it to a file. Read the ascii file. Plot it (basic). PYTHON-ASTRO: USEFUL LIBRARIES This lecture will give some insights to the most useful python libraries. It is NOT exhaustive, you have to read the corresponding manual pages to find the best use you can have of them. PYTHON-ASTRO: PYTHON: BASICS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: REQUIERED PACKAGES AND IMPORTANT LINKS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: OBJECT ORIENTED PROGRAMING. OBJECTS, CLASSES 2014 Python Lecture. Part VIII In this lecture I'll introduce the basic (and some not that basic) concepts of Object Oriented Programing. I'll use an example to show how to: PYTHON-ASTRO: HOW TO MAKE PLOTS, IMAGES, 3D, ETC, USING 2014 Python Lecture. Part IV This lecture is dedicated to the plotting library matplotlib. The topics are: Simple plot Controlling c PYTHON-ASTRO: INTRODUCTION TO SCIPY 2014 Python Lecture. Part V SciPy (pronounced “Sigh Pie”) is a Python-based ecosystem of open-source software for mathematics, science, and engineering. PYTHON-ASTRO: NICE BOOK ON PYTHON, NUMPY, IPYTHON ETC... A very up-to-date (august 2014) electronic book on python named "Introduction to Python for Econometrics, Statistics and Data Analysis" from Kevin Sheppard is available here: PYTHON-ASTRO: OPTIMIZATION, CALLING FORTRAN 2014 Python Lecture. Part IX In this latest lecture of this series, I'll present some tools to optimize your code by CPU and memory profiling. It also contains some tips on using the python debugger. PYTHON-ASTRO: SENDING REQUESTS TO MYSQL AND RECEIVING THE This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset.PYTHON-ASTRO
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLOTTING Python-Astro. Plotting is certainly one of the most common task one would do in Python (at least for astronomers). There is various libraries to draw plots in Python, but the mostly used and powerful is perhaps matplotlib. In the following we will present a few examples tohelp you to start.
PYTHON-ASTRO: USEFUL LIBRARIES This lecture will give some insights to the most useful python libraries. It is NOT exhaustive, you have to read the corresponding manual pages to find the best use you can have of them. PYTHON-ASTRO: LINKS TO COOL PAGES ON PLOTTING WITH PYTHON This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: READ A 2 COLUMNS FILE AND PLOT THE RESULT append is a method applied to the lists x1 and y1, to insert a new element to the end of the list. We now have the x and y vectors in the 2 variables x1 and y1. We can transform the two lists into numpy vectors, to have more flexibility on them: xv = np.array (x1) yv = PYTHON-ASTRO: PLAY WITH FITS FILES The FITS format is the most popular way to save and interchange astronomical data. The files are organized in units each of which contains a human readable header and a data. This structure is refereed as HDUs (Header/DATA Unit). A FITS file can contain one or more HDUs, the first of which is called "primary" and the rest arecalled "extensions
PYTHON-ASTRO: PLAYING WITH ARRAYS: SLICING, SORTING We want to extract the values where the 2nd and the 4th 1000-elements vectors are greater than 0.5. Using the numpy.where function: w1 = np.where ( (a > 0.5) & (a > 0.5)) as the result is a tuple of indices, and in this case the dimension of the result is 1, better extract on the fly the array of indices from the tuple: PYTHON-ASTRO: OBJECT ORIENTED PROGRAMING. OBJECTS, CLASSES 2014 Python Lecture. Part VIII In this lecture I'll introduce the basic (and some not that basic) concepts of Object Oriented Programing. I'll use an example to show how to:PYTHON-ASTRO: 2012
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset.PYTHON-ASTRO: 2014
2014 Python Lecture. Part IX In this latest lecture of this series, I'll present some tools to optimize your code by CPU and memory profiling. It also contains some tipsPYTHON-ASTRO
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: PLOTTING Python-Astro. Plotting is certainly one of the most common task one would do in Python (at least for astronomers). There is various libraries to draw plots in Python, but the mostly used and powerful is perhaps matplotlib. In the following we will present a few examples tohelp you to start.
PYTHON-ASTRO: USEFUL LIBRARIES This lecture will give some insights to the most useful python libraries. It is NOT exhaustive, you have to read the corresponding manual pages to find the best use you can have of them. PYTHON-ASTRO: LINKS TO COOL PAGES ON PLOTTING WITH PYTHON This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: READ A 2 COLUMNS FILE AND PLOT THE RESULT append is a method applied to the lists x1 and y1, to insert a new element to the end of the list. We now have the x and y vectors in the 2 variables x1 and y1. We can transform the two lists into numpy vectors, to have more flexibility on them: xv = np.array (x1) yv = PYTHON-ASTRO: PLAY WITH FITS FILES The FITS format is the most popular way to save and interchange astronomical data. The files are organized in units each of which contains a human readable header and a data. This structure is refereed as HDUs (Header/DATA Unit). A FITS file can contain one or more HDUs, the first of which is called "primary" and the rest arecalled "extensions
PYTHON-ASTRO: PLAYING WITH ARRAYS: SLICING, SORTING We want to extract the values where the 2nd and the 4th 1000-elements vectors are greater than 0.5. Using the numpy.where function: w1 = np.where ( (a > 0.5) & (a > 0.5)) as the result is a tuple of indices, and in this case the dimension of the result is 1, better extract on the fly the array of indices from the tuple: PYTHON-ASTRO: OBJECT ORIENTED PROGRAMING. OBJECTS, CLASSES 2014 Python Lecture. Part VIII In this lecture I'll introduce the basic (and some not that basic) concepts of Object Oriented Programing. I'll use an example to show how to:PYTHON-ASTRO: 2012
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset.PYTHON-ASTRO: 2014
2014 Python Lecture. Part IX In this latest lecture of this series, I'll present some tools to optimize your code by CPU and memory profiling. It also contains some tips PYTHON-ASTRO: REQUIERED PACKAGES AND IMPORTANT LINKS This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: INSTALLING PYTHON AND NICE LECTURES ON This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: HOW TO MAKE PLOTS, IMAGES, 3D, ETC, USING 2014 Python Lecture. Part IV This lecture is dedicated to the plotting library matplotlib. The topics are: Simple plot Controlling c PYTHON-ASTRO: INTERACTING WITH FILES: READING WRITING Interacting with files: reading writing, ascii and fits. 2014 Python lecture. Part III. It's time to play with files containing data! In this lecture, we'll see how to read and write files (ascii and fits). Reading a simple ASCII file. How to treat special rows (comments, header) classical way. using numpy.loadtxt. PYTHON-ASTRO: AUGUST 2014 This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. PYTHON-ASTRO: MAY 2012 This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset.PYTHON-ASTRO: 2013
Python-Astro. Since more than one year without any message! And the new one is almost nothing from me, just links to good pages. Two easy ways to install python+ipython+numpy+matplotlib+scipy: Anaconda from continuum (but only 64bit version for OSX, which can be a problem for MySQLdb): Ask for the academic licence if you can. PYTHON-ASTRO: BIENVENIDOS Hola! There is so many people who wants to follow the Python course at IA-UNAM that I decided to create a blog to share stuff. This way those who cannot assist the lecture can at least follow the advances and download the scripts and programs. PYTHON-ASTRO: FEBRUARY 2012 In the previous post we read a file of the form: 0.000000 0.000000 0.095200 0.095056 0.190400 0.189251 0.285599 0.281733 0.380799 0.371662 0.475999 0.458227PYTHON-ASTRO: 2015
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset.PYTHON-ASTRO
This is a support for a lecture on Python given at the Instituto de Astronomia at the UNAM (Universidad Nacional Autonoma de Mexico) by Christophe Morisset. WEDNESDAY, SEPTEMBER 16, 2015 LINKS TO COOL PAGES ON PLOTTING WITH PYTHON A very interesting blog on python there: http://zulko.github.io/blog/2014/09/20/vector-animations-with-python/ A package to plot interactively: http://bokeh.pydata.org/en/latest/index.html And don't forget the impressive Mayavi package: http://mayavi.sourceforge.net/ The Seaborn library is useful to make some nice plots: http://stanford.edu/~mwaskom/software/seaborn/ A kind of summary of some of these different solutions is made there: http://pbpython.com/visualization-tools-1.html Publié par Christopheà l'adresse
15:01
25 comments:
Email This
BlogThis!
Share
to Twitter
Share
to Facebook
Share
to Pinterest
MONDAY, DECEMBER 1, 2014 NICE BOOK ON PYTHON, NUMPY, IPYTHON ETC... A very up-to-date (august 2014) electronic book on python named "Introduction to Python for Econometrics, Statistics and Data Analysis" from Kevin Sheppard is available here: https://www.kevinsheppard.com/images/0/09/Python_introduction.pdf It's mainly on econometric, but most of the tools described there are also useful for astronomers. Publié par Christopheà l'adresse
16:05
4 comments:
Email This
BlogThis!
Share
to Twitter
Share
to Facebook
Share
to Pinterest
TUESDAY, NOVEMBER 11, 2014 SENDING REQUESTS TO MYSQL AND RECEIVING THE RESULT FROM PYTHON, USINGPYMYSQL
Modern astrophysics is using every day more big databases. One of the mostly used interface to databases is MySQl (or its recent free fork MariaDB). I present in this lecture a python library to deal with MySQL databases: PyMySQL. In the lecture the examples are using access to 3MdB (https://sites.google.com/site/mexicanmillionmodels/), which requires
a password. You can ask for it to me, or adapt the example to connectto other databases.
The lecture is here: https://github.com/Morisset/Python-lectures-Notebooks/blob/master/Notebooks/Using_PyMySQL.ipynb An introduction to MySQL can be found here: https://github.com/Morisset/Python-lectures-Notebooks/blob/master/MySQL.pdf Publié par Christopheà l'adresse
15:18
2 comments:
Email This
BlogThis!
Share
to Twitter
Share
to Facebook
Share
to Pinterest
WEDNESDAY, OCTOBER 8, 2014 OPTIMIZATION, CALLING FORTRAN 2014 PYTHON LECTURE. PART IX In this latest lecture of this series, I'll present some tools to optimize your code by CPU and memory profiling. It also contains some tips on using the python debugger. The notebook is there: https://github.com/Morisset/Python-lectures-Notebooks/blob/master/Notebooks/Optimization.ipynb I also give some indications on how one can call Fortran routines from within python, to accelerate the execution of some part the the code. Here are small examples: https://github.com/Morisset/Python-lectures-Notebooks/blob/master/Notebooks/Calling%20Fortran.ipynb Publié par Christopheà l'adresse
21:31
1 comment:
Email This
BlogThis!
Share
to Twitter
Share
to Facebook
Share
to Pinterest
WEDNESDAY, OCTOBER 1, 2014 OBJECT ORIENTED PROGRAMING. OBJECTS, CLASSES, ETC... 2014 PYTHON LECTURE. PART VIII In this lecture I'll introduce the basic (and some not that basic) concepts of Object Oriented Programing. I'll use an example to showhow to:
* use functions to do simple jobs * but use objects when things start to be more complex * define classes, objects, attributes, methods, etc... * use *args and **kwargs in functions calls * use the class variables * add functionalities to classes and objects * use class inheritance * use attributes properties The notebook is here: https://github.com/Morisset/Python-lectures-Notebooks/blob/master/Notebooks/OOP.ipynb Publié par Christopheà l'adresse
13:41
2 comments:
Email This
BlogThis!
Share
to Twitter
Share
to Facebook
Share
to Pinterest
THURSDAY, SEPTEMBER 25, 2014THE ASTROPY LIBRARY
2014 PYTHON LECTURE. PART VII The Astropy Project is a community effort to develop a single core package for Astronomy in Python and foster interoperability between Python astronomy packages. More informations here: http://www.astropy.org/ In this lecture we will see some of the facilities of the astorpylibrary, including:
* Constants and Units * Data Table (a very useful one!)* Time and Dates
* Etc...
The lecture is here: https://github.com/Morisset/Python-lectures-Notebooks/blob/master/Notebooks/Using_astropy.ipynb Publié par Christopheà l'adresse
13:47
1
comment:
Email This
BlogThis!
Share
to Twitter
Share
to Facebook
Share
to Pinterest
THURSDAY, SEPTEMBER 18, 2014USEFUL LIBRARIES
2014 PYTHON LECTURE. PART VI This lecture will give some insights to the most useful python libraries. It is NOT exhaustive, you have to read the corresponding manual pages to find the best use you can have of them. The list of all python-included libraries is here: https://docs.python.org/2/library/ I mention in this lecture:* time and datetime
* timeit
* os
* sys
* subprocess
* glob
* re
* urllib2
The lecture is here: https://github.com/Morisset/Python-lectures-Notebooks/blob/master/Notebooks/Useful_libraries.ipynb Publié par Christopheà l'adresse
13:03
3
comments:
Email This
BlogThis!
Share
to Twitter
Share
to Facebook
Share
to Pinterest
Older Posts
Home
Subscribe to: Posts (Atom)SEARCH THE BLOG
FOLLOW BY EMAIL
BLOG ARCHIVE
* ▼ 2015 (1)
* ▼ September (1) * Links to cool pages on plotting with python* ► 2014 (13)
* ► December (1) * ► November (1) * ► October (2) * ► September (5)* ► August (3)
* ► March (1)
* ► 2013 (1)
* ► June (1)
* ► 2012 (7)
* ► May (1)
* ► April (1)
* ► March (1)
* ► February (4)PAGES
* Table of contents
* Requiered packages and important linksUSEFUL LINKS
* Scipy Lectures
* Python
* iPython
* Matplotlib
* Scipy
* Numpy
SUBSCRIBE TO
Posts
Atom
Posts
All Comments
Atom
All Comments
Christophe Morisset, IA-UNAM. Picture Window theme. Powered byBlogger .
Details
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0