
IDL
文章平均质量分 55
juliosun
这个作者很懒,什么都没留下…
展开
-
IDL format string with zeropadding
i = 1print,nistring(i,format='(I04)')IDL>0001原创 2020-03-03 01:14:27 · 225 阅读 · 0 评论 -
IDL create a empty string
I would like to create a blank string of length 1024. (That is, my string contains 1024 spaces.) What is the best way to do this in IDL? The best way to do this is to simply use the ASCII char转载 2016-05-11 20:14:25 · 500 阅读 · 0 评论 -
IDL format codes
Syntax of Format CodesThe syntax of an IDL format code is:[n]FC[+][-][width]Where:nis an optional repeat count (1 ≤ n) specifying the number of times the format code转载 2016-03-10 19:26:21 · 811 阅读 · 0 评论 -
IDL get variable size in bytes
There are two ways to get the actual size (byte) of the IDL variables.1. Use built-in size functionFUNCTION sizeof, DataItem;; First get the information regarding the item;Info =原创 2016-02-12 23:00:57 · 536 阅读 · 0 评论 -
Savitzky-Golay smoothing
The SAVGOL function returns the coefficients of a Savitzky-Golay smoothing filter, which can then be applied using the CONVOL function. The Savitzky-Golay smoothing filter, also known as least squares转载 2016-01-13 00:39:23 · 3386 阅读 · 1 评论 -
IDL save postscript file
How to save a plot as the .ps file?cgPS_Open, 'output.ps'!x.thick = 4!y.thick = 4!z.thick = 4!p.thick = 4cgPS_Closeor if you want to save the plot to other format:cgPS_Close,转载 2015-07-01 21:58:28 · 888 阅读 · 0 评论 -
IDL vector filed plot
The VELOVECT procedure produces a two-dimensional velocity field plot. A directed arrow is drawn at each point showing the direction and magnitude of the field.This routine is written in the IDL l转载 2015-06-26 23:24:26 · 971 阅读 · 0 评论 -
IDL box plot
cgboxplot.proGraphicsThis is graphics routine to display a box plot, also known as a box and whisker plot, in IDL direct graphics. Here are the IDL commands to read the data and pr转载 2015-06-24 19:35:31 · 1099 阅读 · 0 评论 -
IDL structures array
Creating an Array of StructuresThe easiest way to create an array of structures is to use the REPLICATE function. The first parameter to REPLICATE is a reference to the structure of each element转载 2014-12-10 00:59:00 · 796 阅读 · 0 评论 -
IDL change the ticks
[XYZ]CHARSIZEAccepted by: AXIS Procedure, CONTOUR Procedure, PLOT Procedure, SHADE_SURF Procedure, SURFACE Procedure. System variable equivalents: ![XYZ].CHARSIZE.The size of the charact转载 2014-10-16 20:56:53 · 1892 阅读 · 0 评论 -
IDL out of the for loop
IDL is old. Grandfatherly, even. When it was first written, you had a really souped-up computer if you had added an additional 10 MByte hard drive to go with the standard 1 MByte of disk space. So, yo转载 2014-10-17 23:49:04 · 517 阅读 · 0 评论 -
IDL axis style
[XYZ]STYLEAccepted by: AXIS Procedure, CONTOUR Procedure, PLOT Procedure, SHADE_SURF Procedure, SURFACE Procedure. System variable equivalent: ![XYZ].STYLE.This keyword allows specification of axi转载 2014-09-15 16:25:53 · 1464 阅读 · 0 评论 -
查找数组中的NAN IDL
The problem is that an NAN is ... well, not a number. Thus, you can't use it in expressions that require a number. (Think of it as a mathematical Catch-22, if you like.)The proper way to write thi转载 2016-03-28 22:51:00 · 2512 阅读 · 0 评论 -
IDL array subscript
There are six types of subscript ranges:Subscript FormatDescription[*]All elements of a dimension.This form is used with multidimensional arrays to se转载 2016-04-29 18:04:31 · 1062 阅读 · 0 评论 -
Embedding Greek and scripts into text IDL
The embedded symbols will be evaluated at run-time, so they will be correct both on the display and if you send this command to a PostScript file, or make a high-quality raster file with ImageMagick转载 2016-06-14 21:32:29 · 603 阅读 · 0 评论 -
quite mode in IDL
idl -quiet转载 2019-05-23 04:28:31 · 343 阅读 · 0 评论 -
IDL borrow license from server
IDL borrow license errorHarris License AdministratorIDL 8.6.0, Nov 21 2016 (325531) (linux x86_64)Wed Nov 14 11:46:28 2018*** Unable to retrieve computer information.*** Is your license activate...原创 2018-11-15 11:38:39 · 759 阅读 · 0 评论 -
Filtering Images in the Frequency Domain
Can be also implemented directly with Butterworth.proQUESTION: I've heard about frequency domain filtering of images. How can I build image filters and do this in IDL?ANSWER: Filtering in the fr...转载 2018-08-14 02:26:19 · 1113 阅读 · 0 评论 -
Calculating center of mass of a array IDL
2D FUNCTION Centroid, array s = Size(array, /Dimensions) totalMass = Total(array) xcm = Total( Total(array, 2) * Indgen(s[0]) ) / totalMass ycm = Total( Total(array, 1) * Indgen(s[1])...转载 2018-07-28 05:24:36 · 366 阅读 · 0 评论 -
Call matlab script in IDL
pro test oMatlab = obj_new('IDLcomIDispatch$ProgID$Matlab_application_7.13') ; or 9.5 ;use '..._6' instead if you use Matlab 6.x ;oMatlab -> setProperty, visible=0 a = 4.8 oMatlab ->...原创 2018-06-28 03:58:18 · 443 阅读 · 0 评论 -
Find the unique elements of an unsorted array - IDL
; Create an array:array = [1, 2, 1, 2, 3, 4, 5, 6, 6, 5]; Variable B holds an array containing the sorted, ; unique values in array:b = array[UNIQ(array, SORT(array))]PRINT, b转载 2018-06-12 03:00:12 · 349 阅读 · 0 评论 -
IDL read table from a .txt file
data = READ_ASCII('massatten.txt', template=mytemplate) myTemplate = ASCII_TEMPLATE('massatten.txt')原创 2017-09-26 15:57:49 · 527 阅读 · 0 评论 -
local standard deviation of an image
Just checked the file SIGMA_FILTER at the NASA site. I really must spend more time browsing these great sites.The code is similar, however it does not calculate the true variance under the mask. T转载 2017-07-20 18:08:52 · 591 阅读 · 0 评论 -
IDL common block
Note on Common Block Variable NamesVariables in IDL COMMON blocks do not actually have names. Rather, IDL represents COMMON blocks internally as an array of variables, and these variables are refe转载 2016-09-16 23:30:14 · 880 阅读 · 0 评论 -
FILE_TEST IDL
The FILE_TEST function checks files for existence and other attributes without having to first open the file.ExamplesTo determine whether your IDL distribution supports the Intel-based Macin转载 2016-08-31 22:21:53 · 1367 阅读 · 0 评论 -
IDL sumation over given dimension
The results are different when a multi-dimensional array is used:; Define a multi-dimensional array:A = FINDGEN(5,5); Sum each of the rows in A:SUMROWS = TOTAL(A, 1); Sum each of the columns in转载 2014-08-28 23:44:36 · 544 阅读 · 0 评论 -
IDL divide by zero
Here is the solution for integers (represented as floating arrays, if you want to do floating point arithmetic, of course). The variable replacement_value represents whatever value you think is approp转载 2014-08-26 00:47:04 · 675 阅读 · 0 评论 -
IDL plot with white background
Accepted by: CONTOUR Procedure, PLOT Procedure, SURFACE Procedure, System variable equivalent: !P.BACKGROUND.The background color index or 24-bit color value to which all pixels are set when era转载 2014-08-22 00:53:05 · 1189 阅读 · 0 评论 -
IDL矩阵相乘
A#B表示A的列乘以B的行A##B表示A的行乘以B的列转载 2014-04-02 20:12:32 · 4536 阅读 · 0 评论 -
IDL add subdirectories to PATH
IDL> !PATH = Expand_Path('+~/idl/coyote') + ':' + !PATHNote the plus sign (+) at the front of the coyote directory name. This tells IDL to search all of the sub-directories of these directories a转载 2014-04-16 22:59:15 · 1381 阅读 · 0 评论 -
idl number to string
Converting variables to string type often results in undesirable leading blanks. For example, the following command converts the integer 56 to string type:C = STRING(56)Entering the command:HE转载 2014-03-31 20:43:06 · 2214 阅读 · 0 评论 -
IDL transpose: perfusion arrays
ExamplesSee Additional Examples for more information on using TRANSPOSE.Example 1Print a simple array and its transpose by entering:; Create an array:A = INDGEN(3,3)TRANSA = TRANSP转载 2014-03-14 01:06:57 · 1701 阅读 · 0 评论 -
IDL congrid: resize the image
ExamplesThe following example reads some data from a file, displays it at its original size, then uses CONGRID to resize the array and display the magnified version. ; Select the file. fil转载 2014-03-14 01:06:09 · 2037 阅读 · 1 评论 -
IDL C++ interaction
C++We are often asked if IDL can call C++ code. Compatibility with C has always been a strong design goal for C++, and C++ is largely a superset of the C language. It certainly is possible to combin转载 2014-03-11 23:33:35 · 1264 阅读 · 0 评论 -
Calling C Programs from IDL
Here are some general tips for using Call_External.All arrays which need to be passed between IDL and C must be allocated in IDL. This includes both arrays being passed from IDL to C and from C ba转载 2014-03-11 23:07:12 · 968 阅读 · 0 评论 -
IDL image dispaly in window
Image Display Commands:The basic IDL direct graphics routines for opening, displaying, and adjusting image display windows are window, which creates a new window and sizes it; wset, which de转载 2014-01-31 23:09:30 · 1030 阅读 · 0 评论 -
IDL help
help : lists all active variables, their characteristics, compiled programs, information on storage areas, etc.; various options. But does not explain commands. There are many optional keywords for us转载 2014-01-31 22:41:26 · 2318 阅读 · 0 评论 -
IDL unix switch
To give LINUX system commands from within IDL: enter $ as the first character on the command lineTo interrupt and resume IDL: use the standard ^z and fg LINUX commands.转载 2014-01-31 22:05:17 · 798 阅读 · 0 评论 -
Main program, Procedures and Functions
ProgramsPrograms are structured text files of IDL commands. They can be stored anywhere in your IDL path. There are three different types of programs, each of which interacts slightly differently wi转载 2014-01-31 22:45:47 · 654 阅读 · 0 评论 -
IDL vertical inverse colorbar
cgLoadCT, 0, CLIP=[0, 245], /Reverse;cgColorbar,RANGE=[0,1], Division=1, Charsize = 2, /vertical, /right原创 2014-05-05 23:45:39 · 961 阅读 · 0 评论