~ubuntu-branches/ubuntu/wily/pyfits/wily-proposed

« back to all changes in this revision

Viewing changes to docs/source/users_guide/users_reference.rst

  • Committer: Package Import Robot
  • Author(s): Aurelien Jarno
  • Date: 2012-12-30 15:03:07 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20121230150307-ltycp0zrtyh53gd8
Tags: 1:3.1-1
* New upstream version.
  - Refreshed 01-zlib.diff.
  - Added 02-disable-version-setup-hook.diff to prevent version.py to
    be regenerated with a timestamp at clean time.
* Compress source and .deb with xz.
* Bump Standards-Version to 3.9.4.0 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
    # write out the fits images, the data numbers are still JUST the RGB
62
62
    # scalings; don't use for science
63
 
    red = pyfits.PrimaryHDU()
64
 
    red.header.update('LATOBS', "32:11:56") # add spurious header info
65
 
    red.header.update('LONGOBS', "110:56")
66
 
    red.data = npr
 
63
    red = pyfits.PrimaryHDU(data=npr)
 
64
    red.header['LATOBS'] = "32:11:56" # add spurious header info
 
65
    red.header['LONGOBS'] = "110:56"
67
66
    red.writeto('red.fits')
68
 
    green = pyfits.PrimaryHDU()
69
 
    green.header.update('LATOBS', "32:11:56")
70
 
    green.header.update('LONGOBS', "110:56")
71
 
    green.data = npg
 
67
 
 
68
    green = pyfits.PrimaryHDU(data=npg)
 
69
    green.header['LATOBS'] = "32:11:56"
 
70
    green.header['LONGOBS'] = "110:56"
72
71
    green.writeto('green.fits')
73
 
    blue = pyfits.PrimaryHDU()
74
 
    blue.header.update('LATOBS', "32:11:56")
75
 
    blue.header.update('LONGOBS', "110:56")
76
 
    blue.data = npb
 
72
 
 
73
    blue = pyfits.PrimaryHDU(data=npb)
 
74
    blue.header['LATOBS'] = "32:11:56"
 
75
    blue.header['LONGOBS'] = "110:56"
77
76
    blue.writeto('blue.fits')