Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
329 views

I am using IDL workspace but unable to get started because I get the error below. Note that I can work in the console without any error. I am new to IDL and I would appreciate if anyone can help me ...
User2010's user avatar
0 votes
1 answer
49 views

In the penultimate eighth line of the following procedure: FUNCTION plant_growth, n_months, initial_plants, pick_strategy N = LONARR(n_months + 1) M = LONARR(n_months + 1) N[0] = ...
Huang Jeff's user avatar
0 votes
1 answer
85 views

I want to plot a 2-D matrix as a pseudo-color figure in IDL, just like the function pcolor in matlab. I know the function image can do that, but I hope it can generate IDL Graphics like the plot, ...
Albert Luo's user avatar
0 votes
1 answer
182 views

I am working on a project where we use Azure stack for data engineering and analysis. The main component for computation is Azure Databricks in which most of the code is written in python code. ...
Antony's user avatar
  • 1,128
0 votes
1 answer
87 views

IDL (v8.6) takes a long time to start (minutes) even for plain start (idl -IDL_STARTUP ""). It quickly prints IDL 8.6.1 (linux x86_64 m64). (c) 2017, Exelis Visual Information Solutions, Inc....
Friedrich -- Слава Україні's user avatar
0 votes
1 answer
708 views

I'm trying to run a .pro file on IDL, I opened the file in IDL, but I cannot input anything at the consoleenter image description here I'm using IDL on ubuntu. Is it because the environment isn't set ...
Ian's user avatar
  • 71
0 votes
1 answer
100 views

I am brand new to IDL, and find that the documentation online is lacking in comparison to other languages. This is also my very first post on stackoverflow, so I will do my best to include the proper ...
sufferinggradstudent's user avatar
0 votes
0 answers
42 views

dist(n) generates a (n x n) matrix of elements. Each element is the straight-line "distance" from either element [0, 0] or the element just beyond another corner, whichever is closest. I'm ...
SatraLim's user avatar
-1 votes
1 answer
112 views

Since I have no experience in IDL coding, I need help converting the piece of code below to python. The following parameters are known and are 1D arrays oder scalars. IDefScaleSondNbScale, ...
Shaun's user avatar
  • 541
0 votes
1 answer
149 views

Please does anyone know how to convert the following python script to IDL, hours = list(Timed) start_date = datetime(year=1800, month=1, day=1, hour=0, minute=0, second=0) days =[] Months =[] Years =[...
TThoye's user avatar
  • 15
0 votes
1 answer
230 views

I am trying to automate a code in IDL that takes a few .dat files created and reads them into an array. Each of these files has 4 columns but a different number of rows, and I am not sure how to set ...
Payton Bartz's user avatar
0 votes
1 answer
2k views

I have to convert some code from IDL to Python as a part of a project. The problem is that to convert it I need to learn IDL first and I can't seem to find a compiler for it nor can I find any ...
SMA's user avatar
  • 11
1 vote
1 answer
261 views

I was wondering if someone knew how to add more values to a structure variable in IDL? For example, if we have the structure 'struct' struct = {structname, x:[1,2,3], y:[10,11,12]} And I specifically ...
Sky S's user avatar
  • 11
0 votes
1 answer
251 views

I would like to overplot a single fieldline at some radius or starting point, onto a contour of a magnetic field model without using the streamline function. For example, here are the cartesian ...
freja's user avatar
  • 79
-1 votes
2 answers
294 views

I was wondering how to divide two arrays a = [1,2,3,4,5] b = [2,4,6,8,15] to get a/b = [0.5,0.5,0.5,0.5,0.3] Thanks in advance for the help.
Francesco Azzollini's user avatar
0 votes
1 answer
47 views

I am trying to calculate correlations for chosen intervals and then save the calculated correlations into an array to save them. But I was not succesful to safe the results after every iterration. My ...
user avatar
0 votes
1 answer
414 views

I'm trying to make a contour plot in IDL of quantity described by and equation, which here I'll take to be x^2 + y. In order to do that, I first need to create a 2D array ("pxx"). Being a ...
Francesco Azzollini's user avatar
0 votes
1 answer
2k views

I installed GDL, the IDL alternative, to run some IDL code for my project. But when I try to call plot function in GDL it gives the following error and exits: *(gdl:1003695): Gtk-WARNING *: 22:57:44....
Jyothis Chandran's user avatar
1 vote
1 answer
286 views

How to write text in graphs partially in italics, please? For instance, here: x = 0.01*(FINDGEN(201)) p1 = PLOT(x, EXPINT(1, x), '2', YRANGE=[0,2]) p2 = PLOT(x, EXPINT(2, x), 'r2', /OVERPLOT) p3 = ...
Elena Greg's user avatar
  • 1,205
0 votes
1 answer
228 views

I am trying to run IDL I will attach it bellow code in python, I have tried idlmagic but nothing seems to work, is there maybe a different environment I should use? import idlpy wdir5='/C:/Users/...
Alucard's user avatar
0 votes
1 answer
137 views

I am trying to calculate square root of a large dimension matrix using IDL but failed. Any solution or tips would be highly appreciated.
Orpheus's user avatar
  • 339
0 votes
0 answers
278 views

Using a shell the following command works: idl -e 'eventtester, "TEST123", config_file="path/to/configuration.ini"' But when it is run from python through pipes = subprocess.Popen('...
lorcalhost's user avatar
0 votes
1 answer
1k views

idl 8.4 introduced the lambda function. I have IDL 8.6.1 and the lambda function does not fully work as documented: IDL> f = lambda(x : x * x) IDL> print, call_function(f, findgen(10)) 0....
Friedrich -- Слава Україні's user avatar
1 vote
0 answers
321 views

How do I get the X-range of the "current" graphics object? For example lets assume I create a single plot window: p = plot(/test, xrange=[10,35]) Now, without using the reference to p how ...
jitter's user avatar
  • 397
2 votes
1 answer
201 views

I am having difficulties getting text to display correctly from an IDL plot once I save to postscript. Code is something like, p1=plot([0,1],[4,5],thick=2,line=0) p1.xtitle='Time' p1.font_name='Times' ...
CoryD's user avatar
  • 21
0 votes
1 answer
243 views

The SPLINE function in IDL allows for cubic interpolation on data (with at at least 3 data points). While the Scipy library in Python can perfomr similar computations with the UnivariateSpline and the ...
Swike's user avatar
  • 191
0 votes
1 answer
157 views

I have plotted a graph that contains a trig function. Instead of having the x-axis be in radians, I would like it to be in degrees. It's a simple task of multiplying the displayed x-axis values by 180/...
Bereket's user avatar
  • 55
1 vote
2 answers
478 views

I am trying to plot individual data points on a line plot I already made as follows: p=plot('3.29*exp(-17.4*(x^2))-0.908',xrange=[0.,1.],yrange=[-1.,1.5]) I first tried overplotting a point like this ...
Bereket's user avatar
  • 55
0 votes
1 answer
570 views

I am trying to read from a file a bunch of hex numbers. lines ='...
bruvio's user avatar
  • 1,153
0 votes
1 answer
152 views

I have to assign 24 titles on 24 graphs with different values and values has a specific interval, how can I create these titles while creating multiple graphs with multiple-valued titles and how to ...
Muhammad Muzammil's user avatar
0 votes
1 answer
2k views

I have a plot that I have created as such using a vector c hist_c=histogram(c,binsize=0.002,locations=locs_c,min=0.000,max=1.000) pdf_c=float(hist_c)/n_elements(c) ppdf_c=plot(locs_c,pdf_c,xtitle='c',...
Bereket's user avatar
  • 55
0 votes
1 answer
201 views

I have an array of floats or doubles lets call it foo. When I do size(foo) I get these 5 dimensions 2 67 52100 4 3498338 I would like to convert it to a string like ...
user2175783's user avatar
  • 1,496
0 votes
1 answer
462 views

I have a vector containing values and I would like to draw a probability density function (PDF) graph for the values contained. Let's say I have a vector given by b=[1,1,3,4,5,2,3,5,1,4,2,4,1,1,4,2,3,...
Bereket's user avatar
  • 55
0 votes
1 answer
392 views

My IDL installation (currently v.8.7.2, but the same problem occurred in v.8.5) does not recognize hash, list, dictionary and orderedhash. For example, typing h = HASH('Id', 1234) results in the ...
N_Z's user avatar
  • 71
1 vote
1 answer
1k views

Background According to L3Harris, to check the version of IDL you are using, you have to check the /usr/local/ directory as follows: Linux, Solaris, Mac OS X On Linux, Solaris and Mac, you can ...
isakbob's user avatar
  • 1,559
0 votes
0 answers
50 views

I am getting the error Unable to allocate memory: to make array when I try the following: ; A is an array ind = WHERE(A GE 1) A = A[ind] Was wondering what I can do to free up memory? I tried A = ...
laserfart's user avatar
0 votes
1 answer
82 views

I'm struggling with setting a y(x) condition that varies with x range. As an example below, the code wants to plot y=x between x=0 and x=5.1; otherwise y=2x. Upon compilation, the code spits out the ...
SofaScientist's user avatar
0 votes
0 answers
338 views

I am working on a port of some IDL code to Python (3.7). I have a translation working which uses whatever direct Python alternatives are available, and supplementing what I can with idlwrap. In an ...
messenger's user avatar
0 votes
2 answers
203 views

I am trying to find all indices in an array A, where the value larger than time0 and less than time1. In matlab I can do: [M,F] = mode( A((A>=time0) & (A<=time1)) ) %//only interested in ...
colddie's user avatar
  • 1,059
0 votes
1 answer
91 views

I have an image array with dimensions [491,710,710]. For example. I want to delete the 25th and 30th images from this image. How can I do that ? restore, 'C:\Users\User1\Desktop\TEZ\SUNSPOT_3_Crop\...
Burak Karslıoğlu's user avatar
3 votes
2 answers
2k views

In MATLAB™ one can use cplot.m which can generate colored plot basically looks like 2d plot with 3rd axis (z-axis) value as colorbar. Is there any tool/plotting technique I can use to generate a ...
Pavan's user avatar
  • 41
0 votes
2 answers
2k views

I have been tried to write 8 columns in a CSV file by using IDL, but seems the maximum columns that I can wrote is 7? IDL> write_csv,ffout,date_time,tmin_tmax,precp,wind,rh,sun_hrs,glb_rad,net_rad ...
Hui's user avatar
  • 1
-1 votes
1 answer
235 views

I want to clip/mask raster image (500meters resolution) by another raster images (10 km resolution) using IDL Programming after the clip/mask process image should be in 500 meters resolution. I have ...
Bijoy Krishna Gayen's user avatar
0 votes
1 answer
92 views

The scaling for axes X,Y and Z that I specify in the procedure scale3 is overridden. I don't understand why? Could someone point out what is wrong with my code? The width of a box is n1/2-1(~128 ...
Simon Ranjith's user avatar
0 votes
2 answers
338 views

I am trying to write a loop to process daily data for a whole month. My code works when manually doing 1 day at a time, but something about my loop is failing when i try to loop through every day of ...
SofCh's user avatar
  • 19
0 votes
1 answer
370 views

I have an array with several files in it. And i want to loop through these files. For each file i want to run a command. result = [rtlvis_20190518_13.35.48_00001.bin, rtlvis_20190518_13.35.48_00002....
ColleenB's user avatar
  • 185
0 votes
0 answers
140 views

I am using pidly, and i would like to transfer a variable from python into IDL import pidly traj = 'test.traj' idl = pidly.IDL() idl('trajfile = "{0}".format(traj)') I just want to be able to use the ...
ColleenB's user avatar
  • 185
1 vote
1 answer
1k views

I'm new to IDL and trying to read multiple binary data files from a certain folder and write them in a text format to a certain folder all at once. I currently have a code that reads and writes only ...
Japhtaline Mamabolo's user avatar
1 vote
1 answer
2k views

I have a file in IDL, I import it to Python using readsav from scipy, I change a parameter in the file and I want to export / save it back to the original format, IDL readable. This is how I import ...
T. Silva's user avatar
  • 155
0 votes
1 answer
2k views

I am writing this in IDL. I want to pass a list of numbers in array x that goes through function y, where then all y values go into an array z, that will be plotted x vs. z. I have tried to solve ...
Nicole I.'s user avatar

1
2 3 4 5
7