X
Search this forum:
Search
You are not authorized to create a new topic
Page 49 of 126 << < 4748495051 > >>
Topics
 Replies
 Views
 Last Post
2 Replies and 1033 Views Problem with MCTK extracting MODIS LST (MOD11A1)  1033  2 Started by  Deleted User Hi I ran the code according to MCTK manual for MOD11A1 file, but it displays the error as "attempt to subscript NUM_DIMS_ARRAY with VALID_SDS is out of range ". The Code is: pro test_batch_modis_conversion_grid compile_opt idl2 modis_grid_file = 'C:\MOD11A1.A2008336.h25v06.005.2008337232328.hdf' output_location = 'C:\output\' output_rootname = 'lst_day' grid_name = 'MODIS_Grid_Daily_1km_LST' sd_names = &91'LST_day_1km'&93 out_method = 1...
2 1033
01 Aug 2012 10:59 PM
1 Replies and 1214 Views read_ascii problem  1214  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 1214
01 Aug 2012 02:08 PM
3 Replies and 1989 Views Conversion Error Message While Subsetting Image  1989  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 1989
30 Jul 2012 12:30 PM
2 Replies and 1010 Views Python 3x faster at restoring .sav with large arrays  1010  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 1010
29 Jul 2012 08:03 PM
1 Replies and 1303 Views IDL/ENVI Extract ROI in Batch Mode  1303  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 1303
27 Jul 2012 10:21 AM
1 Replies and 1489 Views Fastest way to find value in sorted list?  1489  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 1489
27 Jul 2012 01:12 AM
5 Replies and 1888 Views Resizing Images in Batch Mode  1888  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 1888
25 Jul 2012 11:25 AM
1 Replies and 1172 Views Is this a legitimate way of projection and subset  1172  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 1172
24 Jul 2012 06:01 PM
6 Replies and 1722 Views Multispectral band error RasterToFID: Raster must be a single ENVIRaster  1722  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 1722
24 Jul 2012 04:55 AM
2 Replies and 1235 Views IDL 8.0 Reference Guide  1235  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 1235
23 Jul 2012 03:01 PM
1 Replies and 1464 Views Max Per Pixel of a Layerstack or aet of images?  1464  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 1464
23 Jul 2012 12:43 PM
2 Replies and 1416 Views DLM WITH VS2008  1416  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 1416
21 Jul 2012 05:05 AM
0 Replies and 1215 Views DLM WITH VISUALSTUDIO 2008  1215  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 1215
21 Jul 2012 04:54 AM
1 Replies and 1286 Views trying to read .ptw files  1286  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 1286
19 Jul 2012 09:44 AM
0 Replies and 1409 Views hash, Unable to allocate memory?  1409  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 1409
17 Jul 2012 10:05 PM
3 Replies and 1287 Views about vector scale  1287  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 1287
17 Jul 2012 08:03 PM
0 Replies and 1232 Views about vector scale  1232  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 1232
17 Jul 2012 08:03 PM
2 Replies and 1206 Views POLYLINE: Unable to concatenate variables  1206  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 1206
17 Jul 2012 01:45 AM
0 Replies and 1259 Views What's Wrong I am doing Using FORMAT  1259  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 1259
16 Jul 2012 11:30 AM
2 Replies and 1256 Views Blank of vector plot over Stereographic map projection!  1256  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 1256
15 Jul 2012 08:48 AM
You are not authorized to create a new topic
Page 49 of 126 << < 4748495051 > >>