Skip to content

Commit

Permalink
Clean up doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim authored Nov 12, 2024
1 parent ee484ea commit 9b0a963
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/imviz/import_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ object, you can load it into Imviz as follows:
from astropy.nddata import NDData
from jdaviz import Imviz
# mydatamodel is a jwst.datamodels object
ndd = NDData(mydatamodel.data, uncertainty=StdDevUncertainty(mydatamodel.err), mask=mydatamodel.dq, wcs=mydatamodel.meta.wcs, meta=dict(mydatamodel.meta.items()))
# mydatamodel is a jwst.datamodels object with stddev ERR array
ndd = NDData(mydatamodel.data,
uncertainty=StdDevUncertainty(mydatamodel.err),
mask=mydatamodel.dq,
wcs=mydatamodel.meta.wcs,
meta=dict(mydatamodel.meta.items()))
imviz = Imviz()
imviz.load_data(ndd, data_label='my_data_model')
imviz.show()
Expand Down

0 comments on commit 9b0a963

Please sign in to comment.