📄 tab_fortospp.pro
字号:
pro tab_fortospp,format,sppformat;+; NAME:; TAB_FORTOSPP; PURPOSE:; Procedure to convert a FORTRAN format to an SPP format specfication.;; CALLING SEQUENCE:; sppformat, format, sppformat;; INPUTS:; format - fortran format specification;; OUTPUTS:; sppformat - sppformat specification;; HISTORY:; version 1 D. Lindler Jan, 1989; Converted to IDL V5.0 W. Landsman September 1997;-;------------------------------------------------------------------------;; decode fortran specification; f=strtrim(strupcase(format),2) type=strmid(f,0,1) f=strmid(f,1,strlen(f)-1) w=gettok(f,'.') case type of 'I' : sppformat = w+'d' 'Z' : sppformat = w+'x' 'O' : sppformat = w+'o' 'F' : sppformat = w+'.'+f+'f' 'E' : sppformat = w+'.'+f+'e' 'D' : sppformat = w+'.'+f+'e' 'G' : sppformat = w+'.'+f+'g' 'A' : sppformat = w+'s' else: begin print,'TAB_FORTOSPP -- format '+format+' not supported' retall end endcase returnend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -