astrophysics글 21건
2015.11.18 dashed-circle in idl
2015.11.06 postscript, landscape, pdf
2015.11.06 Improved image contrast with IDL (by David Fanning)
2015.09.20 convert ps to pdf
2015.05.12 installing cfitsio
2015.04.11 what processes are running?
2015.04.10 setting remote X11
2015.04.10 kill the process
2015.04.05 background run
2014.11.08 idl in Yosemite
dashed-circle in idl

points = (2 * !PI / 99.0) * FINDGEN(100)

for q = 0, 49, 2 do begin

    temp_points = points[q*2:(q+1)*2-1]

    x = hmin * COS(temp_points)

    y = hmin * SIN(temp_points)

    arr = TRANSPOSE([[x],[y]])

    plots, arr, /data

endfor

postscript, landscape, pdf

device,filename=filename,/color,xsize=24,ysize=18, /landscape


.

.

.


device,/close


cgFixPS, filename, /A4

cgps2pdf, filename


Improved image contrast with IDL (by David Fanning)

see this: http://www.idlcoyote.com/ip_tips/xstretch.php

convert ps to pdf

/esoform-97A$ convert -density 300 fit.ps fit.pdf

installing cfitsio

1. un-tar the file (http://heasarc.gsfc.nasa.gov/fitsio/)

2. /cfitsio$ export CFLAGS="-arch i386 -g -O2"

3. /cfitsio$ ./configure

4. /cfitsio$ make

what processes are running?

(to see what processes are running by 'robert')

$ ps -ef | grep robert

or

$ pgrep -l -u robert

setting remote X11

(.bashrc from the remote machine)

export DISPLAY=localhost:10.0

kill the process

(by using ppid) 

$ pkill -STOP -P ppid

background run

background run in idl8.2



$ nohup nice $IDL_DIR/bin/idl < ghost.pro > out.txt 2> log.txt &


'ghost.pro' has following contents only : 

.rn step2.pro

go

idl in Yosemite

host-iMac:~ host$ idl

dyld: Symbol not found: _inflateReset2

  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib

  Expected in: /Applications/itt/idl71/bin/bin.darwin.x86_64/libz.1.dylib

 in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib


remove libz.1.dylib from /Applications/itt/idl71/bin/bin.darwin.x86_64/


:)


prev | 1 2 3 | next
Hello, stranger
note List Tags Media Guest Admin
powered by TISTORY designed by KHISM modified by kaysoh RSS T Y T
openclose