Description:
IDL and PV-Wave language discussions.
|
|
|
calling ANSYS Fluent from IDL
|
| |
I need to run ANSYS Fluent by calling it from IDL and I am finding no information on how to do this. The objective is to run a monte carlo routine in IDL with inline code that runs several Fluent simulations in a loop. If anybody in the group has any experience with this I would appreciate the help.... more »
|
|
Speeding up xy distance calculations using complex numbers
|
| |
This may be well known to many people, but I just discovered that in IDL, you can greatly speed up x,y distance calculations using complex numbers to represent positions in the xy plane, in some cases.
The example below takes you through four nominally identical calculations in which we define a square array of x and y values (or complex z=x+iy values), and for each point, compute the square of the (dx^2 + dy^2) distance form a given point, p=(x,y) or zp=x+iy. For the complex calculations I use d * conj(d). I think that's the fastest available way of doing this.... more »
|
|
overlap of two polygons
|
| |
Hello
What i have is set of rois defined over 1024x 1024 image. So for finding whether two different rois (ROI1 & ROI2) from two different image cover same region of CCD image plane I can use :
ROI1 -> GetProperty, data=a
result(k)=ROI2 -> ContainsPoints(a[0,k],a[1,k])
This way i can figure out whether two rois have overlapping region or not.... more »
|
|
strictarrsubs in IDL 8.1
|
| |
Hi,
I have the following in my .idlstartup:
compile_opt strictarrsubs
However, I can subscript arrays in 8.1 with [-1], for instance. If I remember correctly, the compile_opt statement in earlier versions of IDL meant I would get an error for a [-1] subscript. Am I misremembering, or has something changed?... more »
|
|
A function to locate values... without using histogram
|
| |
I am writing this just to share on the solution I wrote to a problem I
encounter frequently: Locating all occurrences of each different value
contained in an array. Often this happens when I am working with
database-like operations, when I have tables (arrays of structures)
and need to do what would be the equivalent of several call to... more »
|
|
graphical issue after removing all tabs from a widget_tab
|
| |
I've created a tab bar using widget_tab and added several tabs to it. If I remove a tab, all the others shift over as expected. However, if I remove all the tabs and then add some new ones, the new tabs overlap unnaturally. Here's a picture of what I'm talking about:
Before: [link]... more »
|
|
Data points off plot when limit xrange
|
| |
Hello,
I am plotting a 2D dataset using cgplot and cgplots. When I limit the xrange to [-150,150] I end up with data points plotted outside the axis bounds of my plot. I realize that I'm cutting off some of the data but my interest is in the data surrounding 0, not the outliers. How do I limit the xrange so that those outlier datapoint outside of the range not to plot outside of my axis? Thank you.... more »
|
|
how to use mpfit fitting routine
|
| |
Dear All,
I have an observed spectrum in which I have wavelength (Wo) and flux (Fo). I want to compare that with the 200 different synthetic spectrum in order to obtain the best free parameter. I want to use MPFIT routine for that. I have gone through their webpage but It seems very complicated to me to use. Does anyone know how to use to fit the spectrum.... more »
|
|
multiple polylines
|
| |
I've set up an object graphics model to show a vector field on an irregular 3d surface. The vector field is drawn with, say, 1000 polyline objects. I want to make an animation of this model as the field and surface change.
As it is, I'm going to need to update each polyline object for each frame. It should work, but likely won't be very fast. I see in the polyline property list there's something called "polylines" (with an 's') as well as "label_polylines". From what I can glean from the documentation, these seem to suggest that it might be possible to put all my polylines into a single object, which would likely make them easier to update all at once. Does anyone know how that works? How do you provide the data for a polyline with breaks in it?... more »
|
|
IDL environment "idlde" doesn't work
|
| |
Hi,
I have tried to run the idl environment "idlde" in ubuntu 12.04, but when i execute the command idlde I obtain this message:
/usr/local/itt/idl/bin/idlde: 609: exec: /usr/local/itt/idl706/idlde/id lde.linux.x86: not found
I have cheched and I have the file "idlde.linux.x86" in the same location "/usr/local/itt/idl706"... more »
|
|
|