summaryrefslogtreecommitdiff
path: root/doc/source/hstwcs_ui.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/hstwcs_ui.rst')
-rw-r--r--doc/source/hstwcs_ui.rst26
1 files changed, 26 insertions, 0 deletions
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