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 1109 Views Problem with MCTK extracting MODIS LST (MOD11A1)  1109  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 1109
01 Aug 2012 10:59 PM
1 Replies and 1260 Views read_ascii problem  1260  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 1260
01 Aug 2012 02:08 PM
3 Replies and 2056 Views Conversion Error Message While Subsetting Image  2056  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 2056
30 Jul 2012 12:30 PM
2 Replies and 1073 Views Python 3x faster at restoring .sav with large arrays  1073  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 1073
29 Jul 2012 08:03 PM
1 Replies and 1375 Views IDL/ENVI Extract ROI in Batch Mode  1375  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 1375
27 Jul 2012 10:21 AM
1 Replies and 1562 Views Fastest way to find value in sorted list?  1562  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 1562
27 Jul 2012 01:12 AM
5 Replies and 1961 Views Resizing Images in Batch Mode  1961  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 1961
25 Jul 2012 11:25 AM
1 Replies and 1242 Views Is this a legitimate way of projection and subset  1242  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 1242
24 Jul 2012 06:01 PM
6 Replies and 1789 Views Multispectral band error RasterToFID: Raster must be a single ENVIRaster  1789  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 1789
24 Jul 2012 04:55 AM
2 Replies and 1319 Views IDL 8.0 Reference Guide  1319  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 1319
23 Jul 2012 03:01 PM
1 Replies and 1536 Views Max Per Pixel of a Layerstack or aet of images?  1536  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 1536
23 Jul 2012 12:43 PM
2 Replies and 1478 Views DLM WITH VS2008  1478  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 1478
21 Jul 2012 05:05 AM
0 Replies and 1270 Views DLM WITH VISUALSTUDIO 2008  1270  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 1270
21 Jul 2012 04:54 AM
1 Replies and 1349 Views trying to read .ptw files  1349  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 1349
19 Jul 2012 09:44 AM
0 Replies and 1481 Views hash, Unable to allocate memory?  1481  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 1481
17 Jul 2012 10:05 PM
3 Replies and 1352 Views about vector scale  1352  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 1352
17 Jul 2012 08:03 PM
0 Replies and 1285 Views about vector scale  1285  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 1285
17 Jul 2012 08:03 PM
2 Replies and 1276 Views POLYLINE: Unable to concatenate variables  1276  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 1276
17 Jul 2012 01:45 AM
0 Replies and 1356 Views What's Wrong I am doing Using FORMAT  1356  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 1356
16 Jul 2012 11:30 AM
2 Replies and 1307 Views Blank of vector plot over Stereographic map projection!  1307  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 1307
15 Jul 2012 08:48 AM
You are not authorized to create a new topic
Page 49 of 126 << < 4748495051 > >>