{"id":497,"date":"2026-03-12T06:53:56","date_gmt":"2026-03-12T12:53:56","guid":{"rendered":"https:\/\/www.omairagonzalez.com\/?page_id=497"},"modified":"2026-06-05T13:27:11","modified_gmt":"2026-06-05T19:27:11","slug":"mrspsfisol","status":"publish","type":"page","link":"https:\/\/www.omairagonzalez.com\/index.php\/mrspsfisol\/","title":{"rendered":"MRSPSFIsol"},"content":{"rendered":"\n<p>Tool for the isolation of JWST\/MIRI and JWST\/NIRSpec data cubes. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"600\" src=\"https:\/\/www.omairagonzalez.com\/wp-content\/uploads\/2026\/03\/NGC4594_SpecWV_P0.png\" alt=\"\" class=\"wp-image-511\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"600\" src=\"https:\/\/www.omairagonzalez.com\/wp-content\/uploads\/2026\/03\/NGC3031_SpecWV_P0.png\" alt=\"\" class=\"wp-image-510\" style=\"width:840px;height:auto\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2106\" height=\"1686\" src=\"https:\/\/www.omairagonzalez.com\/wp-content\/uploads\/2026\/03\/Captura-de-pantalla-2026-03-12-a-las-1.57.58\u202fp.\u202fm.png\" alt=\"\" class=\"wp-image-503\"\/><\/figure>\n\n\n\n<p>Details on the tool at our paper. It can be downloaed <a href=\"https:\/\/ui.adsabs.harvard.edu\/abs\/2025MNRAS.539.2158G\/abstract\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">here<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Download:<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.dropbox.com\/scl\/fi\/4511mytbapihbu2ogdasa\/mrspsfisol_v1-2.zip?rlkey=q6qz5u924uzdxmkiamvnqwi0s&amp;dl=0\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Here<\/a> is the link to download the current version (version March 2026; 590MB)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to use it:<\/h2>\n\n\n\n<p>It is a python set of routines launched from shell script. It requires common python packages like numpy, math, matplotlib, etc. Write in your bash\/cshell: <\/p>\n\n\n\n<p>export MRSPSFISOLPATH=\/PATHTO\/mrspsfisol_v1<br>alias mrspsfisol=&#8217;csh ${MRSPSFISOLPATH}\/MRSPSFisol.csh&#8217;<\/p>\n\n\n\n<p>to ask for instructions on how to run it: <\/p>\n\n\n\n<p>mrspsfisol -h<\/p>\n\n\n\n<p class=\"has-small-font-size\">There are two ways to run this code:<\/p>\n\n\n\n<p class=\"has-small-font-size\"><strong><kbd>Mode 1<\/kbd><\/strong>: save a file with the following information:<br>OBJNAME OBSID(MIRI) OBSNUMER(TARGET MIRI) OBSNUMBER (BACK MIRI) OBSID(NIRSpec) OBSNUMER (NIRSPEC) RA DEC REDSHIFT<br>                   e.g.: NGC3081 01670 011 005 05017 005 149.8731682 -22.8263423 0.008149<\/p>\n\n\n\n<p class=\"has-small-font-size\"><strong><kbd>Mode 2<\/kbd><\/strong>: skip the name of the file and this info will be collected interactivelly.<br>note that OBSID should have 5 numbers and OBSNUMBER should have 3 numbers<br>to skip NIR or MIR write &#8211; for each number. e.g.: NGC3081 01670 011 005 &#8212;&#8211; &#8212; 149.8731682 -22.8263423 0.00814<\/p>\n\n\n\n<p class=\"has-small-font-size\">Data will be downloaded if public. Otherwise uncal files should be placed at DATA\/OBJNAME\/OBSID\/ for NIRSpec or at MIRIDATA\/OBJNAME\/OBSID\/ for MIRI\/IFU. Note that if you prefer to use your own calibrated files, the filenames should be matched carefully to go to the decomposition step (not recommended). The decomposition assumes a data cube for each channel and band at MIRI: ch1-short; ch1-medium; \u2026. Final extraction only for general visualization. It assumes that you have either MIRI or MIRI+NIRSpec. It won&#8217;t work for NIRSpec alone.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Acknowledge: <\/h2>\n\n\n\n<p>Please, acknowledge the development of this tool by citing our paper: <\/p>\n\n\n\n<p>Gonz\u00e1lez-Mart\u00edn, O., et al. \u201cJWST reveals the diversity of nuclear obscuring dust in nearby AGN: nuclear isolation of MIRI\/MRS data cubes and continuum spectral fitting\u201d, <em>Monthly Notices of the Royal Astronomical Society<\/em>, vol. 539, no. 3, OUP, pp. 2158\u20132184, 2025. doi:10.1093\/mnras\/staf573.<\/p>\n\n\n\n<p>\\bibitem[Gonz{\\&#8217;a}lez-Mart{\\&#8217;\\i}n et al.(2025)]{2025MNRAS.539.2158G} Gonz{\\&#8217;a}lez-Mart{\\&#8217;\\i}n, O., D{\\&#8217;\\i}az-Gonz{\\&#8217;a}lez, D.~J., Mart{\\&#8217;\\i}nez-Paredes, M., et al.\\ 2025, \\mnras, 539, 3, 2158. doi:10.1093\/mnras\/staf573<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2570\" height=\"1344\" src=\"https:\/\/www.omairagonzalez.com\/wp-content\/uploads\/2026\/03\/Captura-de-pantalla-2026-03-12-a-las-2.09.02\u202fp.\u202fm.png\" alt=\"\" class=\"wp-image-506\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Tool for the isolation of JWST\/MIRI and JWST\/NIRSpec data cubes. Details on the tool at our paper. It can be downloaed here Download: Here is the link to download the current version (version March 2026; 590MB) How to use it: It is a python set of routines launched from shell script. It requires common python &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.omairagonzalez.com\/index.php\/mrspsfisol\/\" class=\"more-link\">Continuar leyendo<span class=\"screen-reader-text\"> &#8220;MRSPSFIsol&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/www.omairagonzalez.com\/index.php\/wp-json\/wp\/v2\/pages\/497"}],"collection":[{"href":"https:\/\/www.omairagonzalez.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.omairagonzalez.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.omairagonzalez.com\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omairagonzalez.com\/index.php\/wp-json\/wp\/v2\/comments?post=497"}],"version-history":[{"count":8,"href":"https:\/\/www.omairagonzalez.com\/index.php\/wp-json\/wp\/v2\/pages\/497\/revisions"}],"predecessor-version":[{"id":532,"href":"https:\/\/www.omairagonzalez.com\/index.php\/wp-json\/wp\/v2\/pages\/497\/revisions\/532"}],"wp:attachment":[{"href":"https:\/\/www.omairagonzalez.com\/index.php\/wp-json\/wp\/v2\/media?parent=497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}