投稿

11月, 2017の投稿を表示しています

【python】Card 'BSCALE' is not FITS standard

python2.7 でNobeyama CO Atlas のcubeデータを積分強度図にしてfitsに書き出そうとしたら出てきたエラー。 I found this error message when I wanted to save moment0 map as fits data. error message ---------------------------------------    File "moment_map.py", line 116, in <module>     mom0_im.writeto(obj+'_mom0_CO.fits')   File "/usr/lib64/python2.7/site-packages/astropy/utils/decorators.py", line 493, in wrapper     return function(*args, **kwargs)   File "/usr/lib64/python2.7/site-packages/astropy/io/fits/hdu/hdulist.py", line 855, in writeto     self.verify(option=output_verify)   File "/usr/lib64/python2.7/site-packages/astropy/io/fits/verify.py", line 121, in verify     raise VerifyError('\n' + '\n'.join(messages)) astropy.io.fits.verify.VerifyError: Verification reported errors: HDU 0:     Card 13:         Card 'BSCALE' is not FITS standard (invalid value string: '1.00000000000e+00 /REAL = TAPE * BSCALE + BZERO').     Card 14:

IDLのライセンスの使用状況の確認

lmstat -a これで確認できなかったら、 locate lmstat でlmstatコマンドのフルパスを確認して /usr/local/....(フルパス検索結果).../lmstat -a -aがだいじ。

error: command 'gcc' failed with exit status 1

pip install rebin scipy matplotlib しようとしたときに出てきたエラー。 エラーメッセージ(error message) (うまくいっていた部分のメッセージは省略)   Running setup.py install for subprocess32 ... error     Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-YhEsh4/subprocess32/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-n2wVmC-record/install-record.txt --single-version-externally-managed --compile:     running install     running build     running build_py     creating build     creating build/lib.linux-x86_64-2.7     copying subprocess32.py -> build/lib.linux-x86_64-2.7     running build_ext     building '_posixsubprocess' extension     creating build/temp.linux-x86_64-2.7     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-st

IDLのダウンロード【ネットから】

ネットワーク経由かインストールディスクを使ってインストールする。 ネット経由のインストール方法について。 1. harrisのアカウントを作る(無料) 2. 数日後にアカウント認可&ユーザーネームの連絡が来る 3. ログイン 3. http://www.harrisgeospatial.com/MyAccount/Downloads.aspx  からダウンロード。 (このページを見つけるのにいつも苦労する。) DVDからインストールする方法は こっち から。

Fedora (linux64)にDS9をインストール

ds9ホームページにfedora専用のパッケージがなくていつも焦るのでめも。 http://ds9.si.edu/archive/linux64/ から最新版をダウンロード。 su (root パスワード) cp ds9.linux64.*.*.tar.gz /usr/local/bin cd /usr/local/bin tar zxvf ds9.linux64.*.*.tar.gz おわり。

研究室で野菜たっぷりカップ焼きそばを食べる

身体を気遣っている気になれる、野菜たっぷりカップ焼きそばの作り方。 用意するもの 超大盛りペヤングソース焼きそば(200円) キャベツコーンサラダ(袋入り98円) 研究室に常備しているソースがあるとなお良し。 作り方 かやくと一緒にサラダを突っ込んでお湯を入れて待つ。 後は普通にカップ焼きそばを作って、味が薄かったらソースを追加する。 超大盛りでないと器が小さくて、サラダが入り切らない。