| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
							 | 
						 
						
						
						
							
								
									
									
  | 
										
										
										1 Replies and 1706 Views
										Partial least squares regression in IDL?  1706  1
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										Hi,
I am interested in using partial least squares regression to analyze a dataset.  There are PLS packages available in other languages, but I would prefer to keep all of my processing with IDL if possible.  Has anyone in the community implemented PLS in IDL
Thanks!
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							1 | 
							1706 | 
							25 Aug 2011 11:53 AM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										4 Replies and 1440 Views
										Does anyone know the formula for calcuating Local Moran I, in ENVI.  1440  4
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										Does anyone know the formula for calcuating Local Moran I, in ENVI. 
I created a sample 5x5 image and calculated "Local Moran I" in ENVI. Parellay I calculated local moran I manually in Excel.  I really donot understand what went wrong, in ENVI the values are too low, and no way matching up with the results that I got manually(seriously I tried 10 time, using the formulas from text book).
Any help is appriciated.
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							4 | 
							1440 | 
							25 Aug 2011 07:58 AM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										1 Replies and 1544 Views
										startup files in WIndows in IDL 7.0 - help!  1544  1
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										Hi folks - I am triyng to set up a very simple startup file for IDL 7.0 in Windows.  I know to set the environment variable, and IDL obviosuly sees my file and tries to exceute it... but parts of it work and others do not.  I am at a loss!  here is the code:
DEVICE, RETAIN=2, TRUE_COLOR=24, DECOMPOSED=0
LOADCT, 0
!P.BACKGROUND=’FFFFFF’x
!P.COLOR=’000000’x
!P.FONT=-1
DEVICE, SET_CHARACTER_SIZE=&919,12&93
Window, XSIZE=400, YSIZE=400, /PIXMAP
P...
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							1 | 
							1544 | 
							19 Aug 2011 04:37 PM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										1 Replies and 3745 Views
										Display line numbers?  3745  1
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										I'm very new to IDL, and I'd like to display the code line numbers in the editing window. Is there a way of doing this I haven't seen it in any Help files so far.
Thanks,
Joe
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							1 | 
							3745 | 
							17 Aug 2011 09:26 AM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										2 Replies and 1589 Views
										difficulty using linterp command - need help making loop to exclude a value yet average others  1589  2
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										I am writing a program for my supervisor to take 8 spectra which are
each a matrix of 16384 by 2. The part of the program we have already
splits the matrices into single matrices. Which is the code below:
fitfilename1 = '/Users/quasargroup/NGC3783/NGC3783 new data/X1dsum
files/lbgu19010_x1dsum.fits'
 data1 = mrdfits(fitfilename1,1,hdr)
 w1 = data1.wavelength
 w1a=w1(*, 0)
 w1b=w1(*, 1)
 f1= data1.flux
 f1a=f1(*, 0)
 f1b=f1(*, 1)
.... etc. through 8
...
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							2 | 
							1589 | 
							14 Aug 2011 01:33 PM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										0 Replies and 1302 Views
										Problem with text created by XYOUTS after conversion to animated gif  1302  0
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										Hi to all readers!
My problem is as follows:
When I create PS-plots and add text with XYOUTS to them and convert them to an animated gif file with ImageMagick I get a nice animation but the old output of XYOUTS isn't erased when a new frame appears but remains so that the numbers (an IDL-variable) I want to display cannot be recognized. 
Any idea how to avoid this problem
Thank you very much for any help!
Yours sincerely,
Sven
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							0 | 
							1302 | 
							13 Aug 2011 02:54 AM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										0 Replies and 1216 Views
										Undocumented ENVI/IDL routine: WIDGET_ENVI_LAB  1216  0
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										In the examples ITT Vis provides of ENVI/IDL programming, there is a 
function called user_ev.pro (pasted below).  There's a function called 
WIDGET_ENVI_LAB that is not a part of ENVI or IDL's help menu.  Does 
anyone know what it does  Thanks. 
; ******************************************************* 
; This routine is an example of an auto-managed compound 
; widget. This widget prompts the user for a long integer 
; and an output filename. 
; 
; For more informat...
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							0 | 
							1216 | 
							12 Aug 2011 11:45 AM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										1 Replies and 1082 Views
										Scatterplots using new IDL8 graphics  1082  1
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										I am trying to produce scatterplots using the new IDL8 graphics functionalities. 
For example, I use the PLOT procedure to plot band3 against band4:
test=plot(imagearr&91*,*,2&93,imagearr&91*,*,3&93,SYM_INDEX = 'dot')
But this always produces the following errors:
 PLOT: Arguments have invalid dimensions
 Error occurred at: GRAPHIC            
22 C:\Program Files\ITT\IDL\IDL80\lib\graphics\graphic_error.pro
                    PLOT               63 
...
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							1 | 
							1082 | 
							12 Aug 2011 07:07 AM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										2 Replies and 1407 Views
										idlhelp  frames display no text  1407  2
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										Ola,
I am running Fedora 15 64-bit.
uname -a
... 2.6.40-4.fc15.x86_64 1 SMP Fri Jul 29 18:46:53 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
When I run idlhelp, it brings up my default browser with a page that has frames on it but no text. The frames look similar to another user who is using Mac OS X.
Here is my !version from IDL.
IDL> help, !version
** Structure !VERSION, 8 tags, length=104, data length=100:
   ARCH            STRING    'x86_64'
   OS              STRING    'linux'
  ...
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							2 | 
							1407 | 
							10 Aug 2011 05:19 PM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										0 Replies and 1238 Views
										Netcdf file  1238  0
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										Hi all,
I need to do a simple procedure on Netcdf files, but i can't find a simple way to do it. I want to modify an existing Netcdf and then save the modify version, with a different name, without replacing the original file. Thank you everyone who could help me!
Jacopo
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							0 | 
							1238 | 
							04 Aug 2011 06:25 AM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										1 Replies and 2209 Views
										READ BINARY with skip  2209  1
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										Hi Folks,
I am trying to read some specific binary data coming from planetary missions. I am currently using MATLAB for that, but I want for some reasons switch to IDL for a few of my analysis. I am blocked to a stupid issue because so far I know, READ_BINARY command does not offer to skip between record as the FREAD Matlab command does.
Here is the line I use under MATLAB for reading my data:
 val = fread(fid,rows,precision,skip);
where, fid is the identifier, rows t...
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							1 | 
							2209 | 
							01 Aug 2011 07:58 PM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										0 Replies and 1323 Views
										help:blank holes occurs when converting EVF file to ROI  1323  0
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										When writing IDL  programmes to convert EVF file to ROIs, I found that by using ENVI_CREATE_ROI,ENVI_DEFINE_ROI and other functions just like thisto convert EVF file to ROIs (http://groups.google.com/group/comp.lang.idl-pvwave/browse_thread/thread/d542f3637e107e20), the convert results contain many obvious blank holes in case of  there exists a large region.In fact ,there blank holes should be convert into a single ROIs .But in the ENVI software, the convert results are correct by using the menu...
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							0 | 
							1323 | 
							29 Jul 2011 02:59 AM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										5 Replies and 1709 Views
										Batch Subsetting Script  1709  5
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										Does anyone have an example IDL script of how to batch subset a series of images based on a .evf file Any insights would be appreciated.
Angelica
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							5 | 
							1709 | 
							26 Jul 2011 05:56 PM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										1 Replies and 1129 Views
										IDL 8.0 Prerequisites  1129  1
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										Hello.
I wanted to know what are the IDL 8.0 prequisites for a RedHat system. Can't find that info nowhere.
Thanks.
Regards,
Vilhena
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							1 | 
							1129 | 
							26 Jul 2011 07:34 AM  | 
						 
						
						
						
							| 
								
							 | 
							1 | 
							1718 | 
							21 Jul 2011 02:24 AM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										1 Replies and 1285 Views
										ROT cubic  1285  1
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										Hi,
I was wondering that there exists a benchmark of the ROT function of IDL
 
Cheers,
Jorn
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							1 | 
							1285 | 
							20 Jul 2011 10:18 AM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										1 Replies and 1218 Views
										Slanted Contour Plot  1218  1
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										Can anyone suggest a method for making a slanted contour plot  Specifically, I want to make a contour that has the x axis be horizontal, but the y axis slanted from vertical, to give sort of a 3D look with the purpose of staking 3 or more plots on top of one another to indicate layers of a system.
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							1 | 
							1218 | 
							19 Jul 2011 08:59 AM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										2 Replies and 1829 Views
										8.1 undefined procedure/function write_png, plot3d and others?  1829  2
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										I've recently downloaded and installed v8.1 and am trying to run my Gadget2 IC and output visualization scripts, however when I try to run lines such as
WRITE_PNG, foutName, TVRD()
or 
WRITE_JPEG, foutName, TVRD(), QUALITY=75
I get these errors
 Attempt to call undefined procedure/function: 'WRITE_PNG'.
or
 Attempt to call undefined procedure/function: 'WRITE_JPEG'.
I also get the same type of error when I try and use PLOT3D. When I look in my IDL folders I find...
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							2 | 
							1829 | 
							18 Jul 2011 10:53 PM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										0 Replies and 1104 Views
										Multicolor Line in the same plot  1104  0
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										Hi all,
I would like to plot a 3D array using different colors,at the moment I am still tryng in 2D to obtain what I am thinking with a code like this:
for j=0, 100 do begin
z=&910.00, 3.0, 6.0, 9.0, 12.0&93
x=z*sin(i)*0.1
y=z*cos(i)*0.1
plot,   /NOERASE, z&910:2&93, x&910:2&93, xrange=&910,14&93, yrange=&91-1,1&93, color=red
plot, z&912:4&93, x&912:4&93, xrange=&910,14&93, yrange=&91-1,1&93, color=blu
wait, 0.1
endfor
But I doesn't work as...
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							0 | 
							1104 | 
							18 Jul 2011 09:54 AM  | 
						 
						
						
						
							
								
									
									
  | 
										
										
										0 Replies and 1172 Views
										multi-dimensional headers  1172  0
										Started by  Deleted User
										
										
										
											
											
											
											
											
											
										
										
										Hi all,
I'm trying to figure out a clean way to associate a different fits header with each piece the third dimension of a 3-D array (I have a 512 x 512 x 72 array, and each of those 72 should have a different .fits header). I can read in the headers just fine and create a 2-D string array (dimensions=326 x 72), but neither writefits not mwrfits will take this 2d string array as a header argument. In both cases I get the error 
FXPAR: FITS Header (first parameter) must be a string ...
										
										
										
										 | 
										
										 | 
										 | 
									 
								 
							 | 
							0 | 
							1172 | 
							17 Jul 2011 11:12 PM  | 
						 
						
				 
			 
			 |