|
|
|
|
|
0 Replies and 1190 Views
Problem to create grib index file? 1190 0
Started by Deleted User
Hi, guys:
I have some problems for creating grib index file. My enviroments are windows 7 32bits and IDL 8.3.
1, In help documents, GRIB_INDEX_WRITE's syntax is :
GRIB_INDEX_WRITE, Filename, Gindex
but when call it and get the fellowing error:
GRIB_INDEX_WRITE: String expression required in this context: GINDEX.
Finally, I think the correct one is:
GRIB_INDEX_WRITE, Gindex, Filename
2, I use the fellowing code to create hunderds of grib index files:
FOR i=0, n_elements(filenames)-1 DO...
|
|
|
|
0 |
1190 |
12 Apr 2014 09:19 PM |
|
4 Replies and 1030 Views
crash when calling GRIB_GET_VALUES 1030 4
Started by Deleted User
hi,
when i tried to get an array of values from a grib2 file using GRIB_GET_VALUES, the IDL crashed with a short message "/usr/local/exelis/idl83/idlde/bin.linux.x86_64/jre/bin/java: symbol lookup error: /usr/local/exelis/idl83/bin/bin.linux.x86_64/idl_grib.so: undefined symbol: jas_stream_memopen".
why did this happen
thanks in advance!
ps:
machine information: centos linux 6.5 64bit, idl8.3 64bit
|
|
|
|
4 |
1030 |
09 Apr 2014 07:25 AM |
|
2 Replies and 1503 Views
Georeference from IGM in IDL 1503 2
Started by Deleted User
Hi,
I would like to use IDL to batch process files from a data collection. In ENVI, I use the "Georeference from IGM" command and then "Save As Tiff" to write the resulting georeferenced image as a GeoTiff file. How do I call these two ENVI commands from IDL
Thanks,
Keith
|
|
|
|
2 |
1503 |
08 Apr 2014 07:43 PM |
|
2 Replies and 1224 Views
Reading in file and performing calculations 1224 2
Started by Deleted User
Hi,
Forgive me, but I'm very very new to programming and was hoping for some guidance. Using this script: http://idlastro.gsfc.nasa.gov/ftp/pro/astro/gcirc.pro, I can calculate the distances between two objects given the Right Ascension and Declination for star 1 and star 2. There are roughly 150 different stars I need to do this for, so I was hoping there is a way I can read in a file that contains the coordinates for all the stars and perform the distance calculation in a loop. The RA and Dec ...
|
|
|
|
2 |
1224 |
07 Apr 2014 05:57 PM |
|
2 Replies and 1244 Views
Commenting a range of lines in a code 1244 2
Started by Deleted User
Dear IDL Users,
I would like to be able to comment out a range of lines in a code with a single entrances (at the end and at the beginning of the range). There are utilities like "toggle comment" but I am wondering, is there a way other than putting ; in front of every line
Thanks, - NG
|
|
|
|
2 |
1244 |
07 Apr 2014 07:53 AM |
|
1 Replies and 1432 Views
averaging the rainfall in netcdf files 1432 1
Started by Deleted User
In my code below, I am having difficulty figuring out a way to sum up rainfall numbers from multiple netcdf files. I need to sum up averages for months, years, and certain hours of the day (00Z,03Z,06Z, and so on). Im not sure what type of coding i should use to sum up the rainfall regimes of a certain area using the rainfall array in the netcdf file. Could anyone give me a possible suggestion Thank you for your time and help.
pro january_files
latmax = 3 & latmin = -3
lonmax = 3...
|
|
|
|
1 |
1432 |
04 Apr 2014 02:49 PM |
|
1 |
1215 |
04 Apr 2014 11:35 AM |
|
2 Replies and 1769 Views
"ENVI_GET_DATA" not returning the number of bands that i specify 1769 2
Started by Deleted User
;Though the POS keyword is input with an array of more than 1 band ; the output "data" array receives only 1 band. Hoping for a few suggestions!
fname = 'E:\puneeth_CONTD\hyperion\subsetdata\iarr & logres subset\lower_vajr_IARR'
envi_open_file, fname,r_fid=fid
if (fid eq -1) then return ; return ifthe file is invalid
envi_file_query, fid,dims=dims, nb=nb
a= CALL_FUNCTION('wavelength_selector', nb); wavelength range "I'm interested in band 124 to 157"
b=a-1
a=indgen(NB)
a=a&...
|
|
|
|
2 |
1769 |
04 Apr 2014 07:23 AM |
|
1 Replies and 1374 Views
[SOLVED] Error bars extend beyond the plot using pl=errorplot(); plot unresponsive 1374 1
Started by Deleted User
I am using the pl=errorplot(x,y,xe,ye) command to plot an x,y graph with x and y errors. Unfortunately, the error bars extend beyond the edge of the graph. Is there someway to truncate them like in the Direct graphics system
Secondly, when I use the errorplot and plot graphics functions, sometimes they are responsive (they can be resized or closed, for example), and sometimes they are not (one needs to use pl.close to close the window, for example). Why does this happen
Thanks,
Scott
|
|
|
|
1 |
1374 |
03 Apr 2014 05:59 PM |
|
4 Replies and 1123 Views
output to console as line 1123 4
Started by Deleted User
Hello,
I have a very simple (I think) problem that I can't seem to figure out. I have an array with numbers (lake depths) and want to calculate the difference from each element to all the others and output that ideally as a table or at least as lines in the console. I created the following program with a nested loop that does the correct calculations, but it outputs the results as columns, and I want them one element at the time with the differences output horizontally (e.g. in one line).I want ...
|
|
|
|
4 |
1123 |
03 Apr 2014 08:25 AM |
|
3 Replies and 1306 Views
Legend in plots with symbols 1306 3
Started by Deleted User
Hi, I include legend in my plots using aa=legend(...). When my plots have only symbols, the legend contains three symbols for each line. Is it possible not to triplicate the symbols in the legend ie, I want only one symbol appearing in the legend, for each symbol type of my plot.
Thank you!
|
|
|
|
3 |
1306 |
03 Apr 2014 05:11 AM |
|
1 Replies and 1474 Views
[SOLVED] IDL-Java bridge heap size 1474 1
Started by Deleted User
Hi.
How to increase java heap size in IDL-Java bridge.
Options in the idljavabrcr-file doesn't works:
JVM Option1 = -Xms1024m
JVM Option2 = -Xmx4096m
Any suggestions
Thanks.
|
|
|
|
1 |
1474 |
02 Apr 2014 11:22 PM |
|
3 Replies and 1351 Views
Wrong result in multiplication 1351 3
Started by Deleted User
Hello,
IDL generates a wrong multiplication between two numbers. The sentence is:
print, 1366 * 24
IDL generates: - 32752
If we try with a number greater than 1366 that multiplicates 24, IDL will always generate a wrong number.
Thanks for your help.
|
|
|
|
3 |
1351 |
02 Apr 2014 08:33 AM |
|
1 Replies and 1099 Views
how to display images with fillvalue or NaN with IMAGE function??? 1099 1
Started by Deleted User
I have a 2-D data, with valid range &91-20.2,709.2&93,fillvalue=-100. Is there any keyword for Image function to control the display of the fillvalue, eg. fill the fillvalue pixels with white color, and display the other valid values with a continuous color table.
|
|
|
|
1 |
1099 |
30 Mar 2014 11:36 AM |
|
2 Replies and 1233 Views
Handling big data cubes 1233 2
Started by Deleted User
Hi,
I have ~5000 1024x1024 image arrays I'd like to hold in a data cube. A good percentage of the pixels (maybe 30) are data that I don't care about. Subsequently, I'm going to be extracting various statistics that drill down the longest dimension of the cube (i.e. the temporal direction). What's the most memory efficient way to handle this Is there a trick with sparse arrays
More generally, perhaps: How do other folks handle large time-series data cubes in IDL without simply throwing more ...
|
|
|
|
2 |
1233 |
23 Mar 2014 08:30 AM |
|
1 Replies and 1476 Views
Help on time array loop 1476 1
Started by Deleted User
My code following my message here is messing up on creating a time series for my 3hr daily rainfall trmm net-cdf data that i am reading into IDL. It is only looping the years from 1998-2013 and the first 6 months 1-6. Basically I am trying to create my time array during each loop so it corresponds to the net-cdf file time. For an example a file name is: 3B42.19980101.00.7 this represents January 1, 1998 00Z time for the file. I know its my time array and how its taking in each variable, but I a...
|
|
|
|
1 |
1476 |
20 Mar 2014 03:13 PM |
|
1 Replies and 1051 Views
Specific histrogram generation 1051 1
Started by Deleted User
Hi everyone,
I have a script that will run through a bunch of images and generate stats and histograms values for each image. I'm looking to speed this process up since it is quite slow. I'm really only interested in 2 histogram values: 0 and the highest histogram value (differs depending if 8-bit or 16-bit image). Is there anyway that I could get ENVI/IDL to only give me these values to speed things up Thanks in advance
|
|
|
|
1 |
1051 |
20 Mar 2014 09:17 AM |
|
1 Replies and 1403 Views
IDL_IDLBRIGDE problem 1403 1
Started by Deleted User
I'm try to run a 'for' in 4 processors using split_for.pro but i couldn't because idl send me this message:
Loaded DLM: IDL_IDLBRIDGE.
IDL_IDLBRIDGE Error: Unsupported parameter type: IDL_TYP_UNDEF
Execution halted at: SPLIT_FOR 162
I send you split_for.pro
|
|
|
|
1 |
1403 |
19 Mar 2014 02:05 PM |
|
2 Replies and 1266 Views
can&39;t oplot shifted multiple plots 1266 2
Started by Deleted User
I want to plot xx, vs. yyy to see if the function varies.
I plot first yyy : iplot, xx, yyy&911,*&93 , where * means all values in the row 1. I need yyy&912, *&93 to be shifted by 20. , I wrote so:
.run
for i=1, 3 do begin
iplot, xx, yyy&91i,(*20)&93, /overplot, $
LINESTYLE=2
end
end
and it gives me syntax error in this line: iplot, xx, yyy&91i,(*20)&93
Can anyone help me with it how to write second argument for yyy (instead of (*20)
Thank you in advance
|
|
|
|
2 |
1266 |
17 Mar 2014 08:31 AM |
|
3 Replies and 1301 Views
PLOT object - can&39;t overplot in multigraphics after changing current index 1301 3
Started by Deleted User
HiI have a question regarding PLOT object, specifically the OVERPLOT keyword and how to use it when having mutliple graphics, i.e using INDEX keyword. I want to plot a 2 by 3 2D-plot graphics with three graphs for each plot.The values are collected from an external file and I currently retrieve the data in such a way that I would like to plot one graph in each plot index position before moving on to the next set of six graphs and so forth. The first six graphs are plotted in their specific posit...
|
|
|
|
3 |
1301 |
10 Mar 2014 04:30 AM |