|
|
|
|
|
1 Replies and 2060 Views
writing binary files using writeu 2060 1
Started by Deleted User
Hello
I am a beginner at IDL and I have a problem with writing a simple array to binary files using writeu. Writing the same file in ASCII works fine, but I cannot read a binary file written with writeu (I think there are type conversion errors -why). The documentation on IDL basics is dreadful, hence I am writing to this group. Here is my code:
pro bwriteu2
close, /all
file_output2='banana_binary.out'
file_output3='banana_ascii.out'
openw,2,file_output2
openw,3,file_output3...
|
|
|
|
1 |
2060 |
31 Jan 2003 02:39 AM |
|
0 Replies and 2648 Views
gds or gdsII 2648 0
Started by Deleted User
I calculate holograms (using IDL) and want to send these patterns off to have photomasks made. Unfortunately, the mask makers seem to want everything in gds or gdsII format, which I know nothing about (but which seems to be the 'industry standard'). Would anyone have a program that would allow conversion from bitmap to gds Any advice would be appreciated.
|
|
|
|
0 |
2648 |
22 Jan 2003 03:33 AM |
|
0 Replies and 2716 Views
File opening 2716 0
Started by Deleted User
IDL 5.3 opens succesives files without changing the directory.
IDL 5.5 cannot do it I did not succed to manage this problem - I am using a loop (for) and commnad openu!
|
|
|
|
0 |
2716 |
20 Jan 2003 03:37 AM |
|
1 Replies and 2453 Views
memory depletion and system halt (win ME) 2453 1
Started by Deleted User
Almost all the time, I end up with
no memory available and the system halted. At the
beginning, memory is not a problem. As time goes on, allocated memory increases even if I do not generate new variables. For example, I keep using 'print' or 'help'. Finally no free memory is available. When I run a huge program unknowingly, the system halts. Also windows multi-tasking becomes impossible.
Why does this happen I am using IDL 5.4 on Pentium III 700 MHz, 392 M RAM, 6Gb HDD.
|
|
|
|
1 |
2453 |
16 Dec 2002 09:15 PM |
|
0 Replies and 2223 Views
where function 2223 0
Started by Deleted User
I have written a procedure to find the background radiation in an image. I use sigmacutting to remove pixels with high values - often objects;
imfit = image ; this is the array used by ;sfit, to find a polynomial equation ;representing the ;background
im2 = image ; Image to be returned after removing the background radiation.
im3 = image
; Median-filter on im2 to remove bad pixels.
im2=median(im2,4)
; Same on imfit
imfit=median(imfit,5)
Here comes the problem:
res0 = sfit(im...
|
|
|
|
0 |
2223 |
16 Dec 2002 12:05 PM |
|
1 Replies and 2780 Views
Invalid numbers: Bug in where and finite 2780 1
Started by Deleted User
I just discovered that the following line
idx = WHERE(A&91WHERE(FINITE(A) EQ 1)&93 GT 13.0)
does NOT give the expected result:
print, a&91 idx &93
looks something like:
11.3799 11.7700 NaN 12.1800
12.3900 NaN NaN
The statement above (idx=where..) is by the way a _*direct*_ copy of an example in the online documentation for the 'where' function... (Hence the capital letters)
An easy workaround is of course to remove all
the Nan's:
nan_idx = where( finite(a) eq 0 )...
|
|
|
|
1 |
2780 |
11 Dec 2002 08:57 PM |
|
0 Replies and 2803 Views
CW_FORM 2803 0
Started by Deleted User
I developed a GUI using CW_FORM to build forms with several columns of buttons and test fields, but when I tested the software under different OS I realized that with some OS the forms built with CW_FORM are not aligned (i.e., the third button of the first column is lower than the third text field on the second column and the last button is muche lower than the last field). How could I fix that
thank you
|
|
|
|
0 |
2803 |
27 Nov 2002 11:35 AM |
|
1 Replies and 3631 Views
Problems getting CURVEFIT to work... 3631 1
Started by Deleted User
Hi there, I'm trying to use CURVEFIT to fit data to a decay function of the form:
f(x) = a(1-e^(bx))c
My code is as follows:
pro decayfunc, X,A,F,pder
bx=EXP(A&911&93*X)
F=A&910&93*(1-bx)A&912&93
if N_PARAMS() GE 4 THEN $
pder=&91&911-bx&93,&91-A&910&93*X*bx&93,&91replicate(1.0,N_ELEMENTS(X))&93&93
end
X=&9130185.0,33897.0,35089.0,35377.0,35665.0&93
Y=&910.3002,1.3849,1.3004,1.226,1.3118&93
A=&911.25,-1.0,-0.1&93
weight=&911.0,1.0,1.0,...
|
|
|
|
1 |
3631 |
12 Nov 2002 12:23 PM |
|
1 Replies and 3185 Views
Need a help 3185 1
Started by Deleted User
A two variale function(x,y) is need to integrate only with a single variable x. But we need to show how the integration prediction values change with the other variale y, for example, y changes from 0 degree to 90 degrees. Say, I need to integrate f(x,0),f(x,1),f(x,2),f(x,3), ...,f(x,90),respectively. Now, IDL's QROMB and QROMO cannot let us use a variable y chang. How can I do this bar Who can debar this guestion, please tell me a.s.a.p. My email: strayingbirdsina.com
|
|
|
|
1 |
3185 |
05 Nov 2002 01:25 PM |
|
0 Replies and 3051 Views
Aggregate multiple netcdf files 3051 0
Started by Deleted User
I am a new IDL user and I have a question :
I would like to analyse 30 netCDF files (same formats, for 30 consecutive years) as a single netCDF (and not ASCII) one, within IDL. Is there a way in IDL to aggregate multiple files into a single one (i.e. keeping netCDF format) or do I have to add the differents arrays within a loop
Thanks in advance
Brigitte Koffi
|
|
|
|
0 |
3051 |
22 Oct 2002 07:05 AM |
|
2 Replies and 3336 Views
XML parser for IDL 3336 2
Started by Deleted User
Rumor has it that IDL 5.6 will include an XML parser. Is this true This could seriously effect our decision about using the tool.
Thanks,
|
|
|
|
2 |
3336 |
03 Oct 2002 06:18 PM |
|
0 Replies and 2819 Views
Cluster analysis in IDL 5.4? 2819 0
Started by Deleted User
Hi,
Does anybody know if the CLUST_WTS and CLUSTER functions can be used in IDL 5.4 I looked in the help, and the syntax is outlined, but the .pro files aren't in the library. I noticed that these routines are heralded as 'new' in IDL 5.5.
Has the help been updated before the program itself! Any ideas gratefully received as to how I can run these routines without upgrading! :)
Thanks,
Martin
|
|
|
|
0 |
2819 |
27 Sep 2002 04:39 AM |
|
0 Replies and 3373 Views
IDL 5.6 and Unisys license 3373 0
Started by Deleted User
Hello,
Is there a release date yet for IDL 5.6
Any idea of the new features it will have
Also, I have heard there is a time limit
on the GIF license held by Unisys. Does that
mean in the near future I can go back to creating
GIF images
Thanks for your help.
-Andy
|
|
|
|
0 |
3373 |
20 Sep 2002 03:08 PM |
|