|
|
|
|
|
|
2 Replies and 279 Views
Can&39;t standardize COLORBAR across multiple VECTOR maps 279 2
Started by PATRICK DANDENAULT
I'm creating wind maps using the MAP, VECTOR, and COLORBAR and LEGEND functions, and I'm using them to build wind animations. THE PROBLEM: I cannot standardize the color bar and sample vector length across multiple wind maps.
EXAMPLE-MAP-1
EXAMPLE-MAP-2
I'm using the TARGET option with COLORBAR to set the range:
cbar = COLORBAR(TARGET=wind_vectors, blah)
... so, I cannot use the RANGE=&91min,max&93 option with COLORBAR.
Also, the LEGEND sample vector change size from map to map. I'm u...
|
|
|
|
2 |
279 |
11 Mar 2017 06:53 AM |
|
1 Replies and 240 Views
Raster subset 240 1
Started by Siham Benzouai
Hello,
I have to subset a set of images with the same extentions (coordinates). So, I used the script below which I found on the help. The execution halted at the last instruction with this error message : "Keyword SPATIALREF not allowed in call to: ENVIRASTER::SUBSET".
Could you help me to overcome this error
Thank you.
The script:
Raster = e.OpenRaster(File)
; This is the area of interest:
UpperLeftLat = 35.1
UpperLeftLon = -112.1
LowerRightLat = 34.7
LowerRig...
|
|
|
|
1 |
240 |
09 Mar 2017 06:02 AM |
|
0 Replies and 207 Views
the Solution of the equation 207 0
Started by wenkai li
My newtfunc contain the varion and unknown solution,but the newton method in IDL just allow given initially solution of the equation.
How to get the the Solution of the equation Thanks
Pro TSM_lixiaModel
;http://www.harrisgeospatial.com/docs/ProgrammingGuideTileIterators.html
!Except=0
Compile_opt idl2
e=Envi(/headless)
starttime = Systime(/second)
dir='I:\lwkDATA\waterRegion\MODIS\'
files=file_search(dir,'*RC.tif',count=num)
for i=0,num-1 do begin
file=files&...
|
|
|
|
0 |
207 |
01 Mar 2017 12:32 AM |
|
5 Replies and 276 Views
array memory allocation 276 5
Started by Ben Felzer
I am reading from a netcdf file with 97 arrays of size (1165,720,1440), reading each array using ncdf_varget. Because of memory allocation problems, I started using delvar to erase the arrays after finished using them - ultimately creating 19 new arrays of the same size from the original arrays (by adding some of them together). Yet am still getting the error Unable to allocate memory: to make array. Cannot allocate memory. When I test delvar and try to print out one of the deleted arrays, th...
|
|
|
|
5 |
276 |
28 Feb 2017 08:28 AM |
|
2 Replies and 233 Views
Georeference Meris image with IDL 233 2
Started by Siham Benzouai
Hi,
I have to write an IDL script to automatise the processing of Meris images. One of the first step is the georeferencement.
In ENVI, it's done by typing this commands :
Geometric correction>Georeference by sensor>Georeference Meris.
But, I don't find the equivalent instructions in IDL.
Does someone have an idea
Thank you.
|
|
|
|
2 |
233 |
25 Feb 2017 07:51 AM |
|
4 Replies and 228 Views
rebin 228 4
Started by Ben Felzer
I am rebinning from a 0.25 degree lon/lat grid (1440 x 720) to a half degree (720 x 360), using vu_regrid = rebin(vu,720,360,1165, /SAMPLE). In the original, bad (i.e. ocean) values are indicated by 1e20. After rebinning, these values are 2e20. It's supposed to be averaging them - why is it doubling those large values Hard to tell what it's doing with the other values, but just doing quick sum, seems to be ok as the sum is about 4 times less than summing the higher resolution grid.
|
|
|
|
4 |
228 |
24 Feb 2017 09:08 AM |
|
1 Replies and 209 Views
warp with tie points 209 1
Started by Vassa Pupkunder
Need to warp AWHRR files so that the resulting grid mesh cells borders coincide for all the scenes.
I'm using the following code for warping (in cycle for every file):
; setting projection
units = envi_proj_units_translate('Degrees')
proj = envi_proj_create(/geographic, unit=units)
ENVI_DOIT, 'ENVI_AVHRR_WARP_DOIT', AVHRR_FID=fidin, $
DIMS=dims, FID=fidcal, /IN_MEMORY, BACKGROUND=nodata, $
METHOD=8, OUT_BNAME=&910,1,2,3,4&93, POS=pos, $
PIXEL_SIZE=&910.02, 0.02&93, grid=...
|
|
|
|
1 |
209 |
23 Feb 2017 04:07 PM |
|
0 Replies and 226 Views
Only able to store a few days of command history 226 0
Started by David Starbuck
Question:
An IDL user is running into an issue in which he cannot store more than a few days worth of command history in the IDL workbench. He would like to store much more.
Possible answer:
You can increase the amount of history being stored by going to Preferences > IDL, and then changing "History size (Lines)" to a bigger number.
|
|
|
|
0 |
226 |
23 Feb 2017 01:50 PM |
|
14 Replies and 253 Views
Removing pixels w/ a value < ... from total histogram pixel count 253 14
Started by Allisyn Hudson Dunn
Hello,
In a semi-simplified form here is my question:
Currently a portion of my .pro that outputs the final required value uses the ENVI_STATS_DOIT function to create a histogram of a single band image and then calculates the percent of pixels that fall within the two categories (pixels that meet a condition, pixels that do not) by using hist&911&93/total(hist)*100. Up until not, it worked great and allowed me to determine what percentage of the image was represented by "1's" (oth...
|
|
|
|
14 |
253 |
17 Feb 2017 01:42 PM |
|
4 Replies and 246 Views
Contour: difference between IDL 8.0 and IDL 8.4 246 4
Started by Stefano Bianchi
Ciao,
I've upgraded from IDL 8.0 to IDL 8.4, and found a strange difference in the behaviour of CONTOUR.
Here's a simple test:
data = RANDOMU(seed, 9, 9)
smooth = CONTOUR(MIN_CURVE_SURF(data), TITLE='Smoothed', RGB_TABLE=1, /FILL, c_value=&910, 0.2, 0.3, 0.5&93)
If you launch it in IDL 8.0, you get what you (more or less) expect: three filled contours, while the outer part is the white transparent background. I need to include the '0' level, otherwise the inner contour is...
|
|
|
|
4 |
246 |
16 Feb 2017 06:32 AM |
|
1 Replies and 264 Views
write a binary file 264 1
Started by Marco Dipp
dear all
I have a density file ( array file) with x-dimension=300 and y-demnsion=240,
density=array &91300,240&93.
i want to write it as a binary file with the double precesion format. i used the following commands:
openw, lun, 'density.dat', /get_lun
writeu, lun, density
close, lun
but the problem is that if I open the binary file with the MATLAB the dimension of the density, now, is
density=array &916,12000&93.
I know I have to do some manipulation for writing the binary file to k...
|
|
|
|
1 |
264 |
14 Feb 2017 09:08 AM |
|
2 Replies and 311 Views
Spectral Math 311 2
Started by Paul Manley
Hello,
Is spectral math possible in IDL If so, how I need to divide hyperspectral images by a white reference.
Thanks!
|
|
|
|
2 |
311 |
10 Feb 2017 10:47 AM |
|
2 Replies and 247 Views
Metadata update 247 2
Started by niedziellak
Is it possible to update metadata of a raster file without exporting
I would like to change band names and save the raster without creating new file by ENVIRaster::Export.
After using the ENVIRasterMetadata::UpdateItem I cannot just save the raster with ENVIRaster::Save
It says: Raster is open for read. Please use Export Raster to save.
|
|
|
|
2 |
247 |
08 Feb 2017 02:59 AM |
|
2 Replies and 230 Views
Patterns and EPS output 230 2
Started by Brice Boclet
Hello everyone,
I can't get IDL (8.5.1) to output any figure containing patterns correctly.
To illustrate my problem, we can use the code from the polygon manual page :
IDL Polygon
data = RANDOMU(s,51)*15-5
upper = data RANDOMU(s,51)*2 6
bottom = data - RANDOMU(s,51)*3 - 7
year = INDGEN(51) 1950
p = PLOT(year, data, XRANGE=&911950,2000&93, YRANGE=&91-15,20&93, $
YTITLE='Soil Heat Accumulation &91MJ m$^{-2}$&93', THICK=2)
poly = POLYGON(&91year,reverse(year)&93, &91upper,reve...
|
|
|
|
2 |
230 |
07 Feb 2017 08:19 AM |
|
1 Replies and 260 Views
Layer stacking from metadata 260 1
Started by muhammad iqbal Habibie
Hi everyone, I want to layer stack from the metadata file, is it possible I already read the metadata using this code:
pro landsat8
e = ENVI()
; Open a Landsat-8 file
file = 'F:\Citra\LANDSAT\\20140127\LC81190652014027LGN00\LC81190652014027LGN00_MTL.txt'
raster = e.OpenRaster(file)
; Landsat-8 images are stored in a five-element array.
; Multispectral bands from the OLI sensor are stored in
; the first array element. You do not need to perform this
; step with most mult...
|
|
|
|
1 |
260 |
06 Feb 2017 08:47 PM |
|
2 Replies and 230 Views
ENVIGainOffsetRaster 230 2
Started by John scientist
Dear Sir or Mam
I am using envi api programming with envi 5.3 and idl 8.5. But ENVIGainOffsetRaster doesn't work in my envi/idl programming. in other wods whenever I open it's result in my software, it's information about gain and offsets are empty. could you help me please
sincerely,
|
|
|
|
2 |
230 |
03 Feb 2017 10:28 AM |
|
1 Replies and 228 Views
LEGEND function 228 1
Started by Marcos Montes
I'm using IDL 8.5.1.
I'm using the PLOT function, and making several curves in it (that is, invoking PLOT several times, using CURRENT to point to the original, and /OVER). In creating the legend, I'd like some parts of the legend to respect the Tex-Like typesetting that is now available in IDLs TEXT objects.
However, when I use the TARGET keyword to LEGEND, and appropriate mathematical construct in the NAME property of the plots, they are not typeset at all, just printed directly.
I can get ...
|
|
|
|
1 |
228 |
27 Jan 2017 07:47 AM |
|
1 Replies and 240 Views
Problem with idlpy executing a simple ENVI task 240 1
Started by Silvio Martufi [LEFT]
Hi all,
i have an working IDL code to elaborate the TOA reflectance reading the metadata file MTL.txt. The asset is Landsat 8.
Now, i am trying to execute the same code from python, using idlpy and IDL.run('expression') sintax.
Here my code:
from idlpy import IDL i also tryed from idlpy import *
passing parameters to IDL function
IDL.root_path = root_path the directory where the MTL.txt file is saved
IDL.TOA_Dir = TOA_Dir the directory where will be saved the toa_files
IDL.subdir = ...
|
|
|
|
1 |
240 |
24 Jan 2017 11:04 AM |
|
1 Replies and 236 Views
masking pixels in multiple bands that match range of values 236 1
Started by Peg Shippert
I have a Landsat image with six bands stack stored into a single file (an array of three dimensions).
I want to create a mask for those pixels if all bands match a value “zero”.
I know how to do this in ENVI. MaskingàBuild maskà Options àImport Data Range then
determine data range (min and max values) and select “Mask pixel if all bands match range”.
Now can you tell me how I can translate this task in IDL
I have an array of (ns, nb, nb=6).
|
|
|
|
1 |
236 |
23 Jan 2017 08:55 AM |
|
1 Replies and 203 Views
JSON_SERIALIZE precision 203 1
Started by Craig Wallace
JSON_SERIALIZE(x) will produce radically different output depending on the value of x.
For example:
IDL> a = 19.05
IDL> print, JSON_SERIALIZE(a)
19.04999923706055
IDL> a = 19.75
IDL> print, JSON_SERIALIZE(a)
19.75
Can anyone explain this enormous difference.
System settings Bug Not acceptable -- producing huge JSON file output when I am supplying 2-decimal place precision input.
C. Wallace
|
|
|
|
1 |
203 |
22 Jan 2017 09:26 AM |
|