From 006537f7a7607130a2c6fa0eaedb8c62b7590101 Mon Sep 17 00:00:00 2001 From: dencheva Date: Thu, 30 Sep 2010 19:06:39 +0000 Subject: Adding documentation git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10439 fe389314-cf27-0410-b35b-8c050e845b92 --- doc/source/hstwcs_ui.rst | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 doc/source/hstwcs_ui.rst (limited to 'doc/source/hstwcs_ui.rst') diff --git a/doc/source/hstwcs_ui.rst b/doc/source/hstwcs_ui.rst new file mode 100644 index 0000000..7a09af4 --- /dev/null +++ b/doc/source/hstwcs_ui.rst @@ -0,0 +1,26 @@ +.. _hstwcs_ui: + +************************************** +HSTWCS UI Examples +************************************** +- Create an HSTWCS object using a pyfits HDUList and an extension number + + fobj = pyfits.open('some_file.fits') + + w = wcsutil.HSTWCS(fobj, 3) + +- Create an HSTWCS object using a qualified file name. + + w = wcsutil.HSTWCS('j9irw4b1q_flt.fits[sci,1]') + +- Create an HSTWCS object using a file name and an extension number. + + w = wcsutil.HSTWCS('j9irw4b1q_flt.fits', ext=2) + +- Create an HSTWCS object from WCS with key 'O'. + + w = wcsutil.HSTWCS('j9irw4b1q_flt.fits', ext=2, wcskey='O') + +- Create a template HSTWCS object for a DEFAULT object. + + w = wcsutil.HSTWCS(instrument='DEFAULT') \ No newline at end of file -- cgit