Masturbation ?ruins? viagra sale online a person for partner sexThe use of masturbation can in fact be used as part of partner sex and mutual masturbation is common practices by many people around the world. Other skinny cialis online prescription individuals who don't need to lose weight but still suffer from man boobs have also found targeted exercises that zero in on the specific area have cured them from the man boob look. If you buy cialis canada just do not want to spend too much on this then the enlargement exercises program may be the best option. If you, can i buy viagra in spain, just do not want to spend too much on this then the enlargement exercises program may be the best option. If you viagra prix pharmacie just do not want to spend too much on this then the enlargement exercises program may be the best option. If you purchase viagra uk have ever wondered about Extagen and its potential effects upon yourself this article is meant to shed some light on the matter. This has cheap viagra cialis been proven by individuals using their own mental techniques such as thinking about sports during sex. Saw Palmetto buy propecia canada also bolsters the male reproductive system and helps maintain an appropriate balance of the male sexual hormones.

It?s easy buy viagra online no prescription to be selfish and focus on yourself.

"A money buy viagra dubai back guarantee is a surefire sign of a quality penis extender. Man boob, viagra tablets for sale, targeted exercise. The Extagen achat viagra internet Proprietary Blend includes: L Arginine Yohimbe Extract (Pausinystalia yohimba)(bark) Maca Extract (Lepidium meyenii) (root) Catuaba Muira Puama (aerial) Nettle (leaf) American Ginseng Korean Ginseng Siberian Ginseng Zinc (oxide) Gluconate 200% DV. Of course viagra to buy uk there is no harm in trying to build muscle fast. Epimedium leaves order viagra canada also increases sexual desire and reduces fatigue. It probably buy accutane online without prescription doesn?t help foreplay if there is a 10 minute pause to fit the pump and use it. Premature ejaculation acheter cialis en pharmacie is one of the erectile dysfunction problems of men. Men on achat cialis en suisse the average ejaculate 2 3 minutes after penetration in contrast to women who take their time (over 10 minutes). Much of, cheap cialis online, premature ejaculation suffering can actually be cured through mental techniques. Most men viagra low price taking anti impotence drugs get an erection and can perform again.

I hope acheter viagra suisse you are aware that there is a world of difference between an orgasm and an ejaculation. Usually premature comprar cialis en andorra ejaculation pills only will only cause at best short term placebo effect type results.

Erectile dysfunction comprar viagra en argentina includes all male sexual performance problems like the terrible male morale killer premature ejaculation. This usually (viagra kaufen ohne rezept) occurs after a period of time in which these men tried to get rid of their man boobs with common chest exercises like push ups and chest presses. Water is, vente viagra cnrs, a natural detox for the body and could be a factor for curing impotence. Saw Palmetto can i buy accutane contains Sterols and Fatty acids (Caproic acid Lauric acid and Palmitic acid) which promote efficient prostate function and inhibit inflammation. While shampooing buying viagra uk massage your scalp with your fingertips for 5 to 10 minutes.

It probably (buy propecia online without prescription) doesn?t help foreplay if there is a 10 minute pause to fit the pump and use it. However men (cialis cost at walmart) are always left confused and disheartened when they come across the huge and often unbelievable offers on the internet. Premature ejaculation, cialis price per pill, is the male sexual problem of ejaculating before penetration or ejaculating very soon after vaginal penetration. Herbal pills cheap viagra online pharmacy target the breast tissue only so the only feminization changes you will see are in your breast area. The saddest prix cialis suisse thing is that many men feel that they are destined to forever walk with their man boobs and that there is nothing they can do about it.

Those two, comprar cialis en andorra, biochemicals cause growth. In just buy cheap viagra online uk two weeks from TODAY your penis will be noticeably longer thicker and more satisfying to women.

Use unbiased cialis cost sources and study up on NATURAL methods for increasing penis size. Then they viagra online gÓÌnstig add the claim "also stops premature ejaculation" just so that they can sell more units. Whereas women prix cialis 5 are more open in discussing personal and sexual matters with their peers and with their doctors men are generally reticent to seek advice from other people even with medical professionals on matters of men's sexual health. That is, where can i buy propecia, why I recommend all men stay away from pills. Reason TwoIt's prix viagra 100 the most cost effective way to enhancement you will ever see. Premature ejaculation propecia online affects 30% of all men at some time in their lives. However the cialis online perscription big caveat is that you can NOT gain any girth with surgery. There is buying viagra from canada a way to make your penis length grow by 3 or 4 inches. There are viagra price cvs many different type of product on the market but the one which really works above all others is natural penis enlargement. In this viagra sale article I'm going to share the steps that I took. There is buy viagra online nothing in them that will increase your penis size. Premature ejaculation can i buy viagra without a prescription affects 30% of all men at some time in their lives. 5 inches viagra to buy uk long and 5 inches around to over 8 inches long and exactly 6 inches around quickly and permanently.

I discovered best cialis price a complete system to make my length grow and I utilized it to get my incredible results. Take away achat cialis pharmacie the fear (with behavioural therapy) and the PE also disappears. PC elevations vente viagra cnrs are done simply by elevating your anatomy in a perpendicular fashion WITHOUT the hands and done in repetitions of 8 10 at a time. It must buy cialis daily use be noted however that there are also innumerable sites conveying bogus and incredible information on men's sexual health therefore a questioning intelligence and sharp discernment are also necessary to acquire the accurate facts from the internet. Growth is buy accutane 40mg caused by something far more difficult to get into the body in pill form. Those companies viagra deutschland kaufen are being sued left and right for one reason: Their products do NOT do what they claim What about natural methods. I recommend female viagra for sale taking a multi vitamin formula exercising regularly and eating a healthy diet. The beauty acheter cialis pharmacie of natural growth is that it is what it says it is entirely natural. If you comprar viagra en zaragoza want to use this article on your website or in your ezine make all the urls (links) active.

Because I buy cheap cialis online blew a fortune when I first started with penis enlargement. 5 inches acheter viagra belgique long and 5 inches around to over 8 inches long and exactly 6 inches around quickly and permanently. Put it buying accutane online into action tonight and you can immediately start having sex that is much longer lasting and more mutually satisfying. If you, cheap viagra soft, want to make your penis bigger thicker and much more satisfying to women the following will help you greatly.

But be, achat viagra en belgique, warned if you don't use a trusted guide then they too will do nothing for you. This means, purchase viagra without prescription, that while it may be NICE to have a longer male anatomy for pure passion and pleasure you are FAR better off having GREAT girth instead. This prepares order viagra online the body for the growth it will cause.

5 inches buy cheap viagra in uk long and 5 inches around to a very well endowed 8 inches PLUS in length and exactly 6 inches in girth. If you comprar viagra sin receta want to know the best methods for getting your penis bigger read on. Pumps can can i buy viagra in the uk give you an erection that is firmer but they will not permanently increase your penis size at all and they are extremely dangerous and their use can result in serious injury. Pills creams achat cialis en france and "special" condoms in addition to being VERY ineffective and not producing an effect on staying power that is very noticeable at all will cause you to become dependent on them such that your sex life will be even worse than it is now if you try to have sex without them. These exercises viagra online lowest price involve clenching and unclenching of the PC muscle and are highly simple to perform. The milking vente viagra en pharmacie method is designed to enlarge the penis girth using very simple strokes to force blood into the shaft which causes the cell reaction and growth. Though the viagra online usa exercises are highly effective you should not expect results overnight. Penis yeast buy cialis 5 mg infection if left untreated for long can cause very serious conditions. They work, viagra kaufen in deutschland, differently. Such erection cheap viagra fast enhancer pills work by nourishing your sexual system improving blood flow into the penis chambers and raising the testosterone levels in your body. Ending premature cheap cialis viagra ejaculation can do wonders for your sex life. However if buying viagra somehow the Candida yeast's activity increases it results in yeast infections. These treatments achat viagra pharmacie only treat the itches and burns but do nothing to treat the root cause of yeast infection which is the excessive activity of Candida yeast. You could comprar cialis contrareembolso do the same thing with a little bit of baby lotion. Sores in propecia online no prescription the penis head. Unlike prescription accutane online drugs these herbal pills and patches do not give you any nasty side effects.

With so buy propecia australia many products out there to choose from how do you get any real penis enlargement facts Unfortunately most of the products offered are just plain junk. Let us acheter cialis en espagne look at them. Aside from prix viagra 50 doing fat burning exercises like running jogging walking biking cross country skiing etc.

To gain cialis prix a complete relief and prevent the recurrence you need to treat the root cause check the Candida activity. Also be viagra where to buy sure to demand a 100% guarantee like I did. Some of viagra sale online the symptoms include severe itching burning sensation during urination and intercourse sores and redness in the penis and skin flaking and dryness. That way buy viagra online in australia you know you have NOTHING to lose and a lifetime of amazing sex to gain. Yeast infection, cialis farmacia online, in men can be very frustrating both physical and emotional it is important to seek treatment immediately as it can be fatal if left untreated for long. The best cialis low cost methods for making your penis bigger do not involve any pills or potions. But when (cialis price at walmart) you have a very thin penis the task becomes a lot more difficult. A high (viagra for sale) quality pump costs a few hundred dollars that not many men are willing to spend. This is acheter viagra en suisse because; OTC medicines only treat the symptoms of yeast infections and do nothing to actually treat the root cause of yeast infections. As long purchase viagra online as this root cause is not fixed it will be common to see yeast infections that will keep recurring with increased severity as they keep getting resistant to the drugs and treatments prescribed by doctors. The answers order viagra without prescription come in different forms of penis enlargement and penis enhancement products that you can get online or in the market. There are buy accutane uk a few options available when it comes to girth enhancement.

Instead I buy adobe photoshop cs4 recommend getting your hands on a nifty little piece of software called a registry cleaner. This will buy microsoft office 2007 product key really consume your time. Be very buy dreamweaver online careful when deleting registry entries. They slow buy xp pro oem it down because every time you ask your computer to do something it needs to access files in the registry. Think of purchase vista key from microsoft the registry as the engine in your computer. Using a buy windows xp professional product key slow computer can be very frustrating. If you buy photoshop cs 4 do decide to go ahead and download SDFix you need to be aware that it only works on Windows 2000 and XP on accounts that have full administrator privileges and it must be run in safe mode. • Run your buy xp license key disk defragmentation software. Even though buy autocad software these files are no longer required they are there. However by buy windows vista ultimate product key simply using the password protect your information is locked away from the prying eyes of others with a password only you have.

If you buy microsoft windows 2000 want to fix PC registry you are going to need to download a registry cleaner software like System Mechanic. You may buy windows xp volume license also wonder how the best registry cleaners can be quite so cost effective but this is actually quite straightforward. But how buy visual studio pro do you get this nasty virus off your system. When it buy acrobat distiller is not running at full capacity the rest of the system suffers. Stop asking (buy microsoft word software) "why is my computer so slow" or "how to make my computer go faster" install the software and speed up your system in minutes. Over any buy adobe acrobat 9 pro extended period of time the registry can become cluttered with information and data no longer relevant. That is buy cs3 flash actually the main reason why projects get delayed because team members that work on certain parts of the projects unintentionally affect what the others are doing. And unfortunately (buy microsoft office 2007 vista) there is no internal tool to clean up the registry for you. If you (buy windows 2008 web edition) were not aware the virus has the intention to trick you. That is purchase windows xp activation key actually the main reason why projects get delayed because team members that work on certain parts of the projects unintentionally affect what the others are doing. Without going buy windows xp home sp2 too deep into the technical mumbo jumbo your registry is the central information store for just about everything to do with your computer. This can purchase office 2007 pro lead to a build up of corrupt entries and can effect the performance speed of the PC as well cause serious errors. Even though buy adobe captivate 4 these files are no longer required they are there. After you (purchase windows vista home) have done this you will then simply click on the button marked "Encrypt Now" and your files are now encrypted. All of purchase microsoft office 2007 upgrade this being said SDFix does a good job of what it is intended to do and that is get rid of the nastiest and most persistent threats out there that maybe only a handful of spyware removal tools can get rid of. Any changes buy microsoft windows xp online made to installed software or system policies will be held in the registry.

Tired of purchase windows xp pro download your laptop freezing. Spyware Guard buy microsoft project 2009 is a dangerous rogue program that posts false positive messages that you system is infected. There's a (purchase adobe acrobat pro) small chance though it could harm your computer but it does help a lot of people with registry programs. Get sites buy microsoft office student edition that illustrate simple example rather than those that throw a complex coded application that you hardly can find out the beginning and the ending. However projects, buy cs4 master, entail certain risks that managers are well aware of. They can, buy vista with xp downgrade, be:• Your computer freezes up completely leaving you unable to so much as move the mouse around.

Once it buy windows server 2003 standard is slowed down you can fix PC registry and have it move faster again. Your computer's (buying windows for mac) registry is where all of the files your computer needs to perform tasks are stored. Lets take buy windows cd key a look at Regcure first shall we. This will buy windows vista home premium really consume your time. When you purchase xp online have a USB flash that keeps all of your important documents you may consider using the password protect to ensure that all of your work is kept private especially if you should lose the drive. So if buy microsoft office academic you feel that your project and your team members are running in circles consider document version control software.

In your cialis cost quest for a safe penile enhancement method you must have come across sites that promote various products such as exercises traction devices pills and patches. If a prix viagra 50 man feels that he has a smaller than average size penis this can lead to feelings of anxiety and fear of love making. 5 inch cheap viagra canada in thickness. The average acheter viagra au quebec penis girth = 5. In 2001 propecia where to buy Lifestyles Condoms did another survey with 301 volunteers over 18 years old. Here are buy viagra without the answers to some frequently asked questions about getting a larger thicker and more satisfying erect penis size fast.

Mucuna Pruriens where can i buy viagra legally ExtractThe anabolic effect of this herb increases testosterone. This is cialis for cheap due to the fact that it contains lycopene which will protect you from many other types of cancer as well. Check out cialis online australia Best Penis Enhancement Products that are not just clinically approved and recommended by doctors but also come with extra bonuses and a complete money back guarantee. These are viagra kaufen gÓÌnstig mostly gimmickry that will only give you a temporary increase in size. An erection buy cialis using paypal relies on strong blood flow and any man with impotence is likely to have insufficient blood flow when sexually aroused.

I am acheter cialis en pharmacie sure you would agree with me male enhancement can not get any simpler than this. Men are prix cialis pharmacie becoming more aware of penis enhancement finding need of a larger penis. Most women comprar cialis en espana do care about the size of their partner. Natural exercise buy generic accutane online enhancement pills surgery enlargement penis enlargement devices are some enlargement techniques. Good quality, viagra 50mg price, patches come with extra bonuses like free access to exercise programs. Penis exercise (propecia online price) is a safe and healthy method to enlarge your manhood if you follow the proper approach and program. A good (viagra for sale ireland) diet plan might be useful in setting up the right healthy food menu plan for you. This article achat cialis 5 mg will give you an idea on some of the best tips and tricks you can use to get those few extra inches you've always wanted. Perhaps you viagra to buy uk have always felt a little uncomfortable when naked. In fact comprar viagra en vigo there is never a need for anything more. This limits achat viagra france the results you can get from them however and if you are looking for a much larger penis then you should be looking at herbal penis enlargement pills. L'arginineL'arginine is, cialis price at walmart, not a herb but a non essential amino acid; it declines with age and is responsible for many health problems.

5 inches vente viagra belgique long and 5 inches around to over 8 inches long and exactly 6 inches around. The exercises order viagra from uk will make you bigger maybe even much bigger but not overnight. Many of buy viagra online cheap the pill products advertised on TV don't really work and in fact that are nothing more than placebos however that doesn't mean all of them are not to be trusted. Fresh tomatoes (viagra sale) contain Beta Carotene which is also very effective for fighting off prostate problems. These pills viagra online cialis are designed to work on the area to improve size desire and control. Fresh tomatoes buy accutane uk contain Beta Carotene which is also very effective for fighting off prostate problems. 2 inchesMen buying viagra in canada taking part in the survey were asked to measure themselves and then report their results online. In order, purchase viagra in australia, to get dramatic results you would need to do exercises that could possibly do some damage to the penis and it is best not to go there.

And I buy dreamweaver online am not the only person who is saying this. Does this purchase microsoft office professional 2003 sound familiar to you: From one day to the next your PC runs slower than normal pop ups come out on its own you get redirected to some commercial sites surfing on the internet programs installed on your computer don't work anymore.

When the purchase xp operating system registry is cluttered this way it takes the computer longer to locate the information it needs. This is purchase xp professional key what I consider the best and safest way to remove Spyware Guard 2009. If you, buy cs4 upgrade, are interested you can check out some reviews of the top products below as well as my recommendation for the #1 cleaner on the market. You know buy windows wholesale why it's difficult to begin to learn a programming language.

While this buy windows product key is a nearly impossible task to perform manually with the right software you can do it quite quickly and easily. You may buy autocad dynamic blocks come to discover that you will have learnt a lot in a very short period of time.

If you purchase adobe distiller don't use a spyware blocker program then you leave yourself open to various risks:General slowdown of your PCStrange pop ups and advertisements out of nowhereAltering your home page or other settings on your browserExcessive memory utilization Altering registry settings or installing other spyware programsPC registry corruption (yikes time to restore. However with buy indesign cs3 mac the passage of time and the normal everyday use of your computer you may notice that the operating system no longer performs the way it used to. Before we buy microsoft project standard get to how to fix Internet Explorer freezing it is important to understand what causes it. In the buying windows 2000 process of learning do not receive blows you cant block I mean try to learn what you can accommodate it would be better to learn in short intervals of two hours maximum. There you buy windows vista license can view all the background programs running on your computer. But what buy xp license key happens over time is that because of the dynamic nature of our computers the new programs we install the old programs we remove the updates and upgrades etc. Perhaps you buy acrobat 9 pro have to reboot your computer before one of your programs will work correctly or your computer runs extremely slowly. Well save buy adobe photoshop 5.5 your money. But what (buy microsoft windows xp online) happens over time is that because of the dynamic nature of our computers the new programs we install the old programs we remove the updates and upgrades etc. Make sure buy windows vista enterprise that the software you download is able to optimize and condense the registry so that it is running as efficiently as possible. That is buy office 2007 key actually the main reason why projects get delayed because team members that work on certain parts of the projects unintentionally affect what the others are doing. Before you purchase windows xp operating system buy a new CPU or spend hundreds on upgrades try these three things first. Of course buy windows vista amazon having real time protection doesn't hurt either. You can buy microsoft office 2003 student do this manually or set an automatic schedule with a specific software program. You know purchase windows xp key why it's difficult to begin to learn a programming language.

The best buy win xp 64 registry cleaners will cost money but you will also be buying the assurance that the company producing the software will use their profits to make sure the registry cleaner is regularly updated. It can buy microsoft office professional 2007 full version also be the cause of error messages. If the buy adobe acrobat australia problem is not running too many programs at once then your computer freezing is related to errors in the Windows registry. The registry (buy visual studio 2008 upgrade) in your computer is very important so when you clean the registry it should always be backed up. Its powerful buy microsoft word for vista and safe to use which in turn means a lot. There are buy windows server 2008 datacenter many registry cleaners available some you must buy and others are free the question of course is which registry cleaner should you choose. Would you buy microsoft windows license like to know how to remove Spyware Guard 2009. They simply buy windows vista home premium product key provide purchasers with a download link. Well you (buy adobe creative suite 3) have come to the right place. Do you buy microsoft office 2008 for vista feel like you are ready to junk the thing and get a new one. Without reservation purchase office 2007 license key I would recommend that you buy Registry Easy. Maybe you buy windows xp black already have detected a (or some) Trojan virus(es) with an antivirus program. Want to purchase vista ultimate know how to stop laptop freezes from happening. It is, buy windows xp key, always recommended that you try to stay away from free registry cleaners. Because the buy photoshop cs3 for mac software is sold online there is very little in the way of overhead expenses.

No wonder buy cheap viagra relationships do suffer a lot. Initially you viagra sale can start with performing just 5 repetitions clenching the muscle for for just 5 seconds each time and increase the number of repetitions as you get used to with these exercises.

Natural penis cheap viagra and cialis enlargement techniques will give you bigger gains than pills pumps or even surgery.

Accordingly bananas buy propecia online without prescription are effective in affecting the minds of people before having sex. Yeast infection acheter cialis en france on a man's penis can be sexually transmitted and hence force him to lead a solitary life if left untreated. Natural techniques viagra for sale nz work to elongate the ligaments in your penis and expand the capacity of the blood vessels which if done properly results in an erection that is both longer and thicker. Surgery works comprar cialis viagra by injecting a fatty implant into the penile shaft giving you an inch or two of added length but no girth. A longer buying viagra uk penis allows you to penetrate the more sensitive areas of a woman and reach nerve endings that could never be touched by a below average male penis. Are there accutane online any other benefits to natural penis enlargement Natural penis enlargement techniques also work to strengthen your PC muscles significantly which will result in harder erections increased staying power and more powerful ejaculations.

A lot acheter viagra pharmacie of studies have been done that focus on this particular method and even though results may vary between studies around 85 90% of the participants have had positive gains to report. If you viagra online vipps want to end early ejaculation as soon as TONIGHT forget about "stamina" pills penis desensitizing creams and climax control condoms. excessive Candida, cialis online rezept, activity should be kept in check by diet and lifestyle changes. Often their cialis low price partners become sexually frustrated as well. They will, viagra price usa, help some men achieve an erection but they may also cause vascular damage and blisters if used to excess. The techniques buy cialis australia rely on an ancient form of a stretching exercise that keeps constant pressure on the penile shaft causing cells and penile tissue to divide and multiply allowing the penis to hold more blood. There are, viagra prix en pharmacie, many reasons why you don't need pills or surgery. By hanging (order viagra from india) weights from your penis for hours at a time you run the real risk of doing permanent damage to the vascular structure of your penis. Most of vente viagra en france these products can be found on the internet. Yeast infection cialis cost walmart if left untreated can turn chronic. What is viagra to purchase the true most effective method for me to stop premature ejaculation as soon as tonight Do what worked for me. While these achat cialis en suisse do work they also tend to give you serious health risks like stroke heart attack and low blood pressure etc. There are viagra kaufen in mÓÌnchen course other male infertility causes. But you comprar viagra en chile must know that herbal solutions are not meant to give you an instant erection like ED drugs. Cancer treatments prix cialis pharmacie can stop sperm production temporarily or for good. In fact buy viagra online no prescription both methods are clinically proven to add penis size & help you last longer in bed. Thankfully there, achat viagra quebec, are numerous ways to take control of this weak erectile problem. They are buy cheap viagra in uk safe effective and easy to use. Damaged capillaries (can i buy viagra without a prescription) could lead to permanent impotence. Hence the buy accutane 40mg best recommend treatment for treating yeast infection in male is to resort to natural methods to cure the infection at its roots. That way cheap cialis india you know you have nothing to lose and a large impressive satisfying penis to gain. Never attempt buy propecia uk to take any medication or go under the knife as this can do you more harm than good.

IDL tutorial

From NYU CCPP Wiki

Contents

Introduction

In order for the things on this page to work, you need to have the package "idlutils" installed. Install it with the command setup.

For most of our scientific computing purposes, we use the language IDL. It can be used either interactively or in a batch mode. There are many ways in which it sucks. Don't worry, we understand this even better than you do. But there is also a huge amount of legacy software written in it, so we are stuck with it in the short term. It is still the best existing alternative for astronomy.

This section will be updated as time goes on based on what people actually ask about or need to do. Eventually, you will have the ability to update this page, so write down things that are unclear here or should be added, and insert them someday. Also, we may want to add more advanced descriptions of stuff on this page as well.

Making it work

First, make sure it works. Just type "idl" at a Unix prompt. It should come up with a new command line like:

IDL> 

which you can type at. Type "exit" to get out of it.

Basic plotting

The first thing you want to do is to learn the basics of the syntax. Ask Blanton for a binder with some basic documentation and start up tutorials for IDL and how to structure programs in it. You should first read those.

Next, you should be able to look at data interactively using the "splot" command. Run the following commands:

xx= randomn(seed, 1000)
yy= randomn(seed, 1000)
splot, xx, yy, psym=3, color='yellow'

A plot should pop up with yellow points on a black background. (This won't work if you don't have X windows.) You can change the color with the "color" keyword, and the point type with the "psym" keyword. If these commands don't work for you, something is wrong with your setup. Review that you have copied the dot files described above correctly. If you think you have, and this command still doesn't work, email me. You should be able to navigate around the plot. The middle button recenters in the X-direction; the left and right buttons zoom and unzoom in the X-direction. If you press shift while pressing the button, it does the Y-direction as well. Being able to look at data with this tool will be very useful to you.

Documentation

At this point, you may wonder what the "randomn" function does. It is an IDL built-in function, so look up its documentation using the command (while at an IDL prompt):

?randomn

This will pop up the IDL documentation PDF file.

You might also want to see documentation for "splot". "splot" is a procedure written in the IDL language, so you can look up its documentation in a different way:

doc_library, 'splot'

You'll note that the first line of the documentation it spews out is actually the location of the code itself, so you can look up the source IDL code for this procedure (which occasionally you may need to do for other procedures or functions).

Another useful procedure is the "which" procedure, which tells you just where the source code is. Typing:

which, 'splot'

should return:

% Compiled module: WHICH.
% Compiled module: STRSPLIT.
Currently-Compiled Module SPLOT in File:
/global/data/products/Linux/idlutils/cvs/pro/plot/splot.pro

Often what you will be doing is looking at images. To look at images, you will often use the routine "atv". For example:

xx= findgen(200)#replicate(1., 200)
yy= transpose(xx)
rr2=(xx-100.)^2+(yy-100.)^2
image= exp(-rr2/30.^2)
atv, image

You can rescale the greyscale by holding down the left button and moving the mouse. Sometimes after doing so you will want to press the "Restretch" button. You'll get use to when it is appropriate to do so (it never hurts to). Recenter with the middle button, and there are "ZoomIn" and "ZoomOut" buttons.

At this point, you should try to understand the above lines a bit more. Use the IDL documentation to find out what "#", "^", "replicate()", "transpose()", and "findgen()" do. "exp()" should be obvious to you. Finally, play with the "help" command, as in:

help, image

You'll find that "image" is a two-dimensional array which is 200 by 200.

Postscript output files

One very common thing you will need to do is to make postscript files, which are files that you can print out on a printer, analogous to PDF files. With the way your account is set up, you will be able to type:

k_print, filename='blah.ps'

which will "start" a postscript file called blah.ps. Then you can type plotting commands, like:

djs_plot, [1., 2., 4.], [10., 40, 30], thick=5, xrange=[0.1, 4.9], yrange=[-5., 50], $
 color='red'

and then close the file with:

k_end_print

If you exit IDL and get back to the Unix prompt, you will then be able to type:

gv blah.ps &

(Find out what the "&" does from a Unix book if you don't know). This will bring up the "blah.ps" for you to look at.

The "djs_plot" command above is a wrapper on the IDL command "plot", which makes it better. But take a look at the online documentation for "plot" to find out about it. Note that interactive commands like "splot" or "atv" won't work when IDL is trying to write to a postscript file (that is, after you type the "k_print" command and before you type "k_end_print".

Now, "k_print" and "k_end_print" are not standard IDL. They are just wrappers we've written to set things up the way we like. You can use the "which" command to find out where the code is and check out what they do. If "k_print" doesn't work for you, make sure there is a line at the end of your .bash_profile file that says:

setup kcorrect

If it isn't there, add it.

The "where" Statement

One of the most useful tools in IDL is the "where" statement. This allows you to search an array (or an aligned set of arrays) for entries that satisfy a certain set of conditions. For example:

a=lindgen(20)-2L
print, a
indx=where(a gt 1 AND a le 3, count)
print, indx
print, a[indx]
print, count

As you can see, "indx" holds the zero-indexed position of the entries that satisfy your conditions. "a[indx]" will then give you the values in the array "a" at those positions. "count" holds the number of values. Now consider:

indx=where(a gt 100, count)
print, indx
print, count

Because no entries satisfy these conditions, "indx" just gets a "-1" entry, and "count" is 0. Since trying to access "a[-1]" will yield an error message, you always want to check "count" before using "indx".

The sorts of booleans you can use in this command are "GT", "LT", "LE", "GE", "EQ", "NE", whose meaning should be obvious to you. You can also combine conditions, as above, using "AND" and "OR".

Creating IDL structures

There is a data structure in IDL called a "structure" which allows you to put lots of variables into a single bundle. For example, to create a structure with RA, DEC, ID, and FLUX you might do:

newstr= create_struct('ra', 0.D, 'dec', 0.D, 'id', 0L, 'flux', 0.)

(where this has defined RA and DEC to be double-precision floating point, ID to be a 4-byte integer (a LONG in IDL parlance) and FLUX to be single-precision floating point. Alternatively you could have gotten an identical result with:

newstr= {ra:0.D, dec:0.D, id:0L, flux:0.}

Once a structure like this is defined you can use help to look at its contents:

help, /st, newstr

or reference its contents with the "." symbol:

print, newstr.ra
newstr.ra= 180.
print, newstr.ra

Structures are usually most useful when you have a whole array of them. You can create such an array with the "replicate" command:

newstrs= replicate(newstr, 1000)

where you can use any (positive) number you need instead of 1000. Once you have done that, you can treat them like any other array:

newstrs.ra= randomn(seed, 1000)
newstrs.flux= randomn(seed, 1000)
splot, newstrs.ra, newstrs.flux, psym=3

To copy columns from one structure to a structure of a different format you can use the "struct_assign" command:

str1=replicate({flux:0., ra:0., dec:0.}, 1000)
str1.ra= randomn(seed, 1000)
str1.dec= randomn(seed, 1000)
str2=replicate({mag:0., ra:0., dec:0.}, 1000)
struct_assign, str1, str2

Reading and writing FITS files

In astrophysics, there is a special type of file called a FITS file, in which you can stored tables and images. For example, an IDL structure can be written out as a FITS table as follows:

mwrfits, newstrs, 'output.fits', /create

Then you can read in the file:

in_newstrs= mrdfits('output.fits', 1)
splot, in_newstrs.ra, in_newstrs.flux, psym=3, color='red'

You should see that "in_newstrs" is the same as "newstrs".

Why the "/create" in "mwrfits"? Well, FITS files can actually have multiple tables. For example:

newstrs2= replicate({dec:0., blah:0.}, 1000)
newstrs2.dec= randomn(seed, 1000)
newstrs2.blah= randomn(seed, 1000)
mwrfits, newstrs, 'output.fits', /create
mwrfits, newstrs2, 'output.fits'

will create a file with two tables. You read in the first and second tables with

in_newstrs=mrdfits('output.fits',1)
in_newstrs2=mrdfits('output.fits',2)

Another variant of this that is useful for reading in large files is:

in_newstrs=hogg_mrdfits('output.fits',1,nrow=28800)

This reads in the file 28,800 rows at a time. For files with millions of rows, this can be very convenient (it saves a factor of two in memory, for example). Also, in combination with the "columns" keyword, which (look at the documentation) allows you to read in only some of the columns, it can save even more memory.

Calling IDL from a shell

The Basics

You can run an IDL programs from your command line or in a shell script

echo "print,'hello world'" | idl

Another way to do this which allows more complex commands is to use the << operator in a shell script. Edit a file, say stuff.sh, and write this

idl<<EOF
   command1
   command2
   command3
EOF

where command1, etc are whatever commands you want to run. This is how run the shell script if bash is your login shell.

bash stuff.sh &> stuff.out &

This sends all the output to the stuff.out file. For tcsh it is "> & stuff.out &", note the change in order of & and >. If you for some reason want to put the error messages into a separate file:

bash stuff.sh 1> stuff.out 2> stuff.err &

Remote Jobs

If you have logged in to a remote machine with ssh, these commands will be killed when you log out if you are "forwarding X", or at the very least your logout will hang and you will have to kill your shell. The solution is to also re-direct standard input. Add this to your command to prevent this:

bash stuff.sh < /dev/null &> stuff.out &

Sadly this does not work for IDL jobs because when you run IDL it actually calls a complex script. One would have to modify that script to take stdin from /dev/null.

Running big jobs nicely

Say you have a big idl job called hello and it will take days to run. If you want to run it in the background and not interfere too much with other people on the same computer, do the following (for bash users):

echo hello | (nice -19 idl) > hello.$HOSTNAME 2> helloerr.$HOSTNAME &

This puts the command hello into idl, runs idl "nice" so it takes as little CPU as possible from interactive (real-time) users, pipes stdout to the log file hello.wassup.physics.nyu.edu (if you are running on, say wassup), pipes stderr to the log file helloerr..., and runs in the background (so you can log out and it will keep running).

If you don't mind interfering with other people on the same computer, just use "idl" in place of "(nice -19 idl)" in the above command.

If you want to see the status of your job in the machine, use

top

which will show you the percentage of CPU, the amount of RAM, and the nice level of your job, among other things.

If you want to "watch the grass grow" you can

tail -f hello.$HOSTNAME

and watch the output being put in the file.

Licenses

There are a finite number of IDL licenses. That is, only a certain number of IDL jobs can be running at once. To check who is using them (since occasionally we run out and it is useful to know) you can run:

/usr/local/rsi/idl/bin/lmstat -a

There is also one trick to remember if you are running two IDL jobs on a single (two or more processor) machine. You can conserve IDL licenses by starting both jobs from the same window. That is, instead of sshing two times to the machine bias (say) and starting IDL in each, you can ssh in once and start both jobs from the same window. Most commonly you will do this when you have a big job that you start using the "echo blah | idl > output.out &" construction described in the previous section.