2013/04/11

AstroPy

This morning I found this Python package form a post on the iObserve FB wall.

http://www.astrobetter.com/first-public-release-of-astropy/

NewImage

The current release already contains the following functionality:

Astropy also includes a lot of infrastructure code that makes it very easy for users to develop their own Astronomy packages, using Astropy as a core dependency.

Then I tried to download and install in on my mac. 

The size of the installing file is just about 5Mb only.

After installing it, I did some tests by following its examples from the document.

It's really helpful, and now I do not have to convert all my shell scripts to Python codes.

It saves my lots of time :P

Happy!

 

You should give it a try!

2013/04/04

QLFits - QuickLook generator for FITS files

Its official website:
http://www.softtenebraslux.com/qlfits/

The author of QLFits is the same one writing the 'iObserver', an useful app for astronomers.
The author is an astronomer also :D

QLFits was a commercial app before, but now it is FREE.
I have it installed in my previous SL Mac and it was working quite good.

Now since I am using the ML, I wanna have it in my Mac too.
But the problem is that, the latest version of QLFits was released about three years ago,
I am not sure if it will be compatible with the ML.

I just ran the installer, and there was no error messages poped.
But when I tried to have a quick look on a MIOSOTYS reduced FITS file,
the poped QL window is totally blank...><...

Then after reading its offical webpage, I just realized that:

Make sure to open the QLFits PrefPane once 
in the System Preferences before using QLFits.

and after doing this, it works perfectly :P

 
[NOTE]
I just visited the author's FB (actually, it is iObserve's FB),
and found he just updated the source code of QLFits two days ago.
Now the source code of QLFits is putting on GITHUB.
https://github.com/SoftTenebrasLux/QLFits
 
If you are using ML, and have Xcode & its command line tools installed,
you will have the 'git' command in your system.
Then try to following these steps:
 
1. (in your terminal)
$> git clone git://github.com/SoftTenebrasLux/QLFits.git
You will find the resulting folder after successfully running.
 
2. enter the folder and you will find 'QLFits.xcodeproj',
just click twice on it then wait for the window of Xcode popping up.
Then 'Run' the project, the products should be produced.
 
3. copy "~/Library/Developer/Xcode/DerivedData/QLFits-'ooxxooxx'/Build/Products/Release/QLFits.qlgenerator" to "/Library/QuickLook",
 
4. open the "System Prefrence", you should see its PrefsPane :D
 
5. Now the version is 2.4.0~
 
6. If needed, reset the 'quicklookd'
$> sudo qlmanage -r
 

The error of missing Font Arial for Gnuplot 4.6.2 in ML

Lupin asked me about this error about two months ago.
Then he downloaded some font to replace the AIRAL and solved this error.

Two days ago, Yi-Han asked me the same question.
I jus realize that this error will just happen if your Gnuplot is installed in a ML via MacPorts.



Since I will upgrade to ML very soon, I try to find my own solution.
And here is my way:

insert the lines below to your startup file (.profile or .bashrc):

export GDFONTPATH='/Library/Fonts/Microsoft'
export GNUPLOT_DEFAULT_GDFONT=Arial

To have it work, you will need to have the MS Office for Mac installed in your Mac first,
then you will not need to download any fonts, just use the fonts coming with MS Office.


Actually you will not need to use font Airal alway, just change the setting to the font you'd like.

2009/10/12

HEASOFT & CFITSIO @_@

Orz...
已經有好幾次在更新 HEASOFT 後都忘了修改對應的 CFITSIO 版本...

以下是給自己的 note (以 Heasoft 6.7 為例):

  • cd /usr/lib
  • sudo ln -s /HEASOFT/heasoft-6.7/heacore/i386-apple-darwin9.7.0/lib/libcfitsio_3.181.dylib ./libcfitsio_3.181.dylib
  • sudo ln -s /HEASOFT/heasoft-6.7/ftools/i386-apple-darwin9.7.0/include/cfitsio.h ./cfitsio.h
  • sudo ln -s /HEASOFT/heasoft-6.7/heacore/i386-apple-darwin9.7.0/include/fitsio.h ./fitsio.h
  • gcc xxx.c -o xxx -lm -lcfitsio_3.181


2009/08/29

iPhone 3GS !@#$%^&*()

以下為前一陣子記錄下來的筆記~

種花電信 iPhone 3GS 夠機車方案
(都以 16G 機種來比較購機優惠價+月租費兩年總價)

基本方案:19700+3000+383*24=31892
換算成歐元約是€29*24個月!
預付卡方案:26400
換算成歐元約是€24*24個月!

種花電信的 iPhone 3GS 的 16G / 32G 差價是 $3500 NTD
法國橘子的 iPhone 3GS 的 16G / 32G 差價是 €80 (~ $3800 NTD)
若從台灣帶去法國,法國橘子有每月25歐元專案~
但那是加在預付卡或門號上!

結論:還是在法國當地直接申辦愛瘋!
只是法國橘子有五種方案~天押!
到時候真要辦時再來煩惱吧!


2009/07/29

Useful "Total Commander"-like X11 apps...

裝這種程式要幹嘛?
阿就是有時候會有需要嘛~
所以來做個筆記!

隨便用相關字詞去孤狗一下,
我選了這網頁,並用了 Fink Commander交叉比對,
我發現有三套程式可以安裝來玩:
Krusader, Midnight Commander(mc) and Worker!


首先我安裝了mc,其實它是一套很資深軟體囉!
它的好處是執行後就會在你的終端機畫面上操作!
方便又快速!亦可利用滑鼠來控制!很不錯!

而 Worker 利用 Fink 來安裝其實也頗簡單!
特別是相較 Krusader 的冗長安裝時間~
(因要安裝其他KDE套件)
執行後會另外彈出其視窗,使用介面清楚!

至於 Krusader...
它的安裝時間實在是太久了~
所以今晚不想理它了~
有空再補上!


2009/06/15

Deux nuits en une image


Coooool!!
我看得懂這標題耶!哈~
前天被「終極殺陣三」殺掉的,
我那小小的想學好法文的心情似乎又回來囉!

這張圖片是來自 OHP 的網站。
剛剛瀏覽了一下才「發現」原來那鍋「p」就是普羅旺斯啦!
我真是太遜囉~不過請不要問我「h」是啥~哈!

今天下午是阿尼跟仕豪的碩士口試~
他們都順利通過了~真是恭喜呀!
接下來還有吳小翰、阿寬跟Soccer的口試!
大家一定都可以順利畢業啦!

以上真的真的是灌水~
部分內容還灌到楓橋去~哈哈!就醬子啦!