|
|
|
|
|
2 Replies and 1766 Views
LoadCT only works in IDLDE 1766 2
Started by Deleted User
<p>I used a draw widget to display 2D image data, and used LOADCT before the TV command to change the color. </p>
<p>The program works perfect inside the IDLDE, but does not work outside the IDLDE. Regardless of what colortable I set use LOADCT, only grey image is displayed.</p>
<p>I am using IDL 8.4 on Linux Debian.</p>
<p>Can anyone give me a hint, what could be the problem here</p>
<p>Best regards</p>
|
|
|
|
2 |
1766 |
12 Nov 2015 02:52 AM |
|
1 Replies and 1906 Views
CANNY on array with nan&39;s 1906 1
Started by Deleted User
<p>I am trying cloud detection in fisheye <a target="blank" href="http://www.exelisvis.com/LinkClick.aspxlink=184&tabid=184&portalid=0&mid=801">sky images</a> and want to use edge detection.</p>
<p>Starting point is the blue to red ratio, parts outside the circular fisheye image are set to nan.</p>
<p>The sobel operator has a /nan flag and thus can deal with this and delivers gradient images.</p>
<p&g...
|
|
|
|
1 |
1906 |
09 Nov 2015 08:27 AM |
|
4 Replies and 1581 Views
Stack rasters by Indice 1581 4
Started by Deleted User
I have &39;n&39; number of time sequential but spatially static raster files that each have three layers, each layer is a different calculation for vegetation (fairly irrelevant to this part of the code). What I would like to do is read in all n number of raster files and output the first band from each file to a new raster that will be called Veg1 and will have n layers. So on for Veg2 and Veg3. The newest version of ENVI has a BUILD_BAND_STACK routine that will be the ticket to compiling the...
|
|
|
|
4 |
1581 |
29 Oct 2015 11:24 AM |
|
1 Replies and 1528 Views
.sav file problem 1528 1
Started by Zachary Norman
<p>My colleagues and I have been trying to open a .sav file, but get an error from IDL that says “Keyword TRUE not allowed in call to: DEVICE”. I’m using IDL 8.5 on a Windows machine. My colleague is using it on Linux, and it works fine for him. Any suggestions We’re stumped.</p>
|
|
|
|
1 |
1528 |
27 Oct 2015 09:21 AM |
|
1 Replies and 1753 Views
sub setting raster based on irregularly shaped roi 1753 1
Started by Deleted User
I want to subset a raster based on irregularly shaped roi's. I have used SUB_RECT so far, but doing this only allows me to set a four element array of pixels (by defining the four corners of the subset). The problem with this is that I can only subset my rasters as squares or rectangles, when my shapes are irregular. Is there a function to select all pixels within the roi as my subset instead of just four corners
|
|
|
|
1 |
1753 |
25 Oct 2015 01:32 PM |
|
0 Replies and 1715 Views
Multiple Classes to Single Vector File 1715 0
Started by Deleted User
I would like to use IDL to export multiple class images to a single .evf file. This is quite easy to do through the ENVI classic Raster to Vector tool, and I have the following code working well for exporting a single class to vector:
; input files
filevector = &91"E:\2013img\DataCallSchenkGCNP\J1_30012_130526_200144_BLU"&93
;3-1 is the number of files change to n-1 for any number
FOR j=0,1-1 DO BEGIN
files = filevector&91j&93
;open file
ENVI_OPEN_FILE, files, r_fid=refl_f...
|
|
|
|
0 |
1715 |
23 Oct 2015 06:28 PM |
|
1 Replies and 1432 Views
Implementing a loop within a loop 1432 1
Started by Deleted User
This is similar to another question recently asked, but the details are different. To start with I have 80 .dat which represent the NDII vegetative index and I want to subset each of these with 53 roi's. To do this I am pretty sure I need two loops, the first which opens the 80 .dat files, and the second which opens and applies the 53 roi's. The code I have now will do this for the first .dat file and apply all roi's like I want but after that it fails to loop through again for the rest of t...
|
|
|
|
1 |
1432 |
23 Oct 2015 05:18 PM |
|
1 Replies and 1393 Views
multi plot cell width / height.. 1393 1
Started by Deleted User
Hello,
Does anyone know of a simple way to force the dimensions of the plot regions (i.e. cells) that results from the !p.multi e.g. !p.mulit=&910,2,2&93 sets equal width height 4 cells, but can you force one column to be, say, 1/3 the size etc
I've tried manipulating !x/!y.window after setting !p.multi but to no avail.
One solution that seems to work is to ignore !p.multi and manually set !p.region each time I make a plot to my device. There may be a cleaner way, though
Thanks.
CW.
|
|
|
|
1 |
1393 |
22 Oct 2015 03:08 PM |
|
2 Replies and 1490 Views
Error if Non-Drawable Object Instantiated First 1490 2
Started by Deleted User
I am encountering the following known issue in IDL v8.2.3:
43850 Java Export Bridge: Error if Non-Drawable Object Instantiated First
If you create a Java application that incorporates both drawable and non-drawable IDL wrapper objects, instantiating the non-drawable object before the drawable object will cause a runtime error that looks something like:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Native Library path_to_your_AWT_library already loaded in another classload...
|
|
|
|
2 |
1490 |
15 Oct 2015 11:59 AM |
|
1 Replies and 1712 Views
Error opening printer. 1712 1
Started by Deleted User
Hi,
I get the following error message when I execute my program from command line. I am running IDL on windows 2012 server
Error opening printer.
Thanks.
Pritimoy
|
|
|
|
1 |
1712 |
14 Oct 2015 01:42 PM |
|
9 Replies and 2956 Views
Possible to ignore certain values in bandmath? 2956 9
Started by Deleted User
I am creating some vegetative indices with bandmath and then I am going to make histograms of them later on, but I have values of 0.00 representing no data that I want to exclude from analysis. Is there a way to tell the bandmath experssion to do this
For example, I am using this code to create an VI,
pro NDII
envi, /restore_base_save_files
envi_batch_init, log_file='batch.txt'
;set up path to input and output files
input_path = 'D:\Sheyenne\Atmospherically Corrected Landsat\no_tre...
|
|
|
|
9 |
2956 |
13 Oct 2015 04:17 PM |
|
4 Replies and 2475 Views
Database connection to PostgreSQL problem 2475 4
Started by Deleted User
I am using IDL8.4 with DataMiner on Linux Debian Wheezy. I tried to connect my IDL to PostgreSQL 9.4 but encountered following errors:
IDL> objdb = OBJ_NEW('IDLdbDatabase')
Loaded DLM: DATAMINER.
IDL> sources = objdb->GetDatasources()
IDL> sources
&91
{
"DATASOURCE": "DB2WireProtocol",
"DESCRIPTION": "DataDirect7.1DB2WireProtocol"
},
{
"DATASOURCE": "SybaseWireProtocol",
...
|
|
|
|
4 |
2475 |
12 Oct 2015 08:21 PM |
|
0 Replies and 1855 Views
Create mask from shape file 1855 0
Started by Deleted User
Hi,
I am trying to create a mask from a shapefile containing vectors (not polygons) using IDLanROIGroup->ComputeMask. I get as far as creating the ROI group containing all my vector data from the shapefile, then I apply ComputeMask but the result is an empty mask... why is this could you spot if I am missing anything - Thanks!
Here is my code:
function Rasterize_vector_data, path_vector_data
myShape = OBJ_NEW('IDLffShape', path_vector_data)
myShape->GetProperty, N_ENTITIES=num_vectors
...
|
|
|
|
0 |
1855 |
08 Oct 2015 09:09 AM |
|
5 Replies and 1889 Views
Help with plotting in MAP data space 1889 5
Started by Zachary Norman
Hello,
Ifound a very inconvenient usage of function “MAPCONTINENTS”. What I want to dois to overlay my current plot, running from 0-360 degree in longitude, withglobal map. But it looks like MAPCONTINENTS by default consider only longitudein range of &91-180, 180&93 (see figure below). I’ve tried a couple of things and no progress so far.
IDL> plot=plot(findgen(180)*2.,findgen(180)-90, xrange=&910, 360&93, yrange=&91-90, 90&93)
IDL> aa=MAPCONTINENTS(limit=&91-90,0, 90, 3...
|
|
|
|
5 |
1889 |
06 Oct 2015 02:51 PM |
|
2 Replies and 1560 Views
Object references in the extension code for ENVI 1560 2
Started by Deleted User
Hello.
I am creating the extension to ENVI that uses some objects that I defined in the myObj__define.pro file. I saved this definition in the same location where I saved my extension code. When I am running my extension from ENVI interface, the object references can not be found, as the myObj__define.pro needs to be compiled first.
How can one get around this issue and make the extension with references to the user defined objects work, especially when the extension is targeted for the user (...
|
|
|
|
2 |
1560 |
02 Oct 2015 12:11 PM |
|
3 Replies and 1432 Views
Help generating a plot 1432 3
Started by Zachary Norman
Hi,
I would like to get your suggestion on how to generate a figure with a map and, at various locations of the map, I need to put a specific plot (not at all the same).
I know the location where each plot should go but they don't have the same axis size as the map so I don't see how I can do it.
|
|
|
|
3 |
1432 |
02 Oct 2015 11:24 AM |
|
2 Replies and 2802 Views
Attempt to call undefined procedure/function: &39;ENVI_OPEN_FILE&39;. 2802 2
Started by Deleted User
i want to do layer stacking ,but there is problem about ENVI_OPEN_FILE. the waring is:Attempt to call undefined procedure/function: 'ENVI_OPEN_FILE'. Does anyone know how to solve this problemthanks
pro band_envi_layer_stacking_doit_test,inputfiles,outputfile
compile_opt idl2
; envi,/restore_base_save_files
; envi_batch_init,log_file='batch.txt'
inputfiles=&91'E:\test\test\MOD02HKM.A2015001.0230.006.2015002125159reproject_reflectance_georef-PRE-RC-469.tif',$
...
|
|
|
|
2 |
2802 |
01 Oct 2015 02:42 AM |
|
0 Replies and 1571 Views
Create new raster file using pixel selected 1571 0
Started by Deleted User
Hi all! I am new to IDL and have a quick question. I want to generate a new raster image using pixels I selected from 5 other raster images, for example, I want pixel vales
|
|
|
|
0 |
1571 |
24 Sep 2015 02:51 PM |
|
1 Replies and 1765 Views
IDL Tread Pool 1765 1
Started by Zachary Norman
Are there any add-ons that would allow IDL to use multi-core machines more effectively. I know some of the code uses multiple cores already, but I don't think I have any control over this functionality.
|
|
|
|
1 |
1765 |
21 Sep 2015 12:37 PM |
|
2 Replies and 1686 Views
Trailing Singleton Dimensions of Structure Fields 1686 2
Started by Deleted User
Is there a *good* way to programmatically determine whether or not a structure field contains trailing singleton dimensions The HELP procedure correctly lists the trailing dimensions, but when you access the field it is stripped of those dimensions. I could use the OUTPUT keyword to HELP, however that is not ideal and not recommended by IDL. Here is an example:
; Create structure with a 5x1 field.
; Inspect the structure and its field.
IDL> a = {field:reform(lindgen(5),5,1)}
IDL> help,...
|
|
|
|
2 |
1686 |
18 Sep 2015 11:15 AM |