fraserw / trippy

Python based Trailed Source Photometry
GNU General Public License v3.0
20 stars 13 forks source link

tutorial - wget call needs -O ? #1

Closed mschwamb closed 8 years ago

mschwamb commented 8 years ago

When I run:

Get the image this tutorial assumes you have. If wget fails then you are likely on a mac, and should just download it manually In [3]:

  inputFile='Polonskaya.fits'
   if not path.isfile(inputFile):
        os.system('wget http://www.canfar.phys.uvic.ca/vospace/nodes/fraserw/Polonskaya.fits?view=data')
   else:
       print "We already have the file."

my mac downloads the file as Polonskaya.fits?view=data . I had to add the -O Polonskaya.fits to the wget call to work okay. Is that universal? I installed wget from homebrew

fraserw commented 8 years ago

Added the -O option. Good idea