Search this forum:
You are not authorized to create a new topic
Page 1 of 11512345 > >>
 Last Post
1 Replies and 126 Views Issues with the MEAN function  126  1 Started by  SH I am stymied by something that IDL is doing in my code, and I cannot explain it. I am calculating the mean (average) of a defined subset of an array (using an index defined by the where function), and I am printing out the mean as well as the number of elements in the subset for which a certain condition is met. If no element meets the condition (index = -1) , I would expect the mean to come out as NaN. However, IDL always returns a number. I thought something was wrong in my elaborate code, but...
1 126
by  David StarbuckJump to last post
30 May 2017 11:33 AM
0 Replies and 61 Views glibc detected error  61  0 Started by  David Starbuck Question: A user is running IDL scripts on their system. Usually the scripts run properly but sometimes a crash occurs with the following error message: *** glibc detected *** /opt/envi5.3.1/idl85/bin/bin.linux.x86_64/idl: malloc(): memory corruption: 0x00000000012dea60 *** The backtrace has lines that say things such as the following: ==5d33231000-7f5d34c3d000 r-xp 00000000 /usr/lib64/ 7f5d35926000-7f5d359f4000 r-xp 00000000 /usr/lib64/li...
0 61
24 May 2017 11:10 AM
1 Replies and 86 Views Changing Font Size and Type in Axis Titles  86  1 Started by  Josh Colwell p.title.font_size=value works fine to change the main title font size, but I don't see a way to change the size of the x axis and y axis titles. Also, what font was used prior to 8.6 I think the new one looks terrible, and it seems to be drawn differently: it's blurry and not as crisp and clear as in previous versions.
1 86
by  David StarbuckJump to last post
23 May 2017 11:01 AM
1 Replies and 91 Views Controlling vector maps with VECTOR and LEGEND  91  1 Started by  Simon C. Hi everyone, I am trying to draw vector maps with IDL from a list of vector catalogs by using the VECTOR and LEGEND functions. However, I encountered two frustrating problems that may force me to find alternative methods in order to get publishable results. First, let me explain what I need to do: I am trying to compare on the same plot two vector catalogues containing information about astronomical polarisation vectors. These vectors are plotted on top of a contour map of the astronomical...
1 91
by  David StarbuckJump to last post
23 May 2017 10:36 AM
1 Replies and 69 Views Changing PLOT Function Font back to 8.5 values  69  1 Started by  Josh Colwell The new IDL PLOT in 8.6 has new fonts and size for the titles. I can change the font size on the main title, but I don't know how to change it for the XTITLE and YTITLE. The new text looks fuzzy as well, not as crisp as original. What were the default font and font size prior to 8.6 and how can I change it back to that for all PLOT title values
1 69
by  David StarbuckJump to last post
23 May 2017 08:49 AM
0 Replies and 83 Views Making a spatially resolved BPT  83  0 Started by  Rafael Cirolini Hello, I'm trying to make a spatially resolved BPT. The problem is that i need to make an 'if' parameter to define a specific region. Something like that: mask=mask*0 for i=0, size(f&91;*,0,0&93;,/n_elements)-1, 1 do begin for j=0, size(f&91;0,*,0&93;,/n_elements)-1, 1 do begin if alog10(OIII&91;i,j&93;/Hb&91;i,j&93;) gt 0.0 then begin mask&91;i,j&93;=1 endif endfor endfor Those OIII and Hb are the y axis. The x axis is NII/Ha, so this ...
0 83
19 May 2017 01:23 PM
1 Replies and 113 Views Hypercube correction to measured spectrum  113  1 Started by  Jennifer Hi, I am running ENVI 5.3 IDL 8.5 (64bit) I have hyperspectral images (.bil) of 9x9cm panels and each image also includes a Spectralon 50 reflectance standard. I want to convert the entire cube from DN to reflectance by scaling each pixel to the mean spectrum of the 50 reflectance standard. Any advice as to the easiest way to do this I right now I am thinking - select an ROI for the reflectance standard in my image, quick stats to get mean spectrum for the ROI, export mean spectrum to ...
1 113
by  Mari MinariJump to last post
16 May 2017 11:37 AM
3 Replies and 222 Views How to batch convert ENVI file to GeoTiff format using IDL?  222  3 Started by  Chen Bangqian I have large amount of ENVI format file, but wander to convert to Geotiff. How can I do that using IDL
3 222
by  Mari MinariJump to last post
15 May 2017 02:09 PM
0 Replies and 158 Views Question about IDL Legend  158  0 Started by  David Starbuck Question from customer: Is there any way to mix a line and a single symbol in a legend You can reduce the number of symbol by setting the SAMPLE_WIDTH to zero, but then the line will disappear. Possible Answer: Unfortunately, I think the only way to reduce the number of symbols is by adjusting the SAMPLE_WIDTH. You can then use the POLYLINE routine to manually draw the line onto the legend: IDL> theory = SIN(2.0*FINDGEN(201)*!PI/25.0)*EXP(-0.02*FINDGEN(201)) ...
0 158
25 Apr 2017 03:10 PM
0 Replies and 131 Views Pressing down button doesn&39;t generate events  131  0 Started by  David Starbuck Question from user: I am displaying a group of buttons with CW_BGROUP. I print out events when they happen. I don't see any event when I press the button but I see one when I release it. I do not have the /norelease argument because I want to see the release event as well. I would like to see the event that occurs (if it occurs) when the button is pressed. Possible answer: Use the PUSHBUTTON_EVENTS keyword. An example is shown below: pro dj_cas_19437_l1k4p5_event, event COMPILE_OPT idl...
0 131
06 Apr 2017 03:34 PM
1 Replies and 121 Views Polar 3D  121  1 Started by  Alexandra Schneider Can IDL do a 3d plot in polar coordinates Or do I need to convert to cartesian coordinates first
1 121
06 Apr 2017 01:23 PM
1 Replies and 147 Views Strange error with idlpy  147  1 Started by  Lorenzo Bernardi Hi all, here the strange error. I premise: two days ago i had no problem with my code. Traceback (most recent call last): File "G:/SVN EO/Simona/illegal_building_detection/Versione2/core/", line 5, in from idlcodes import * File "G:\SVN EO\Simona\illegal_building_detection\Versione2\core\", line 1, in from idlpy import IDL File "C:\Program Files\Harris\ENVI54\IDL86\lib\bridges\", line 318, in class IDL(IDLTyp...
1 147
03 Apr 2017 09:27 AM
1 Replies and 141 Views Write_tiff multiband image  141  1 Started by  Kevan Freeland Hey all, I am a student learning IDL and am seeking help in creating a multiband image from 11 .tiff files. I am trying to create a time sequence NDVI file that has each different NDVI time as a separate layer. I am having trouble building a code in IDL to make this happen. I've been through the IDL help page for Write_tiff and have not been able to successfully construct a set of code to do what I want. So I need to pull 11 images from a folder and combine them into one mu...
1 141
24 Mar 2017 11:30 AM
0 Replies and 95 Views idlpy management  95  0 Started by  Lorenzo Bernardi Hi all, i have a python script that calls and executes some python function making idl processes following the'instruction') syntax. More in detail, i have a set of function making "radiometric correction", "pansharpening" "layer stacking", and so on. I make the import of idlpy module ad the begin of my file. The problem is that license remains busy throughout the execution duration. I try also to make the import only from the function. There is a way to im...
0 95
14 Mar 2017 07:52 AM
2 Replies and 94 Views Can&39;t standardize COLORBAR across multiple VECTOR maps  94  2 Started by  PatDC I'm creating wind maps using the MAP, VECTOR, and COLORBAR and LEGEND functions, and I'm using them to build wind animations. THE PROBLEM: I cannot standardize the color bar and sample vector length across multiple wind maps. EXAMPLE-MAP-1 EXAMPLE-MAP-2 I'm using the TARGET option with COLORBAR to set the range: cbar = COLORBAR(TARGET=wind_vectors, blah) ... so, I cannot use the RANGE=&91min,max&93 option with COLORBAR. Also, the LEGEND sample vector change size from map to map. I'm u...
2 94
11 Mar 2017 06:53 AM
1 Replies and 94 Views Raster subset  94  1 Started by  Siham Benzouai Hello, I have to subset a set of images with the same extentions (coordinates). So, I used the script below which I found on the help. The execution halted at the last instruction with this error message : "Keyword SPATIALREF not allowed in call to: ENVIRASTER::SUBSET". Could you help me to overcome this error Thank you. The script: Raster = e.OpenRaster(File) ; This is the area of interest: UpperLeftLat = 35.1 UpperLeftLon = -112.1 LowerRightLat = 34.7 LowerRig...
1 94
09 Mar 2017 06:02 AM
0 Replies and 94 Views the Solution of the equation  94  0 Started by  wenkai li My newtfunc contain the varion and unknown solution,but the newton method in IDL just allow given initially solution of the equation. How to get the the Solution of the equation Thanks Pro TSM_lixiaModel ; !Except=0 Compile_opt idl2 e=Envi(/headless) starttime = Systime(/second) dir='I:\lwkDATA\waterRegion\MODIS\' files=file_search(dir,'*RC.tif',count=num) for i=0,num-1 do begin file=files&...
0 94
01 Mar 2017 12:32 AM
5 Replies and 97 Views array memory allocation  97  5 Started by  Ben Felzer I am reading from a netcdf file with 97 arrays of size (1165,720,1440), reading each array using ncdf_varget. Because of memory allocation problems, I started using delvar to erase the arrays after finished using them - ultimately creating 19 new arrays of the same size from the original arrays (by adding some of them together). Yet am still getting the error Unable to allocate memory: to make array. Cannot allocate memory. When I test delvar and try to print out one of the deleted arrays, th...
5 97
28 Feb 2017 08:28 AM
2 Replies and 88 Views Georeference Meris image with IDL  88  2 Started by  Siham Benzouai Hi, I have to write an IDL script to automatise the processing of Meris images. One of the first step is the georeferencement. In ENVI, it's done by typing this commands : Geometric correction>Georeference by sensor>Georeference Meris. But, I don't find the equivalent instructions in IDL. Does someone have an idea Thank you.
2 88
25 Feb 2017 07:51 AM
4 Replies and 96 Views rebin  96  4 Started by  Ben Felzer I am rebinning from a 0.25 degree lon/lat grid (1440 x 720) to a half degree (720 x 360), using vu_regrid = rebin(vu,720,360,1165, /SAMPLE). In the original, bad (i.e. ocean) values are indicated by 1e20. After rebinning, these values are 2e20. It's supposed to be averaging them - why is it doubling those large values Hard to tell what it's doing with the other values, but just doing quick sum, seems to be ok as the sum is about 4 times less than summing the higher resolution grid.
4 96
24 Feb 2017 09:08 AM
You are not authorized to create a new topic
Page 1 of 11512345 > >>


Effectively Using Imagery for Precision Agriculture


Tight profit margins are nothing new to growers. With a large portion of budgets tied up in fixed costs,... more »

Running Harris ENVI in the Cloud on Frame


Frame Blog – June 19, 2017 – See how companies like Frame are using ENVI in the Cloud at... more »


Sign up to receive the latest news, events, technologies and special offers.