0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

はじめに

Chandra CIAO 4.17 で combine_spectra を使った際に、以下のエラーが出ました。

# combine_spectra (09 December 2022): ERROR An error occurred while running 'addresp':
# addresp (CIAO 4.17.0): ERROR: Unable to create the ARF file: <output_dir>/<output_prefix>.arf
warning: DATAMODE has different value...Merged...
omit - DEC_NOM values different more than 0.000300
omit - DEC_PNT values different more than 0.000300
warning: DS_IDENT has different value...Merged...
warning: OBS_ID has different value...Merged...

原因

combine_spectra出力先ディレクトリを自動作成しないため、
存在しないディレクトリを指定すると addresp が ARF を作れずに失敗します。

上記に表示されている DATAMODEDEC_NOM などの warning は、
本件の直接の原因ではありません。
関係のない warning も同時に表示されるため、やや紛らわしい点に注意が必要です。

解決策

combine_spectra を呼ぶ に、出力先ディレクトリを作成しておきます。

まとめ

combine_spectra を使う場合、outdir は事前に mkdir しておく必要があります。
本件とは無関係な warning が併せて表示されるため、最初は原因が分かりにくい点に注意が必要です。
本記事が同様のエラーに遭遇した方の参考になれば幸いです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?