Friday, August 4, 2017

Install pip and virtualenv for Ubuntu 10.10 Maverick and newer

Install pip and virtualenv for Ubuntu 10.10 Maverick and newer

$ sudo apt-get install python-pip python-dev build-essential
$ sudo pip install --upgrade pip
$ sudo pip install --upgrade virtualenv

Scipy package
Installing via pip
Mac and Linux users can install pre-built binary packages for the SciPy stack using pip. Pip can install pre-built binary packages in the wheel package format.

Note that you need to have Python and pip already installed on your system.

pip does not work well for Windows because the standard pip package index site, PyPI, does not yet have Windows wheels for some packages, such as SciPy.

To install via pip on Mac or Linux, first upgrade pip to the latest version:

python -m pip install --upgrade pip
Then install the SciPy stack packages with pip. We recommend a user install, using the --user flag to pip (note: don’t use sudo pip, that will give problems). This installs packages for your local user, and does not need extra permissions to write to the system directories:

pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
For user installs, make sure your user install executable directory is on your PATH. Here are example commands for setting the user PATH:

Linux:

# Consider adding this at the end of your ~/.bashrc file
export PATH="$PATH:/home/your_user/.local/bin"

Monday, November 28, 2016

unlock WD Passport on Linux Ubuntu 16.04

This link contains software to unlock and manage WD passport external hard disk.

GitHub - 0-duke/wdpassport-utils: WD Passport Ultra Linux Utilities

mounting EXFAT for Ubuntu 16.04

How to Mount EXFAT partition on Ubuntu 16.04 LTS

To mount exfat partition on Ubuntu, simply install the necessary packages:
$ sudo apt-get install exfat-fuse exfat-utils

If you need to mount it from the command line, you could do
$ sudo mkdir /media/exfat (or specific path)
$ sudo mount -t exfat /dev/sdxx /media/exfat
where /dev/sdxx could be /dev/sda1 or /dev/sda2, or so on.

If you are not sure whether the exfat partition you are looking for is /dev/sda1 or /dev/sda2, then you could also run
$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
This should do it!

Credit from http://unixnme.blogspot.com.au/2016/04/how-to-mount-exfat-partition-in-ubuntu.html. Thanks :D

Tuesday, June 23, 2015

Ureka installation and using IRAF

วันนี้พบว่า ลงแบบ stand alone ยังมีเว็ทค่าผิดพลาด จึงตัดสินใจ ลงด้วย Ureka ดังนี้

Quick Installation

  1. Download the installer for the current version of Ureka to the desired install location (right-click and Save Link As...):
    http://ssb.stsci.edu/ureka/1.5.1/install_ureka_1.5.1
    -OR-
    copy/paste one of these commands into a terminal window to download the installer:
    wget http://ssb.stsci.edu/ureka/1.5.1/install_ureka_1.5.1
    
    curl -O http://ssb.stsci.edu/ureka/1.5.1/install_ureka_1.5.1
    
    (Both commands do the same thing. It is often the case that Linux has wget and Macintosh has curl)
  2. Run the installer:
    sh ./install_ureka_1.5.1
    
  3. The installer will ask you to enter an installation name and will ask for permission to edit your login scripts.
     
หลังจากนั้นรัน ur_setup ก่อน โดยเปิดใน terminal ใหม่ เมื่อเซ็ทหรือปรับค่าเสร็จแล้ว ทำการตรวจสอบระบบโดยพิมพ์คำว่า
ur_test
The ur_test script will run a series of tests, and provide a summary of how many tests passed and failed.
If there were failures, a more detailed log will be produced.
Here is an example of output from a ur_test run in which one error and one failure occurred.
Your operating system supports 32-bit executables.
Running tests... pass=77 fail=0 error=0
 ถ้าเป็นแบบนี้แสดงว่าลงระบบผ่านทั้งหมด ทั้งนี้จะติดตั้งเร็วหรือช้าขึ้นอยู่กับอินเตอร์เน็ตของเราว่าดีขนาดไหนนะค่ะ เวลาจะเรียกใช้ IRAF ให้สั่ง mkiraf เพื่อตั้งค่า เลือก xgterm หรือ xterm เพราะ IRAF ทำงานได้ดีใน terminal ประเภทพวกนี้ (คือสร้างสคริปต์ไฟล์ login.cl ขึ้นมาให้เรียกใช้งาน) จากนั้นพิมพ์ในเทอร์มินัล นั้น ๆ ว่า .......cl......ก็เป็นอันว่าใช้งานได้แล้วค่ะ

Monday, June 22, 2015

การติดตั้ง IRAF บนลีนุกซ์ อีกครั้ง....(IRAF installation for Linux machine again&again)

package IRAF ที่ใช้ติดตั้งบนลีนุกซ์ได้ สามารถหาหรือ download ได้จาก 3 รูปแบบดังนี้

1) Scisoft  (http://www.eso.org/sci/software/scisoft/) เป็นชุดเครื่องมือใช้สำหรับการสังเกตการณ์ของ European Southern Observatory (ESO) หนึ่งใน packages ที่ใช้งานก็คือ IRAF  ซึ่งจะต้องติดตั้ง Scisoft ให้เสร็จก่อน .....เวอร์ชั่นปัจจุบันของ scisoft คือ  Scisoft8.0 (Dec. 2014; work on fedora core 20)  ถ้าต้องการไฟล์ ต้องติดต่อเจ้าหน้าที่เพื่อดาวน์โหลดโดยเฉพาะ.... เพราะฉะนั้น version 7.7 จึงเหมาะสำหรับการใช้งานในปัจจุบัน สามารถโหลดได้จากเว็บ FTP   ftp://ftp.eso.org/scisoft/scisoft7.7/linux/fedora11/
ขั้นตอนการติดตั้งมี 2 แบบหลัก ๆ คือจะใช้ Yum หรือ rpm ก็ได้ .....เนื่องจาก Scisoft ถูกออกแบบมาใช้สำหรับ Fedora linux เท่านั้น หากใครใช้ Ubuntu ต้องเข้าไปอ่านวิธีการติดตั้งจากกระทู้ก่อนหน้านี้ แต่ถ้าใช้ centos หรือ suse ก็แนะนำว่าติดตั้งแบบ rpm จะดีที่สุด 
ขั้นตอนที่แปะนี้ สำหรับติดตั้งแบบ yum และ rpm เท่านั้น


Method #1 Installing from the online yum repository
---------------------------------------------------

Pros:

        *  your Scisoft installation can automatically be kept
           aligned with the latest available bugfixes for this Scisoft
           release
        
        *  you can install all of Scisoft or only the parts you
           want

Cons:

        *  requires Fedora Core 20

Procedure:

        1) If you have a previous installation of Scisoft then back 
           it up and remove it using a method appropriate to it was
           installed (e.g. if you used 'yum' to install it now use
           'yum' to remove it).

        2) As root create /etc/yum.repos.d/scisoft.repo containing:

           [scisoft]
           name=Scisoft
           baseurl=ftp://ftp.eso.org/scisoft/scisoft8/linux/fedora/20/x86_64
           gpgcheck=0
           enabled=1

        3) As root run:

           yum clean all
           yum install scisoft8-\*

           and when prompted, check the list of packages about to
           be installed looks sensible, and then allow yum to start
           installing the packages by pressing 'y'.

Method #2 Installing from RPMs 
------------------------------

Pros:

        *  you can install all of Scisoft or only the parts you
           want

Cons:

        *  requires Fedora Core 20, or that some dependencies are
           overridden using rpm's '--nodeps' option

Procedure:

        1) Download all RPMs at
           ftp://ftp.eso.org/scisoft/scisoft8/linux/fedora/20/x86_64/,
           or copy them from the Scisoft DVD
           and save them to a directory, which we will call
           <scisoft-save-dir>.

        2) If you have a previous installation of Scisoft then back 
           it up and remove it using a method appropriate to it was
           installed (e.g. if you used 'yum' to install it now use
           'yum' to remove it).

        3) As root, run:

           rpm -ihv <scisoft-save-dir>/*.rpm

----------------------------------------------------------------------------
2) Ureka  เป็นที่ ๆ รวบรวมซอฟแวร์ทางด้านดาราศาสตร์ท้ศนศาสตร์ เวอร์ชั่นปัจจุบัน น่าจะเป็น 1.5.1 ถ้าต้องการติดตั้งซอฟแวร์นี้ จะใช้เซิร์ฟเวอร์ปลายทางในการแตกไฟล์และติดตั้งบนเครื่องคอมพ์ที่อยู่ต้นทาง เพราะฉะนั้นอาจใช้เวลานานพอสมควร  ขั้นตอนการติดตั้งตามด้านล่างนี้

To install Ureka on a Mac or Linux:

  • Choose an installation directory and download this installer (right-click on the link and select Save Link As...) to that location.
  • Run the installer by typing 
    sh install_ureka_1.5.1
  • The installer will ask for permission to edit your login scripts. If you have more than one Ureka installation, the installer will also ask you to provide an installation name.
  • If this is your first time installing Ureka, you will need to start a new terminal window for the changes to your login scripts to take effect.
  • To select the Ureka environment, type
    ur_setup
-------------------------------------------------------------------------------
*ถ้าไม่ได้ใช้อะไร ผู้เขียนแนะนำให้ลงแบบ ubuntu หรือ stand alone ไปเลย ง่ายที่สุด 
3) IRAF เพียว ๆ    ให้เลือก IRAF ให้ตรงกับเวอร์ชั่นลีนุกซ์ที่ท่านใช้งาน 32-bit หรือ 64-bit ก็ได้  ขั้นตอนติดตั้งประมาณนี้ 
ต้องเป็น ROOT ก่อน จึงจะติดตั้งได้
>mkdir /iraf
>mkdir /iraf/iraf
>mv iraf.lnux.x86.tar.gz /iraf/iraf/.
>cd /iraf/iraf
>tar -zxf iraf.lnux.x86.tar.gz
>rm iraf.lnux.x86.tar.gz
>./install

[[Keep hitting Enter for all prompts]] ติดตั้ง X11 สำหรับ IRAF 

>mkdir /iraf/x11iraf
>cd /iraf/x11iraf
>wget http://iraf.noao.edu/iraf/ftp/iraf/x11iraf/x11iraf-v2.0BETA-bin.linux.tar.gz
>tar -zxf x11iraf-v2.0BETA-bin.linux.tar.gz
>rm x11iraf-v2.0BETA-bin.linux.tar.gz
>./install

[[Keep hitting Enter for all prompts]] ติดตั้งโปรแกรมดูรูปภาพ DS9

>wget http://ds9.si.edu/archive/linux/ds9.linux.7.2.tar.gz  (เวอร์ชั่นอาจใหม่กว่านี้)
>tar -zxf ds9.linux.7.2.tar.gz
>rm ds9.linux.7.2.tar.gz
>mv ds9 /usr/local/bin/.
>cd
>wget http://www.astronomy.ohio-state.edu/~khan/iraf/iraf
>chmod u=rwx iraf
>mkdir IRAF
>cd IRAF
>mkiraf

[[Select "xgterm" as your IRAF shell when prompted]]

exit

----------------------------------------------------------------------------------------------
@^___^@ good luck everyone


Friday, April 3, 2015

howto set the script for using STARLINK package

1. download the current version of STARLINK package
2. extract all files to somewhere on your computer

3. type these commands on your terminal
export STARLINK_DIR=/home/MyUserName/star-2014A
source $STARLINK_DIR/etc/profile



Thursday, March 5, 2015

>login for using STARLINK packages

>login for  using STARLINK packages

bash
source /star-2014A/etc/profile

Tuesday, February 3, 2015

installation IRAF package for Linux 64bit

Now, I am using Linux 64bit and trying to use IRAF package as a beginner. Here are those installation method which could work properly.
Thanks information from the website and Ohio-state.edu. 
 
**Notethat: run bash shell before using IRAF .....after you have created LOGIN.CL script
the command to start is.....cl or ecl ....in terminal...it should work properly. 
 
 Credit http://www.astronomy.ohio-state.edu/~khan/iraf/iraf_step_by_step_installation_64bit
 ---------------------------------------------------------------------------------
 
= IRAF Setup on Ubuntu/Debian Linux =

This page describes how to setup IRAF on a 64-bit Ubuntu/Debian machine.
Installation of X11IRAF, DS9 and key packages are also included. 

It will be easiest if you just copy-paste the instructions one by one except 
for the parts in [[ ]].

For 32-bit installation, see -
http://www.astronomy.ohio-state.edu/~khan/iraf/iraf_step_by_step_installation

An excellent and easy alternative installation option is provided by the Ureka project -
http://ssb.stsci.edu/ureka/

- Rubab Khan
khan@astronomy.ohio-state.edu

---------------------------------------------------------------------------------------

sudo apt-get install tcsh libxss1 lib32z1 lib32ncurses5 lib32bz2-1.0 libXmu6:i386

wget ftp://iraf.noao.edu/iraf/v216/PCIX/iraf.lnux.x86_64.tar.gz

[[If the prompt does not return after 100% then hit ctrl+c and proceed]]

sudo mkdir /iraf

sudo mkdir /iraf/iraf

sudo mv iraf.lnux.x86_64.tar.gz /iraf/iraf/.

cd /iraf/iraf

sudo tar -zxf iraf.lnux.x86_64.tar.gz

sudo rm iraf.lnux.x86_64.tar.gz

sudo ./install

[[Keep hitting Enter for all prompts]]

sudo mkdir /iraf/x11iraf

cd /iraf/x11iraf

sudo wget http://iraf.noao.edu/iraf/ftp/iraf/x11iraf/x11iraf-v2.0BETA-bin.linux.tar.gz

sudo tar -zxf x11iraf-v2.0BETA-bin.linux.tar.gz

sudo rm x11iraf-v2.0BETA-bin.linux.tar.gz

sudo ./install

[[Keep hitting Enter for all prompts]]

sudo wget http://ds9.si.edu/archive/linux64/ds9.linux64.7.2.tar.gz

sudo tar -zxf ds9.linux64.7.2.tar.gz

sudo rm ds9.linux64.7.2.tar.gz

sudo mv ds9 /usr/local/bin/.

cd

wget http://www.astronomy.ohio-state.edu/~khan/iraf/iraf

sudo chmod u=rwx iraf

mkdir IRAF

cd IRAF

mkiraf

[[Select "xgterm" as your IRAF shell when prompted]]

exit

----------------------------------------------------------------------------------------------

The command ./iraf from home directory will now launch a complete IRAF session containing DS9,
xgterm and ecl, based in the IRAF direcory. Alternately, start "xgterm' (typing xgterm), 
cd into the directory where you did "mkiraf", type "ecl" for enhanced IRAF or 
"cl" for VO IRAF, and "ds9" for standalone DS9 launch. 

The following steps show how to add external packages. If you don't need extra packages, 
then you are done already.

----------------------------------------------------------------------------------------------

cd /iraf/iraf/extern

sudo ./configure

[[The next two lines will take some time to complete, even with fast internet. Be patient.]]

sudo make adccdrom ctio cfh12k esowfi mscdb mscred stsdas nfextern optic

sudo make deitab euv mem0 mtools rvsao song sqiid stecf ucsclris upsqiid xdimsum

exit

----------------------------------------------------------------------------------------------

Next time you start IRAF, the available packages will be listed.

= END =

Saturday, August 9, 2014

how to run GFORTRAN on private machine

ทุกครั้งที่ใช้งานบน machine อื่น ให้ทำการ re-compile ก่อนทุกครั้งเสมอ
**ที่สำคัญมี gfortran และหลังจากรันเสร็จแล้วให้เอาไฟล์ใหม่จากรันไปไว้ในโฟลเดอร์ดาต้าด้วย

[aips@localhost happy]$ make -f makehappy
make: `happy' is up to date.
[aips@localhost happy]$ rm *.o
[aips@localhost happy]$ !mak
make -f makehappy
gfortran -c -g -o happy.o happy.f
gfortran -c -g -o filesearch.o filesearch.f
gfortran -c -g -o stringlength.o stringlength.f
gfortran -c -g -o new_paramfile.o new_paramfile.f
gfortran -c -g -o open_intell.o open_intell.f
gfortran -c -g -o message.o message.f
gfortran -c -g -o banner.o banner.f
gfortran -c -g -o grunge.o grunge.f
gfortran -c -g -o filelength.o filelength.f
gfortran -c -g -o write_stuff.o write_stuff.f
gfortran -c -g -o numberize.o numberize.f
gfortran -c -g -o stonum.o stonum.f
gfortran -c -g -o filter.o filter.f
gfortran -c -g -o polarise.o polarise.f
gfortran -c -g -o error_calc.o error_calc.f
gfortran -c -g -o brightness.o brightness.f
gfortran -o happy happy.o filesearch.o stringlength.o new_paramfile.o open_intell.o message.o banner.o grunge.o filelength.o write_stuff.o numberize.o stonum.o filter.o polarise.o error_calc.o brightness.o

หลังจากนี้รันด้วยคำสั่ง ./happy

Sunday, May 25, 2014

How to mount NTFS fileson Centos 6.5

Today, I am trying to mount NTFS files for the Centos 6.5 system and here is the useful tool for those  who are newbies...
---------------------------------------------------------------
P.S. credit ....http://www.tuxera.com/community/ntfs-3g-download/

1)

Download

The latest stable version is ntfs-3g_ntfsprogs-2014.2.15, released on February 23, 2014.

2) 

Installation

Linux: Most distributions include and use NTFS-3G by default. Please use that one unless it’s an old version. If you wish to install NTFS-3G from the source code then make sure you have installed the basic development tools (gcc compiler, libc-dev libraries). Then type:
./configure
make
make install # or 'sudo make install' if you aren't root

Non-Linux: Please see the OS specific installation and source packages above.

3)

Usage

If there was no error during installation then the NTFS volume can be mounted in read-write mode for everybody as follows. Unmount the volume if it had already been mounted, replace /dev/sda1 and /mnt/windows, if needed.
mount -t ntfs-3g /dev/sda1 /mnt/windows
Please see the NTFS-3G Manual for more options and examples.
You can also make NTFS to be mounted during boot by adding the following line to the end of the /etc/fstab file:
/dev/sda1 /mnt/windows ntfs-3g defaults 0 0

Saturday, May 24, 2014

AIPS troubleshooting with Xterm (Centos ver.6)

I am using Centos 6.0 and just updated all the system and trying to install AIPS. I found the problem ..... /home/aips/31DEC14/SYSTEM/UNIX/XASERVERS &.....xterm command not found......

It means you have to install XTERM for  your operating system and then AIPS will work normally.


Tuesday, January 21, 2014

Ubuntu 13.10 with no effect graphic and Linux command so on

Task: Change Password For Other User Account You must login as root user, type the following command to change password for user vivek: # passwd vivek

 Install gnome-session-fallback and consider disabling the visual effects
sudo apt-get install gnome-session-fallback

Friday, December 6, 2013

Miktex 2.9+ Thai font (Sarabun PSK)+ ไม่ตัดคำ

1. เตรียมความพร้อมของระบบ
สิ่งที่จะต้องเตรียมพร้อม
     1. ระบบปฏิบัติการ Windows 98se/NT/Vista/7 (32bit และ 64bit)
     2.  MiKTeX รุ่น 2.9 ซึ่งจะต้องมี packet “XeLaTeX” หรือ “XeTeX”
           MiKTeX :: http://miktex.org/
     3. TeXstudio 2.4 ขึ้นไป
          http://sourceforge.net/projects/texstudio/files/texstudio/
     4. ชุดตัวอักษรไทย (Font)
          13 อักษรแห่งชาติ :: http://www.f0nt.com/release/13-free-fonts-from-sipa/

2. เมื่อได้แพ็กเกจตามต้องการ ติดตั้งทั้งหมดลงในคอมพิวเตอร์ ให้เลือก Miktex แบบ complete
3. ปรับแต่ง TeXstudio
      1. เปิดโปรแกรม TeXstudio จากนั้นไปที่ Option > Configure TeXstudio…
      2. จากนั้นเลือกหัวข้อ Commands ให้สังเกตที่ XeLaTeX หากไม่มีข้อความปรากฏให้ใส่
xelatex.exe -synctex=1 -interaction=nonstopmode %.tex
      3. เลือกหัวข้อ Build ใน Meta Commands เลือก Build & View เป็น Complie & View และ
เลือก Default Complier เป็น XeLaTeX
      4. ทดสอบภาษาไทย ดัง code ต่อไปนี้

% ------ Test MikTeX 2.9 + ฟอนต์ TH SarabunPSK
\documentclass[11pt,a4paper]{article}
\usepackage{xltxtra}
\XeTeXlinebreaklocale "th"
\XeTeXlinebreakskip = 0pt plus 1pt %
\setmainfont{TH SarabunPSK}
\title{ครม.สั่งหน่วยงานราชการ ใช้ 13 ฟอนต์ไทย }
\author{ใครก็ไม่รู้}
\begin{document}
\maketitle
\section{ครม.เห็นชอบให้ทุกส่วนราชการโละฟอนต์ต่างชาติ บังคับใช้ 13 ฟอนต์ไทยในงานราชการ
ระบุป้องกันละเมิดลิขสิทธิ์}
นายวัชระ กรรณิการ์ รองโฆษกประจำสำนักนายกรัฐมนตรี เปิดเผยว่า ที่ประชุม ครม.เห็นชอบให้หน่วย
งานภาครัฐทุกหน่วยดำเนินการติดตั้งฟอนต์สารบรรณและฟอนต์ อื่น ๆ ทั้งหมด จำนวน 13 ฟอนต์ ของ
สำนักงานส่งเสริมอุตสาหกรรมซอฟต์แวร์แห่งชาติ (สอซช.) หรือ SIPA และกรมทรัพย์สินทางปัญญา
เพิ่มเข้าไปในระบบปฏิบัติการ Thai OS (Thai Operating System) และใช้ฟอนต์ดังกล่าวแทน
ฟอนต์เดิม ตามที่กระทรวงเทคโนโลยีสารสนเทศและการสื่อสารเสนอ โดยให้ติดตั้งและใช้งานให้แล้วเสร็จ
ก่อนวันที่ 5 ธันวาคม 2553
ทั้งนี้ สืบเนื่องจาก ปัจจุบันส่วนราชการจำนวนมากมีการใช้ฟอนต์ที่หลากหลาย ไม่มีมาตรฐานในเอกสาร
ทางราชการ อีกทั้งยังมีหน่วยงานราชการหลายแห่งใช้มาตรฐานฟอนต์ของบริษัทเอกชนที่ผูกขาด ลิขสิทธิ์
เช่น Angsana อาจมีปัญหาเรื่องการฟ้องร้องละเมิดลิขสิทธิ์ได้ด้วยเหตุดังกล่าว จึงได้มีการพัฒนาและมี
การประกวดแข่งขันฟอนต์ ซึ่งเป็นการส่งเสริมให้เกิดการใช้ Open Source Software ที่เป็นซอฟต์แวร์
เสรีให้ส่วนราชการไทยประกาศมาตรฐานเอกสารดิจิตัลและรูปแบบ ของฟอนต์ที่ไม่ขึ้นกับระบบปฏิบัติการ
และลิขสิทธิ์ของบริษัทใด ๆ เพื่อความภาคภูมิใจในความเป็นชาติและเอกลักษณ์ของความเป็นชาติไทย
ซึ่งในขณะนี้มีฟอนต์ที่ส่วนราชการไทยสามารถเป็นเจ้าของและพร้อม
แจกจ่ายให้ กับผู้ประสงค์จะใช้งานรวม 13 ฟอนต์ ดังนี้
\end{document}
--------------------------------------------------------------------------------

These information modified from นายดรัสวิน วงศ์ปรเมษฐ์
สาขาคอมพิวเตอร์และเทคโนโลยีสารสนเทศ คณะวิทยาศาสตร์
มหาวิทยาลัยราชภัฏบุรีรัมย์. Thanks for the useful knowledge :D

Wednesday, November 27, 2013

Adding Disks in AIPS

Adding Disks in AIPS

 

In order to add disks to your AIPS system, you have to change a few things

- Create new folders for the disks in your $AIPS_ROOT/DATA drive.  Folders should be of the format HOSTNAME_#.  Use the same syntax as folders that currently exist.

- You need to copy the file SPACE from one of your existing data areas to all of the new ones you create. 

- Enter the new disk area into the two files DADEVS.LIST and NETSP.  Follow the syntax of other entries in the files.  Also, each file has instructions included within. 

And that's it.  Now when you run aips and type indisk you will see all of the new data areas that you've created.

--------------------------------------------
This information copied from http://brandeisastro.pbworks.com/w/page/14977086/AIPS%20Management.

Tuesday, September 24, 2013

a low cost Pulsar Machine (by James VanProoyen, N8PQK)

A pulsar machine (or pulsar detection system) is used at many of the large radio
observatories around the world. Some of these pulsar machines are well known for the
work that has been done such as the Penn State Pulsar Machine at Arecibo. Others are
just coming on line, such as PuMa, located in the Netherlands. This paper presents a low
cost Pulsar Machine for use at smaller observatories just entering the field of pulsar
research.
·         Why Study Pulsars?
Why would any one want to study pulsars? They are for the most part very distant objects
that can be seen only with large telescopes (radio or optical). What effect could these
possibly have on us? Questions I am often asked. A pulsar, for it’s size, around 10 to 20
km in diameter (6 to 12 miles) is one of the most energetic objects in the universe. It is
literally a physics laboratory in space. Reference 1 has additional information pulsars.
Now let’s apply this to one of our most pressing problems today - clean, efficient, low
cost energy. The study of these objects could lead us to a much more efficient source of
power. Maybe a tiny pulsar in a shoe box that can power you car and never needs
refueling that is so strong that, when your car wears out, you just unplug it and put it in
you new car. Speculation? Yes it is, but we will never find these new sources unless we
look, and I believe that pulsars may be the right place to look.
·         What is a Pulsar Machine?
A radio telescope has several parts. The antenna, which collects the signal, a low noise
amplifier (LNA) that amplifies the signal, the receiver (or converter) that converts the
signal to a lower (or intermediate frequency), and finally, the backend which converts
the intermediate frequency to some type of audio signal. A pulsar machine (or pulsar
backend) is an additional piece of equipment that attaches to the radio telescope and
provides additional processing to allow the detection of pulsars. A pulsar machine may
generally be defined as hardware and/or software that allows the detection of pulsars.
·         Past Pulsar Machines
Pulsar machines have been developed at Pennsylvania Statue University as well as
Berkeley Caltech for almost 30 years. They are deployed at the major observatories
around the world. Reference 3 has additional information on some of early pulsar
machines.
·         Current Pulsar Machines
 One of newest is the PuMa Westerbrok Synthesis Radio Telescope in the Netherlands.
 There are also major Pulsar Machine at Green Bank and Arecibo.  Pulsar Machines for the Amateur Radio Astronomer:
 There have been several efforts by amateur radio astronomers to build such machines.
For some of us, the detection of pulsars is the “Quest for the Holy Grail” of amateur radio
astronomy. There are a number of notable efforts:
- James C. Carroll (A Post Detector Pulsar Extractor – SARA Paper)
 - Robert M. Sickels (Pulse Catcher – SARA Paper)
 Current Amateur Radio Astronomy Pulsars efforts (including the author):
- P. Ibelings and M. Wheatley at the PARI Observatory.
- Jim Van Prooyen and Rich Nagel at the Grand Rapids Radio Observatory.
·         The low cost Pulsar Machine
The design of the pulsar machine involved a number of design trade-offs to arrive at a
system that was low cost and usable with a small radio telescope. The parameters that
were studied in the design included:
- Observation frequency
- Analog vs. Digital electronics
- Band width
- Dispersion issues
- Algorithms for processing the data
- Filter design
- Search methods
- Low Cost Processing Technologies
·         Observation Frequency
The selection of an observation frequency presents a unique set of problems for the
amateur radio astronomers. The issues include:
1. More signal to work with at the lower frequencies.
2. Less distortion of the signal at higher frequencies.
3. Equipment costs are less at the lower frequencies.
4. Much more gain for a given size dish antenna at higher frequencies.
There is no one good choice, pulsars have been observed at frequencies from a few
megahertz to the high gigahertz.
·         Analog vs. Digital
 The first pulsar machines had a large number of analog signal processing elements.
 Today most of this is done using digital technology. In general a digital system will have
 a lower cost of acquisition then analog systems.
·         Wide Band vs. Narrow Band
 Many pulsar machines use wide bands, and it makes sense from a systems view. The
more signal you can put into the system, the greater the sensitivity. Some are as wide as
100 MHz. But there are problems here, such as how you are going to digitize a wide
signal band and keep the cost under control. The other problem is interference from other
sources, when you are not observing in a radio quite zone. We use a narrow band
approach to the problem. This allows us to keep the cost very low and it keeps out the local radio and TV stations. However, this has a cost in that it we need to observe for a
long period of time before we see a detection. Generally, one hour of observation is used
to make sure we have the data needed for a detection.
·         The Dispersion Issue
The narrow band approach means that dispersion is not an issue. We use a bandwidth
of 75 kHz. We are currently studying bandwidths of only 30 kHz for the next generation
receiver. This receiver front end will be build by Radio Astronomy Supplies some time in
the winter of 2008/2009.
·         Fast Folding Algorithm (FFA)
This is a computer algorithm that is the heart of the system. It allows for the detection of
periodic events within time series data. The algorithm was developed by David H. Staelin
in 1969. References 4 and 5 have additional information on the development of the FFA.
·         Filter Design
The pulsar machine has a filter that processes data after the FFA. The filter is unique to
this pulsar engine. It is called a Jakeway filter, named to honor Jarry Jakeway, who was
my mentor during its design in 2002/2003. This is an efficient recursive filter for use with
noisy data sets.
·         Search Methods
 The pulsar machine supports two search methods, targeted and non-targeted. The
 targeted search has been fully developed and is optional. The non-targeted processing of
 the pulsar machine will be the subject of future papers. It will use a Parameter Space
 Search Algorithm (PSSA) that is still under development. This version of the Pulsar
 engine will require the use of advanced computer technologies that are now available,
 such as Beowulf, GPU’s, and other Parallel Processor technologies.
·         Deployment of the Pulsar Engine
 One of the major issues has been how to deploy the Pulsar Engine (i.e. put it in to use by
other members of SARA). Due to the fact that it is still under almost continuous
development and the regulations on use of such technology (ITAR), we have arrived at
the following model for it use:
- Members of SARA may send observations to an FTP server for processing by the
Pulsar Engine. Data sent to the FTP server must be in one of the supported data
formats. There will be more information on this in the SARA Journal some time
this Fall.
- Processing produces histograms, using of MS Excel or JPG files and will be
posted to the FTP server for downloading. This processing may take anywhere from
24 to 48 hours for turnaround.  The following is a example of the output from the Pulsar Engine:
Summary of the observation histogram of pulsar B0031-07 pictured above:
This is a pulsar with a period of 0.9429509945998 seconds. This pulsar has three modes
of drifting sub pulses. This can be seen between index 95, and 103, (on the x-axis) and
again between 161, and 172. It also produces giant pulses approximately once in 800
periods (~ 754.3608 seconds). Due to the folding of the data over an observation period
of 3600 seconds there should be several giant pulses visible in the plot, this is supported
by the data at index 118 and 183 (on the x-axis).
·         Conclusion
The study of pulsars is fascinating and do-able for the amateur astronomer. And, being
incredible energy-producers for their size, they may have implications for energy
production on our own planet in the future. In this paper, the reader has been brought upto-date with current work and given a glimpse of the future in the study of Pulsars. If
you have a radio telescope and would like to be part of the project please send an e-mail

to me at grro1@dnx.net.

Monday, September 23, 2013

Spin-flip Transition (21 cm - 1420 MHz of HI neutral hydrogen)

Spin-flip Transition

สสารระหว่างดาวที่เป็นแก๊สเย็นไม่แผ่รังสีออกมาที่ความยาวคลื่นที่ตามองเห็น แต่อย่างไรก็ตามในปี 1944 นักดาราศาสตร์ชาวฮอลแลนด์ ได้ทำนายว่าไฮโดรเจนที่เป็นกลางสามารถตรวจจับการทรานซิชั่นประเภทนี้ได้ รู้จักกันในนาม spin-flip transition ที่ความยาวคลื่นวิทยุ  ผลการทดลองถูกยืนยันอีกครั้งในปี 1951 เพราะว่าในสมัยอดีตอุปกรณ์ในสมัยนั้นยังไม่มีความไวต่อสัญญาณเพียงพอ นักดาราศาสตร์วิทยุพบว่า spin-flip transition มีประโยชน์ในการทำแผนที่โครงสร้างดาราจักร ไปจนกระทั่งถึงการสร้างภาพจากการกำทอนแม่เหล็ก
เพื่อทำความเข้าใจว่ามันทำงานอย่างไรในงานดาราศาสตร์ เพื่อให้ง่ายที่สุดให้จินตนาการว่า โปรตอนและอิเล็กตรอนในอะตอมไฮโดรเจนเป็นลูกทรงกลมมีประจุหมุนรอบแกนของมันเอง อะตอมของไฮโดรเจนอยู่ในสถานะพลังงานต่ำสุดซึ่งมีโปรตอนและอิเล็กตรอนหมุนในทิศทางตรงกันข้าม (anti-parallel) อย่างไรก็ตาม มันอาจเป็นไปได้ว่ามีอะตอมตัวอื่นมาชนกับอิเล็กตรอน สำหรับอะตอมของไฮโดรเจนแล้วต้องการเพียงพลังงานเล็กน้อยก็ทำให้สปินของอิเล็กตรอนเปลี่ยนทิศทางได้ (นั่นคืออาจจะ Parallel หรือ anti-parallel ได้)

อิเล็กตรอนเมื่ออยู่ในสถานะถูกกระตุ้นจะสปินในทิศทางเดียวกันกับโปรตอน (ดังรูปซ้ายมือ) เมื่อเวลาผ่านไป (ประมาณ 10 ล้านปี) อิเล็กตรอนจะพลิกกลับมาเพื่ออยู่ที่ระดับชั้นพลังงานต่ำสุด ขณะเดียวกันก็จะปลดปล่อยพลังงานออกมา ที่ความยาวคลื่นเท่ากับ 21 ซม. หรือ 1420 MHz (รูปขวามือ)
เมื่อสปินมีทิศทางเดียวกัน ไฮโดรเจนอะตอมจะอยู่ในชั้นสถานะถูกกระตุ้นหรือ excited state และถ้าทิ้งไว้เป็นระยะเวลายาวนาน (ประมาณหลายล้านปี) อิเล็กตรอนไม่เสถียรจึงต้องพลิกกลับไปยังสถานะพลังงานชั้นต่ำสุด พลังงานที่ปลดปล่อยออกมาคือโฟตอนมีค่าเท่ากับพลังงานที่แตกต่างกันระหว่างการสปิน ของอิเล็กตรอนและโปรตอน ซึ่งนำไปสู่การปลดปล่อยรังสีที่ความยาวคลื่น 21 ซม. แต่อย่างไรก็ตามโอกาสในการตรวจจับแก๊สไฮโดรเจนเย็นด้วยกลไกแบบนี้ค่อนข้างเกิดขึ้นได้ยากมาก เพราะการชนกันแล้วทำให้สปินของอิเล็กตรอนกับโปรตอนอยู่ในทิศทางขนานกันเลยทีเดียวค่อนข้างเป็นไปได้น้อยในสภาพแวดล้อมของสสารระหว่างดาวที่มีความหนาแน่นค่อนข้างต่ำ เราอาจต้องรอไปหลาย ๆ ปีจนกระทั่งอิเล็กตรอนสามารถพลิกสปินกลับมายังชั้นพลังงานที่ต่ำกว่า ซึ่งฟังแล้วเหตุการณ์เหล่านี้เป็นไปได้ยากมาก แต่อย่างไรก็ตามในสสารระหว่างดาว มีไฮโดรเจนที่เป็นกลางอยู่จำนวนมหาศาลเพราะฉะนั้นโอกาสที่จะพบไฮโดรเจนที่อยู่ในสถานะถูกกระตุ้นก็มีความเป็นได้ การทรานซิชั่นประเภทนี้สามารถบอกถึงการกระจายของไฮโดรเจนที่เป็นกลางในเอกภพของเราได้ สำหรับในบริเวณที่มีกลุ่มหมอกโมเลกุลไฮโดรเจน (หรือกลุ่มหมอกโมเลกุล) นักดาราศาสตร์จะต้องใช้เครื่องมืออื่นในการศึกษา โดยส่วนใหญ่แล้วจะใช้โมเลกุล CO ที่ซึ่งปลดปล่อยรังสีที่ความยาวคลื่น 2.6 mm เป็นตัวศึกษา

ข้อความเหล่าเรียบเรียงจากเว็บไซต์ http://astronomy.swin.edu.au/cosmos/S/Spin-flip+Transition สืบค้นเมื่อวันที่ 23 กันยายน 2556

Friday, August 30, 2013

ตระกูลอาษานอกสอนไว้ว่า.....เกิดเป็นคนต้องรักษาคำมั่น มีสัจจะวาจากับใครต้องทำให้ได้ อย่าดีแต่ประจบสอพลอเจ้านายผู้ใหญ่เพียงเพราะหวังกำไรหรือผลลาภลอย อย่าอายใครๆ เพียงเพราะตระกูลตัวเองจน อยากได้อะไรในชีวิตไม่ต้องรอวาสนาแต่ต้องหามาด้วยน้ำพักน้ำแรงของตนเอง ห้ามดูถูกดูแคลนคนที่ยากจนหรือต่ำกว่าตราบใดที่ยังไม่รู้ว่าตัวเองดีกว่าเขาหรือไม่ ตอบแทนบุญคุณให้กับคนที่ช่วยเหลือเราเท่าทีพอจะช่วยได้ อย่าละอายที่จะมีจิตใจดี คิดดี ทำดี พูดให้น้อยปฏิบัติให้มาก และ เกิดเป็นคนจริงต้องทำจริงต่อหน้าและลับหลังด้วยความสัตย์ซื่อ ถ้ายังทำดีไม่ได้หรือไม่ดีเท่าใครเขา...อย่าเฝ้าไปแต่นินทาว่าร้ายหรือแว้งกัดลับหลังผู้อื่น เพราะนั่นไม่ใช่วิถีของผู้กล้าอย่างแท้จริง....

Friday, August 9, 2013

VNC server reboot

try to login with another machine which allow you to access via normal port
>ssh -p180 yourname@servername
>give your passwod
>vncserver -geometry 1600x1024
 (the number shows the size of pixel in X and Y respectively)

Saturday, July 13, 2013

AIPS 2013 version trouble shooting with MULTTB file

Today, I found that 2013 AIPS was not support MULTTB file. The older one version work properly.

Saturday, June 8, 2013

AIPS Memo for me....

1) setenv work only on c-shell
2) aips tv=local:0 สำหรับเครื่องของตนเอง
3) FITTP ต้องกำหนด outnam 'print:ชื่อไฟล์.fits' ที่ที่เรามีสิทธิ์ในการเข้าถึงไดเร็คทอรรี่นั้นๆ
4) การทำ self-cal เลือกโมเดล เพื่อสร้างภาพ มีสองวิธีได้แก่
 4.1 เลือกช่องที่สว่างใน LL หรือ RR มาทำก่อน จากนั้น copy solution ไปยัง stoke ตรงกันข้าม โดยใช้ task sncor เปลี่ยน opcode เอา หลังจากพอใจกับสโตกส์นึงแล้ว สโตกส์ถัดไป บังคับ phase เป็น 0 ด้วย task sncor opcode 'zphs' โดยบังคับเฟสสโตกส์ตรงข้ามเป็นศูนย์ เฉพาะในขั้นสุดท้าย(นั่นคือ apply แค่ครั้งเดียว) self-cal A&P  พร้อมทั้งปรับฟลักซ์ opcode 'norm' เพือไม่ให้ฟลักซ์สโตกส์ก่อนหน้านี้มีค่ามากเกินไปนัก
 4.2 ถ้าหากว่า stoke LL & RR & I มีตำแหน่งของสปอตเมเซอร์ตรงกัน ให้ใช้ stoke I ทำโมเดล ปรับแค่ phase  อย่างเดียวพอ ซึ่งใช้ได้ดีกับ methanol data เท่านั้น
4.3 ทำ self-cal ต้องเลือกแค่ช่องนั้น ๆ เป็นโมเดล โดยสังเกตจาก ichansel (AIPS version 2012 ขึ้นมา แต่ก่อนจะเป็น bchan echan
5) setenv RUNFIL โฟลเดอร์ที่มีสคริปต์ไฟล์.ตัวเลขฐานสิบหก จึงจะใช้รันไฟล์ได้ เวลาจะใช้งานแค่พิมพ์คำว่า run ชื่อสคริปต์ 

TEC DATA DOES NOT COVER FULL RANGE OF CL TABLE

Check your listr and if the data are observed more than one day you need to download the IONEX files at least 2 files and put in the same fo...