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 ชื่อสคริปต์ 

basic linux command for me....

๒) การก็อปปี้ไฟล์จากเครื่องอื่น ๆ 
Copy file called data.txt to ras.nixcraft.in Linux system (vivek is username):
$ scp data.txt vivek@ras.nixcraft.in:/home/vivek
Copy more than two files:
$ scp data.txt pic.jpg vivek@ras.nixcraft.in:/home/vivek
Copy /data directory and all files inside /data i.e. recursively copy entire directories:
$ scp -r /data vivek@ras.nixcraft.in:/home/vivek
๓) การบีบอัดทั้งโฟลเดอร์
tar -cvf ชื่อโฟลเดอร์.tar ชื่อโฟลเดอร์/
๔) การปริ้นท์งานผ่าน command line เปิดไฟล์นั้น ๆ ไว้แล้วพิมพ์คำว่า
lpr -P ชื่อเครื่องปริ้นท์
๕) เปลี่ยนสิทธิ์การเข้าถึงไฟล์
chmod 777 ชื่อไฟล์ (คือให้มีสิทธิ์เขียน อ่าน แก้ไขได้ทั้งหมด)

Monday, March 18, 2013

Install wget in Mac OS X Without Homebrew or MacPorts


These information copied from http://osxdaily.com/2012/05/22/install-wget-mac-os-x/
-----------------------------------------------------------------------------------------------------------------------
The command line tool wget lets you retrieve a group of files from FTP and HTTP protocols, it’s a very useful utility for web developers and powerusers to have around because it lets you do things like perform quick and dirty site backups and even mirror websites locally.
This approach is going to build and install wget in OS X from source, this means you’ll need Xcode and the Unix dev tools (free @ Mac App Store) installed, but it has the benefit of eliminating the need of a package manager like Homebrew or MacPorts.
Assuming you have Xcode and the command line tools installed, launch Terminal and enter the following commands:
First, use curl to download the latest wget source:
curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz
Next we use tar to uncompress the files you just downloaded:
tar -xzf wget-1.13.4.tar.gz
Use cd to change to the directory:
cd wget-1.13.4
Configure with the appropriate –with-ssl flag to prevent a “GNUTLS not available” error:
./configure --with-ssl=openssl
Build the source:
make
Install wget, it ends up in /usr/local/bin/:
sudo make install
Confirm everything worked by running wget:
wget --help
Clean up by removing wget source files when finished:
cd .. && rm -rf wget*
You’re all set, enjoy wget in Mac OS X.

Thursday, December 20, 2012

การติดตั้งไทยเลเทกซ์บนระบบปฏิบัติการวินโดวส์ (Thai Latex installation on Windows System)

1. ลงผีดำผีขาว (Ghostscript viewer) เพื่ออ่านไฟล์ .ps และ .pdf
2. ลง acrobat reader เพื่ออ่านไฟล์ .pdf (ถ้ามีแล้วไม่ต้องลง)
3. ลงโปรแกรม Miktex 2.7 หรือ 2.8 คือมองหาคำว่า setup.exe
4. ลงโปรแกรม text editor ที่เป็น freeware แนะนำ texmaker
5. ลงโปรแกรมวาดรูปแบบเวกเตอร์และเป็น freeware แนะนำ inkscape
6. ในซีดี ให้เลือก copy2c แล้วก้อปไปวางในไดรฟ์ C โฟลเดอร์ไหนมีอยู่แล้วก็ให้ก๊อบเฉพาะไฟลืที่ยังไม่มีไปใส่
7.ไปที่ start>programs>miktexXXX>เลือก settings
8. กดปุ่ม refresh FNDB เพื่อปรับฐานข้อมูลประมาณ 3 ครั้ง
9. เลือก tab Roots ตรง Miktex Options
10. กดปุ่ม Add ไปหาไฟล์ที่พึ่งก๊อปปี้ลงไปในไดรฟ์ C ที่ชื่อว่า localtexmf
11. หลังจากแอ็ดเสร็จจะโชว์ข้อความว่ามีทั้ง miktexXXX และ localtexmf อยู่ในไดรฟ์ที่ต้องการ
12. ติดตั้ง swath setup

ทดสอบรัน latex โดยพิมพ์
\documentclass[...]{...}
\usepackage[english,thai]{babel}
\usepackage{thswitch}
\begin{document}
...
\end{document}

Friday, August 17, 2012

AIPS Memos for those are newbies

RUN
1. Run file ใช้คำสั่งใน cshell ก่อนว่า setenv RUNFIL /directory/ที่ไฟล์รันอยู่
2. จากนั้นใช้ชุดคำสั่ง  run 'ชื่อไฟล์รันนามสกุล hexadecimal AIPS user number' เช่น 123  ก็จะเป็น 03F เป็นต้น
3. list ตามด้วยชุดฟังก์ชันที่เขียนไว้ใน runfile นั้น ๆ

Sunday, June 3, 2012

Installing Latex on a Mac


  1. Go to http://www.tug.org/mactex/
  2. Download the MacTex Package (admin rights may be required)
  3. Once the download is finished load the disk image (if it doesn't happen automatically) and run the installer (MacTeX-2010.mpkg) contained within.
I am using \texmaker for creating a tex file on Mac. Hope you enjoy!
Thai latex installation will publish soon or later :-)

Friday, December 9, 2011

UBUNTU 11.10 login with no effect

apt-get install gnome-panel ควรแก้ปัญหานี้ได้ สำหรับผู้ที่ไม่ชอบ effect ใด ๆ สำหรับการล็อกอินและเรียกใช้งาน terminal ทั่วไป

AIPS no TV but TEKSRV & MSGSRV work (solved troubleshooting)

After I installed UBUNTU 11.10 in Samsung Laptop RC418 core i5 and NVIDIA optimus graphic inside. I tried to install AIPS software and found that TV wouldn't work properly as shown below;
----------------------------------------------------------------------------------------------
START_AIPS: I am GUESSING you are at a workstation called localhost
START_AIPS: Starting TV servers on localhost asynchronously
START_AIPS:  - with Internet Sockets...
START_AIPS: Starting TPMON daemons on LOCALHOST asynchronously...
DADEVS.PL: This program is untested under Perl version 5.012
Starting up 31DEC11 AIPS with normal priority
XASERVERS: Start TV LOCK daemon TVSERV on localhost
XASERVERS: Start XAS on localhost, DISPLAY :0
XASERVERS: Start graphics server TEKSRV on localhost, DISPLAY :0
XASERVERS: Start message server MSGSRV on localhost, DISPLAY :0
TVSERVER: Starting AIPS TV locking, Inet domain
STARTPMON: [LOCALHOST] Starting TPMON1 with output SUPPRESSED
Begin the one true AIPS number 1 (release of 31DEC11) at priority =   0
ZVTPO3 bind (INET): Address family not supported by protocol
XAS: ** TrueColor FOUND!!!
XAS: ***  Using shared memory option for speed ***
XAS: Using screen width 1356 height 668,
     max grey level 8191 in 16 grey-scale memories
MakeLink: bind error (INET): Address family not supported by protocol
TVSERVER told to shut down by XAS
XAS: Quitting NOW.
AIPS 1: You are assigned TV device/server   1
AIPS 1: You are assigned graphics device/server   1
----------------------------------------------------------------------------------------

therefore I have tried to solve the problem by using the command;
aips tv=local
before starting aips software.
It should be work and show the messages somethings like this;
-------------------------------------------------------------------------------------------
START_AIPS: Starting TV servers on localhost asynchronously
START_AIPS:  - WITH Unix Sockets as requested...
START_AIPS: Starting TPMON daemons on LOCALHOST asynchronously...
Starting up 31DEC11 AIPS with normal priority
Begin the one true AIPS number 1 (release of 31DEC11) at priority =   0
AIPS 1: You are not on a local TV device, welcome stranger
AIPS 1: You are assigned TV device/server   2
AIPS 1: You are assigned graphics device/server   2
AIPS 1: Enter user ID number
?AIPS_TEK_HOLD=
do NO
DADEVS.PL: This program is untested under Perl version 5.012
UNIXSERVERS: Start TV LOCK daemon TVSRV1 on localhost
UNIXSERVERS: Start XAS1 on localhost, DISPLAY :0
UNIXSERVERS: Start graphics server TKSRV1 on localhost, display :0
UNIXSERVERS: Start message server MSSRV1 on localhost, display :0
TVSERVER: Starting AIPS TV locking, Unix (local) domain
STARTPMON: [LOCALHOST] Starting TPMON1 with output SUPPRESSED
ZVTPO3 bind (INET): Address family not supported by protocol
XAS: ** TrueColor FOUND!!!
XAS: ***  Using shared memory option for speed ***
XAS: Using screen width 1356 height 668,
     max grey level 8191 in 16 grey-scale memories

AIPS 1: Enter user ID number
?

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...