|
|
|
|
|
1 Replies and 1095 Views
Database in IDL 1095 1
Started by Deleted User
I am trying to write code to access a dataset in a netCDF file to grab the data and format it in a different order. I don't know how to access the data in a dataset. If someone could help me that would be great!!
|
|
|
|
1 |
1095 |
11 Nov 2014 06:46 PM |
|
1 Replies and 1191 Views
Mac Mouse in OS X 10 1191 1
Started by Deleted User
Hi, All -
I can't get the CURSOR function to work with a Mac under IDL 8.3 and OS X 10. I know there had been a problem in earlier versions, and the X11 / terminal fixes recommended don't help. Can anyone tell me what the latest is on this
Thanks and regards,
Bill Arden
|
|
|
|
1 |
1191 |
10 Nov 2014 04:14 PM |
|
2 Replies and 1149 Views
Static method - called by object or as static method? 1149 2
Started by Deleted User
Hello,
I am looking for a way to discover (within the method) if a static method that is called is actually called as a static method or from the object class with which it is associated.
I have not come up with a way to determine this. Thanks
|
|
|
|
2 |
1149 |
10 Nov 2014 08:06 AM |
|
1 Replies and 1204 Views
Variable quick watch 1204 1
Started by Deleted User
Hello all,
In IDLDE 8.0, I was able to watch variables during execution, by hovering on them with the mouse. This does not seem to be possible on version 8.2.
Is there anything I should configure to enable this great functionality
Many thanks.
|
|
|
|
1 |
1204 |
31 Oct 2014 03:33 AM |
|
1 |
1277 |
24 Oct 2014 11:14 AM |
|
1 Replies and 1329 Views
display 16 bit data like TV 1329 1
Started by Deleted User
I'd like to simply display unsigned 16 bit data (200x200) similar to TV. How can I do
|
|
|
|
1 |
1329 |
23 Oct 2014 09:10 PM |
|
1 Replies and 7133 Views
Unable to allocate memory to make array 7133 1
Started by Deleted User
Hello all,
I am trying to get the number of occurences of values higher than 100 in arrays and always get a 'Unable to allocate memory' error on large arrays. I do not wish to increase my virtual memory, which is currently set to 3GB.
Here is my code:
a=UINDGEN(2000,6000,150)
a GE= 100
b=TOTAL(a)
I get the memory allocation error on the second line.
Is there a way to achieve this
Thank you for reading (and helping if you can!).
|
|
|
|
1 |
7133 |
22 Oct 2014 06:01 AM |
|
11 Replies and 2387 Views
Compatibility with OS X Yosemite? 2387 11
Started by Deleted User
My IDL 8.1 stopped working after I upgraded the system to OS X Yosemite. It appears to be related to some dynamic library.Here is what I have:bash> idldyld: Symbol not found: _inflateReset2 Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib Expected in: /Applications/itt/idl/idl81/bin/bin.darwin.x86_64/libz.1.dylib in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylibTrace/BPT trap: 5I have reinstalled zlib and libpng thr...
|
|
|
|
11 |
2387 |
17 Oct 2014 04:21 AM |
|
1 Replies and 1220 Views
Plotting time dependent data 1220 1
Started by Deleted User
Hello, I have problems with labeling x time axis using procedure PLOT. My time data are in 'seconds' format - number of seconds counted from 1/1/1979. On X axis I want to display time in format H:I but there are only 00:00 labels displayed. Could someone answer how to set the correct format of dataI trieddummy=LABEL_DATE(DATE_FORMAT=&91'H:I'&93)p=PLOT(data(0,*),data(1,*),'r', AXIS_STYLE=1, XTICKUNITS='Time', XTICKFORMAT= 'LABEL_DATE')Thank you
|
|
|
|
1 |
1220 |
17 Oct 2014 04:14 AM |
|
1 Replies and 1440 Views
Second axis with non-linear coord_transfrom ? 1440 1
Started by Deleted User
I'm trying to create a plot which has a second x-axis which has a non-linear relationship to the main x-axis. This is straightforward to do with the plot and axis procedure (see below) but seems impossible with the new graphics axis since it either sticks to the first axis' data units or only allows a linear coord-transform. Is there anyway around this or is this capability not available yet
Procedure code example (I could just take the log of x and x2 to work with the new graphics but looking ...
|
|
|
|
1 |
1440 |
16 Oct 2014 07:28 AM |
|
2 Replies and 2097 Views
STRING keyword in NCDF_VARDEF 2097 2
Started by Deleted User
Hi,
I have been trying to create a NetCDF file (version 3) with a number of variables in a mix of types. However, when I try to include string variables, using the /STRING keyword, it produces an error (NC_ERROR=-45 : Unable to define variable). This only appears to happen when I try to define a string variable - it has no problem with Float, Double or Long. I am running IDL 8.3, and the string keyword was introduced in 8.1, so this should not be the issue. The issue happens with both arrays of ...
|
|
|
|
2 |
2097 |
16 Oct 2014 06:04 AM |
|
1 Replies and 1274 Views
image function: fails to save with eps and ps format correctly if yrange is set 1274 1
Started by Deleted User
Hello!
I met a problem when image an 2d histogram. Here is part of the codes:
-----------------------------------
w0 = window(dimensions=&91800,600&93)
x = raw.v-raw.i
y = raw.v
upperpart = &910.1,0.1,0.9,0.9&93
ngrids = 500
bin1 = (max(x)-min(x))/ngrids
bin2 = (max(y)-min(y))/ngrids
max1 = max(x)
min1 = min(x)
max2 = max(y)
min2 = min(y)
h2d = hist_2d(x,y,bin1=bin1,bin2=bin2,max1=max1,min1=min1,max2=max2,min2=min2)
h2d = bytscl(alog10(h2d>1))*0.8
ct = colortab...
|
|
|
|
1 |
1274 |
13 Oct 2014 04:52 PM |
|
0 Replies and 1488 Views
Got my issue figured out - 1488 0
Started by Deleted User
I cannot seem to delete a post that I accidentally submitted.
|
|
|
|
0 |
1488 |
10 Oct 2014 10:00 AM |
|
2 Replies and 1512 Views
ndvi_batch 1512 2
Started by Deleted User
Hi,
I'm very new in IDL.
I want to calculate NDVI indice for a lot of images with got from private company. I found in this forum a pro code and i tryed to adapt it but it not working. Please check and tell me what is wrong.
pro ndvi_batch
compile_opt idl2
;set up path to input and output files
;input_path = 'X:\JEdi_D2\GrassService\Siguldas_nov\Process\140708\112717_2'
;change to output directory where I want the processed files to be placed
cd, 'X:\JEdi_D2\Gra...
|
|
|
|
2 |
1512 |
09 Oct 2014 03:54 AM |
|
2 Replies and 1032 Views
axis function bug? 1032 2
Started by Deleted User
Hi, can anyone help me I'm running IDL 8.3.
I cannot even run the function example http://www.exelisvis.com/docs/AXIS.html
with out the errormessage "Keyword AXIS not allowed in call to: AXIS::SET"
|
|
|
|
2 |
1032 |
07 Oct 2014 08:13 AM |
|
3 Replies and 1280 Views
Performing Canny Filter 1280 3
Started by Deleted User
Hello,
I'm new with IDL. I 'm trying to reproduce the following code to test a canny filter on a png 8 bit unsigned integer : http://www.exelisvis.fr/docs/CANNY.html
This is how I modified the code in my case :
img = READ_PNG(FILE_SEARCH('SoCor_062_2.png', /FULLY_QUALIFY_PATH))
filtered = CANNY(img)
TVSCL, img, 0
TVSCL, filtered, 1
First, when I display the raw image with "TVSCL, img, 0", it shows a black picture frame instead of showing my image.
Then, when I display the...
|
|
|
|
3 |
1280 |
07 Oct 2014 03:04 AM |
|
0 Replies and 1405 Views
matrix multiply of idl is very slow compared to Python. 1405 0
Started by Deleted User
hi. here is example code.
my english is poor. sorry.
data = RANDOMU(seed, 2e3, 2e3, /double)
; using idl matrix multiply
tmp = tic()
res_idl = datadata
idl_time = toc(tmp)
; using python
; www.slither4idl.com
py = pyimport('__main__')
py.EXEC, 'from numpy import dot'
tmp = tic()
res_py = py.DOT(data, data)
py_time = toc(tmp)
; 8 times faster in my computer
PRINT, 'idl elapsed time', idl_time
PRINT, 'python elapsed t...
|
|
|
|
0 |
1405 |
06 Oct 2014 05:14 AM |
|
2 Replies and 1318 Views
Limited number of array dimensions 1318 2
Started by Deleted User
Hello!
I found that I could not make any array (of any sort) that exceeded 8 dimensions using IDL 8.3. For instance, the command "m1=fltarr(2,2,2,2,2,2,2,2,2)" results in the following response: " FLTARR: Incorrect number of arguments." However, the following command is okay: "m2=fltarr(2,2,2,2,2,2,2,4)". Arrays m1 and m2 have an equal amount of elements, but m1 has 9 dimensions and m2 has 8 dimensions. Therefore, it does not seem to be a memory problem.
So, why is...
|
|
|
|
2 |
1318 |
03 Oct 2014 07:39 AM |
|
1 Replies and 1212 Views
Layer_Stacking 1212 1
Started by Deleted User
Hi,
I'm using later_stacking_doit_multi_files routine in batch mode. It works only if the stacking layers are in the same directory. I would like to change the code like it takes layers from different locations and do stacking.
I did like that but it not works, it takes only the file from other_mydir location
cd, 'mydir'
files = file_search('*_000000_g.tif', count=count, /fold_case)
cd, 'other_mydir'
files = file_search('*_000001_g.tif', count=count, /fold_case)
Any help could be n...
|
|
|
|
1 |
1212 |
24 Sep 2014 03:45 AM |
|
5 Replies and 1580 Views
ENVIRaster 1580 5
Started by Deleted User
I am new to object orientated programming and am trying to do batch processing using ENVI 5.0 functions in IDL 8.2.3.
My intention is to spatial & spectrally subset a lot of geotiffs. At the moment I am subsetting into .sav files but would like to create a new set of geotiffs.
I think that I should be creating new ENVI rasters. However when I try to use ENVIRaster() I get an error message.
ENVIRASTER::INIT: Incorrect number of arguments.
even when using the exampe provided o...
|
|
|
|
5 |
1580 |
10 Sep 2014 08:30 AM |
|