File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 151151 " filelist = glob('UVES/*.fits')\n " ,
152152 " # sort alphabetically - given the way the filenames are\n " ,
153153 " # this also sorts in time\n " ,
154- " filelist.sort()\n " ,
155- " \n " ,
156- " Read the first fits file in the list and check what is in there:\n " ,
157- " \n " ,
158- " sp = fits.open(filelist[0])\n " ,
159- " sp.info()"
154+ " filelist.sort()"
160155 ],
161156 "language" : " python" ,
162157 "metadata" : {},
181176 "outputs" : []
182177 },
183178 {
184- "cell_type" : " raw " ,
179+ "cell_type" : " markdown " ,
185180 "metadata" : {},
186181 "source" : [
187182 " We see that the data is given as the primary image and all other info is\n " ,
202197 " wavelength = wcs.wcs_pix2world(index[:,np.newaxis], 0)\n " ,
203198 " wavelength.shape\n " ,
204199 " #Ahh, this has the wrong dimension. So we flatten it.\n " ,
205- " wavelength = wavelength.flatten("
200+ " wavelength = wavelength.flatten() "
206201 ],
207202 "language" : " python" ,
208203 "metadata" : {},
363358 ]
364359 },
365360 {
366- "cell_type" : " code " ,
367- "collapsed " : false ,
368- "input " : [
361+ "cell_type" : " markdown " ,
362+ "metadata " : {} ,
363+ "source " : [
369364 " Try to find out how you can read the help for this function from the\n " ,
370365 " command line"
371- ],
372- "language" : " python" ,
373- "metadata" : {},
374- "outputs" : []
366+ ]
375367 },
376368 {
377369 "cell_type" : " code" ,
You can’t perform that action at this time.
0 commit comments