!e : 위 첨자 사용시 사용
!d : 아래첨자 사용시 사용
!n : 원래 상태로(위첨자, 아래첨자가 아닌) 돌릴 때 사용
!x : 폰트를 원래 상태로 돌릴 때 사용..



이 세 가지를 조합해서 표시하면 됨.. 


p.s 1. Angstrom은 '!6!sA!r!u!9 %!6!n'

         이걸로 표시가 되긴 하지만, 완전하지는 않다.



p.s 2. !와 관련된 명령어는 아래의 테이블 정도이면 충분할듯 싶다.


Table H-33: Embedded Font Selection Commands

Command
Hershey Vector Font
TrueType Font
PostScript Font
!3

Simplex Roman (default)

Helvetica

Helvetica

!4

Simplex Greek

Helvetica Bold

Helvetica Bold

!5

Duplex Roman

Helvetica Italic

Helvetica Narrow

!6

Complex Roman

Helvetica Bold Italic

Helvetica Narrow Bold Oblique

!7

Complex Greek

Times

Times Roman

!8

Complex Italic

Times Italic

Times Bold Italic

!9

Math/special characters

Symbol

Symbol

!M

Math/special characters (change effective for one character only)

Symbol

Symbol

!10

Special characters

Symbol *

Zapf Dingbats

!11(!G)

Gothic English

Courier

Courier

!12(!W)

Simplex Script

Courier Italic

Courier Oblique

!13

Complex Script

Courier Bold

Palatino

!14

Gothic Italian

Courier Bold Italic

Palatino Italic

!15

Gothic German

Times Bold

Palatino Bold

!16

Cyrillic

Times Bold Italic

Palatino Bold Italic

!17

Triplex Roman

Helvetica *

Avant Garde Book

!18

Triplex Italic

Helvetica *

New Century Schoolbook

!19

Helvetica *

New Century Schoolbook Bold

!20

Miscellaneous

Helvetica *

Undefined User Font

!X

Revert to the entry font

Revert to the entry font

Revert to the entry font 


Table H-34: Vector-Drawn Positioning and Miscellaneous Commands

Command
Action
!A

Shift above the division line.

!B

Shift below the division line.

!C

"Carriage return," begins a new line of text. Shift back to the starting position and down one line. This command also performs an implicit "!N" command, returning to the normal level and character size at the beginning of the new line.

!D

Shift down to the first level subscript and decrease the character size by a factor of 0.62.

!E

Shift up to the exponent level and decrease the character size by a factor of 0.44.

!I

Shift down to the index level and decrease the character size by a factor of 0.44.

!L

Shift down to the second level subscript. Decrease the character size by a factor of 0.62.

!N

Shift back to the normal level and original character size.

!R

Restore position. The current position is set from the top of the saved positions stack.

!S

Save position. The current position is saved on the top of the saved positions stack.

!U

Shift to upper subscript level. Decrease the character size by a factor of 0.62.

!X

Return to the entry font.

!Z(u0,u1,...,un)

Display one or more character glyphs according to their unicode value. Each ui within the parentheses will be interpreted as a 16-bit hexadecimal unicode value. If more than one unicode value is to be included, the values should be separated by commas.

Note - If the specified unicode value does not exist in the current font, IDL will make a substitution and generate errors in the output log. For example, the Symbol font included with IDL is not a unicode font; specifying unicode values will generate errors.

!!

Display the ! symbol. 


by BSang 2012. 3. 5. 17:48
ex)

string(indgen(15), format='(I2.2)')
이렇게 쓸 경우, 00, 01, 02,....10,11,12,13,14 의 값을 가지는 스트링이 만들어진다.
이 옵션이 기본이며

최신 버전의 IDL 에서는 I02 도 지원함(구버젼에서는 인식못함)
by BSang 2010. 9. 18. 12:42

그리스 문자라든가, 수식 등에 사용하는 기호를 쓸 때 Tex 에서 입력하는 방법으로 해주는 루틴.

ex) print, textoidl('\Delta\lambda_{D}')
by BSang 2010. 9. 17. 15:28
;user symbol에 사용할 데이터 생성(49개까지 생성 가능)
;동그라미를 그리려고 함..0~360도까지 49개의 점으로 구성됨
xarray=findgen(49)*7.5

;user symbol 생성
usersym,2.*cos(xarray*!dtor),2.*sin(xarray*!dtor),color=250,thick=4

;적용
oplot,[95,95],[spectrum_line(95),spectrum_line(95)],psym=8;,color=255
oplot,[356,356],[spectrum_line(356),spectrum_line(356)],psym=8;,color=255
by BSang 2010. 4. 15. 21:11

imdisp 사용법 숙지
by BSang 2010. 4. 15. 21:06
by BSang 2010. 4. 15. 21:05
IDL의 버젼이 올라가면서 작동하는 기능..
기본적으로 GIF 화일을 읽고 쓰는 것이 되어야 가능한 기능..
IDL5.3 버젼에서는 아무 꺼리낌없이 GIF화일을 읽고 저장할 수 있었으나
GIF 포맷의 라이센스 문제가 해결되지 않아서 한동안 GIF를 읽고 쓸 수 없었음.
그 대신 추천한 포맷이 png 포맷이었구.

6.4가 나올 때 라이센스 문제가 풀려서
GIF을 읽고 쓸 수 있게 되었고, 그로 인해서 움직이는 GIF 화일 작성이 가능해짐..


아래 내용은 idluser.org에서 가져옴..

pro test_anim_gif
file=filepath('abnorm.dat', subdir=['examples', 'data'])
heart=read_binary(file, data_dims=[64, 64, 15])

device, decomposed=0
loadct, 8
tvlct, r, g, b, /get

wfile='abnorm_anim.gif'
for i=0, 14 do begin
  one_pic=rebin(bytscl(heart[*,*,i]<239), 192, 192)
  write_gif, wfile, one_pic, r, g, b, /multiple, delay=10, repeat_count=5
endfor
write_gif, wfile, /close
end


by BSang 2009. 2. 13. 22:17
프로그램을 User-Friendly 하게 만들때 쓸 수 있는 함수..
이번에 프로그래밍을 해서 다른 사람이 쓰게 하도록 만들 때 유용하게 사용했음.


result=dialog_pickfile( [, DEFAULT_EXTENSION=string] [, /DIRECTORY] [, DIALOG_PARENT=widget_id] [, DISPLAY_NAME=string] [, FILE=string] [, FILTER=string/string array] [, /FIX_FILTER] [, GET_PATH=variable] [, GROUP=widget_id] [, /MULTIPLE_FILES] [, /MUST_EXIST] [, /OVERWRITE_PROMPT] [, PATH=string] [, /READ | , /WRITE] [, RESOURCE_NAME=string] [, TITLE=string] )

많은 옵션들이 들어가 있음.


이 중에서 자주 쓰는 옵션은,

/directory : 이 옵션을 쓸 경우, 윈도우 프로그램에서 열기 버튼을 눌러서 경로를 지정하는 기능과 유사.
                 단 IDL에서 이 기능을 쓰면 그 지정경로의 스트링 값을 반환해준다는 것.

Filter :  내가 찾고자 하는 화일의 확장자만을 지정해 줄 수 있음.
          혹은 특정 종류의 확장자를 가지는 화일을 골라내 주는 기능
          예를 들어서 확장자가 fit, fits, fts 화일만 골라내려 한다면, filter=['fit','fits','fts']

Path :  초기에 팝업창이 열릴 때 기본적으로 열리는 곳을 찾게 해 주는 옵션


IDL 6.x대 버젼부터는 사용가능..
by BSang 2008. 3. 26. 16:52
화면상에 display를 할 필요가 없이 결과를 만들어낸다거나,
루틴상으로 뭔가 결과를 만들어낼 때 사용..


set_plot,'z'
device,decom=0
loadct,4            <---컬러 적용과 관련된 옵션은 'z' 버퍼 선언후에 선언해줄것(그렇지 않을경우 흑백으로 출력됨)
device,set_resolution=[768,768], set_pixel_depth=24       <----이 옵션은 컬러로 영상을 그릴 때 사용함
tvscl,img
img1=tvrd(/true)
write_jpeg, filename, img1, qualtiy=100, /true
set_plot,'win'
by BSang 2008. 3. 19. 18:59
www.lmsal.com/solarsoft

태양을 연구하는 사람은 반드시 쓰는 패키지..
태양관측위성이라든지, 망원경들에 쓰이는 루틴들의 모음.
매번 업데이트되고 있으며, 윈도우즈/리눅스/맥 모두 사용가능..

단 개발환경이 리눅스환경이어서, 윈도우에서는 제대로 돌아가지 않는 문제가 발생할수 있음
by BSang 2008. 3. 19. 12:43
| 1 2 |