|
|
|
|
|
1 Replies and 1106 Views
read_ascii problem 1106 1
Started by Deleted User
Hello,
I use IDL8.0. Let's say I have
a=read_ascii(filename)
My filename doesn't matter, it's just an ascii file.
I get an error:
RA_READ_FROM_TEMPL: Unexpected Error: Keyword TNAME not allowed in call to: DATATYPE.
Has anyone seen this error before
Thanks in advance for your help,
|
|
|
|
1 |
1106 |
01 Aug 2012 02:08 PM |
|
3 Replies and 1842 Views
Conversion Error Message While Subsetting Image 1842 3
Started by Deleted User
Below is the code that we have written to pull the data from the Geo-referenced (lat/long based) subset of a full size image using an EVF. It is running, but returning the error message "Type conversion error: Unable to convert given STRING to Float. Detected at: ENVI_DATA_TYPE_WRITE". I'm not sure what I'm doing wrong here - any suggestions
PRO DrCrkRsz
COMPILE_OPT strictarr
;Restore all the base save files
ENVI, /restore_base_save_files
;Initialize ENVI and send a...
|
|
|
|
3 |
1842 |
30 Jul 2012 12:30 PM |
|
2 Replies and 868 Views
Python 3x faster at restoring .sav with large arrays 868 2
Started by Deleted User
I have recently come across a bottleneck with my application where the RESTORE procedure takes 6-7 seconds to restore 6 large arrays.
The arrays are each &914049, 2189&93 four of them are integers the other two are float.
My question to the IDL devs is why does this restore take so long I have tested the same restore with the readsav function from Pythons scipy library and the Python library was 3x faster. How is it that Python is faster at reading IDL's own file type Is there any plan...
|
|
|
|
2 |
868 |
29 Jul 2012 08:03 PM |
|
1 Replies and 1173 Views
IDL/ENVI Extract ROI in Batch Mode 1173 1
Started by Deleted User
In a previous post I asked about resizing Landsat images in batch mode. Thanks for all your help, I realized that I was perhaps taking the wrong approach. Mostly since the landsat images are not co-registered, so the DIMS keyword doesn't work.
Manually in Envi, this is what I do (and would like to get it into batch mode).
Open the image, use Basic Tools: Resize data (spatial/spectra): Select Spatial subset using map: enter lat-log of box corners
The other way I have done it is:
Open the im...
|
|
|
|
1 |
1173 |
27 Jul 2012 10:21 AM |
|
1 Replies and 1343 Views
Fastest way to find value in sorted list? 1343 1
Started by Deleted User
Hi Guys,
I'm wondering if someone can help me speed up my code. I'm basically looping through a large array and comparing values with two other large sorted arrays trying to find the value thats equal to or less than that value. I'm currently using a where procedure but I'm sure there has to be a faster way to search as I'm not looking for multiple values as the where finds, I'm just after one value. Anyway here is an example of my code:
For k = 0L, numDataElements-1 do b...
|
|
|
|
1 |
1343 |
27 Jul 2012 01:12 AM |
|
5 Replies and 1660 Views
Resizing Images in Batch Mode 1660 5
Started by Deleted User
I am a student, just getting started with IDL programming, and I am hoping to process a large amount of LANDSAT images with ENVI in a batch mode. By nature of LANDSAT files, they are very large, and take a long time to run through my program which retrieves statistics from the image. I am hoping to resize the image automatically , but am not sure/have been unable to find a command that allows me to do this.
Any suggestions
I am also having difficulties extracting the data to a .csv file. A...
|
|
|
|
5 |
1660 |
25 Jul 2012 11:25 AM |
|
1 Replies and 1031 Views
Is this a legitimate way of projection and subset 1031 1
Started by Deleted User
Hi all,
I need to subset a lot of images using another image (Let's just call it the reference image). I would like these images to have the same projection, extent, and exactly-matched pixels. The images to be subset have the same spatial resolution with the reference image. Here's my way of doing it. Please let me know if you think it's legitimate.
1. Get the file coordinates of the reference image, convert it to map coordinates, and then to lat/lon.
2. For each image to be subset, conve...
|
|
|
|
1 |
1031 |
24 Jul 2012 06:01 PM |
|
6 Replies and 1597 Views
Multispectral band error RasterToFID: Raster must be a single ENVIRaster 1597 6
Started by Deleted User
While executing:
file = {multispectral landsat metadata file *MTL.txt}
raster = envi.OpenRaster(file)
fid= ENVIRasterToFID(raster)
ENVI_DOIT, 'TMCAL_DOIT', FID=fid, /USE_METADATA
Gives error:
Invalid pointer: )>." The result may be invalid.
and while compiling says:
ENVIRASTERTOFID: Raster must be a single ENVIRaster.
Actually Landsat calibration is fine but it stops my script!
How to fix
Full code is here:
PRO ...
|
|
|
|
6 |
1597 |
24 Jul 2012 04:55 AM |
|
2 Replies and 1080 Views
IDL 8.0 Reference Guide 1080 2
Started by Deleted User
Hello,
I am an IDL beginner and I have been referred to the IDL Reference Guide (I'm following Bowman's Intro to Programming and he refers to it a lot). I have been able to find the .pdf Reference Guide for older versions of IDL (5.4) but nothing for more recent versions. I've read online that IDL 8.0 didn't include all the old help documentation when it first came out, but this is all from 2010.
Does anyone know if a Reference Guide exists for 8.0, and if so where I could download it If not...
|
|
|
|
2 |
1080 |
23 Jul 2012 03:01 PM |
|
1 Replies and 1329 Views
Max Per Pixel of a Layerstack or aet of images? 1329 1
Started by Deleted User
Hi,
Im trying to write an IDL code that goes through either a set of images or a layerstack pixel by pixel and looks for the maximum value and records that to a new file. I understand how to use basic IDL code like for loops and work with arrays but im still very new to IDL. Just to reiterate and try to make clear i have 27 input images and want to find the maximum value per pixel of whole set and creata a maximum image.
Thanks for the help.
|
|
|
|
1 |
1329 |
23 Jul 2012 12:43 PM |
|
2 Replies and 1251 Views
DLM WITH VS2008 1251 2
Started by Deleted User
HELLO,EVERYONE ! I met this problem really annoys me! Hoping some good guy can help me! I followed the EXAMPLE ON book 'calling c from IDL', I test it on vc6.0,then it worked! but when I try to do it the same way on vs2008 ,then it always give the message as follows:
IDL> simpleProcedure
SIMPLEPROCEDURE: Error loading sharable executable.
Symbol: IDL_Load, File = D:\Program Files\ITT\IDL71\bin\bin.x86\simpleExample.dll
Õ»µ½¶¨µÌÐò¡£
Execution halted at: $MAIN$
Can anybody...
|
|
|
|
2 |
1251 |
21 Jul 2012 05:05 AM |
|
0 Replies and 1091 Views
DLM WITH VISUALSTUDIO 2008 1091 0
Started by Deleted User
i followed the example on the book "calling c from IDL" .I test it on the vc6.0 then it succeed! But when I try to use the same way on platform vs2008 ,then it didn't work! It always give the error tips as follows:
IDL> simpleProcedure
SIMPLEPROCEDURE: Error loading sharable executable.
Symbol: IDL_Load, File = D:\Program Files\ITT\IDL71\bin\bin.x86\simpleExample.dll
Õ»µ½¶¨µÌÐ&og...
|
|
|
|
0 |
1091 |
21 Jul 2012 04:54 AM |
|
1 Replies and 1133 Views
trying to read .ptw files 1133 1
Started by Deleted User
I have some data in .ptw files which I want to read in using IDL. Does anyone know of an IDL function which will do that I cannot find a definition of that format.
Thanks.
Robert Fusina
|
|
|
|
1 |
1133 |
19 Jul 2012 09:44 AM |
|
0 Replies and 1248 Views
hash, Unable to allocate memory? 1248 0
Started by Deleted User
Hi guys:
I have the fellowing code with IDL 8.2 in 32bit windows 7.
IDL> dstruct = {data:fltarr(&91161, 111, 1, 1, 41, 51&93)}
IDL> help,dstruct.data
FLOAT = Array&91161, 111, 1, 1, 41, 51&93
Above code is ok. But when I use hash,
IDL> d=hash()
IDL> d&91'dstruct'&93 = temporary(dstruct)
IDL> help,d&91'dstruct'&93.data
Unable to allocate memory: to make array.
Not enough space
Execution halted at: $MAIN$
As you see, I use temporary, which not...
|
|
|
|
0 |
1248 |
17 Jul 2012 10:05 PM |
|
3 Replies and 1141 Views
about vector scale 1141 3
Started by Deleted User
Hi guys:
I use vector function to plot wind. The wind magnitude is between 0 and 32m/s. So the large wind speed vector has long length arrow, but smaller wind spedd vector just show arrow head. How do I reduce this length scale difference.
dave
|
|
|
|
3 |
1141 |
17 Jul 2012 08:03 PM |
|
0 Replies and 1107 Views
about vector scale 1107 0
Started by Deleted User
Hi guys:
I use vector function to plot wind. The wind magnitude is between 0 and 32m/s. So the large wind speed vector has long length arrow, but smaller wind spedd vector just show arrow head. How do I reduce this length scale difference.
dave
|
|
|
|
0 |
1107 |
17 Jul 2012 08:03 PM |
|
2 Replies and 1074 Views
POLYLINE: Unable to concatenate variables 1074 2
Started by Deleted User
Hi guys:
I have the fellowing code with IDL 8.2 windows, but get error
x = &9190.44,91.00,92.00,93.00,94.00,94.51,95.00,96.00,97.00,98.00,99.00,100.00,100.89,101.00,101.80,150.00,149.00,148.47,$
148.00,147.00,146.47,147.00,147.54,148.00,148.04,149.00,149.37,150.00,85.00,84.23,84.00,83.96,84.00,85.00,85.23,$
85.40&93
y=&9155.00,54.19,54.22,54.49,54.07,54.00,53.88,53.32,53.40,53.37,53.32,53.60,54.00,54.05,55.00,53.68,53.79,54.00,$
54.29,54.34,54.00,53.59,53.00,52.06,52.00,51.34,51...
|
|
|
|
2 |
1074 |
17 Jul 2012 01:45 AM |
|
0 Replies and 1102 Views
What's Wrong I am doing Using FORMAT 1102 0
Started by Deleted User
Hi All!
I am going out of head reading a formatted text file, it should not be a problem, but I am having strange issues:
this is the file test ( I add a ruler ) I need to read the underlined value:
AAA 2921.5 0.0000000.296018145670195E08..............................
--------0--------0--------0--------0--------0--------0......
AND THIS IS THE CODE
a=0.00000000000000000000000E00
e=0.00000000000000000000000E00
i=0.00000000000000000000000E00
omega=0E00
frase=''
...
|
|
|
|
0 |
1102 |
16 Jul 2012 11:30 AM |
|
2 Replies and 1123 Views
Blank of vector plot over Stereographic map projection! 1123 2
Started by Deleted User
Hi guys,
I run the fellowing code with windows IDL 8.2:
; Read the data.
RESTORE, FILEPATH('globalwinds.dat', SUBDIR=&91'examples','data'&93)
mp_bg = MAP('Stereographic', $
CENTER_LONGITUDE=110, $
CENTER_LATITUDE=90)
vec = vector(u, v, x, y, /overplot, GRID_UNITS=2)
But there is a blank area between 60W to 180W. So why
|
|
|
|
2 |
1123 |
15 Jul 2012 08:48 AM |
|
4 Replies and 939 Views
Looping procedures? 939 4
Started by Deleted User
Hi there,
I am new to IDL so please bear with me if I am asking something silly. I have tried to search through the help files and the internet but cant seem to find what I am looking for.
I would like to know if there is a way to wrap a bunch of procedures in a loop for ex.
for a =1,n_elements(number_input_files) do begin
pro 1
pro 2
pro 3
endfor
I did try the above and (of course) it didnt work. I understand .pro have to be self contained by the keywords 'pro' and 'end'....
|
|
|
|
4 |
939 |
12 Jul 2012 07:49 AM |
|