Otherwise, IDL passes the bad data points back into GRIDDATA and uses the Linear method, which is slower but more accurate. If more than 10% of the points are poorly interpolated then IDL throws an error and halts execution. Data points are assumed to be "poorly" interpolated if they lie outside of 10% below the minimum or 10% above the maximum of the original data.
conversion = IDLUNIT( '1 mile / hour') / IDLUNIT( 'meter / second') s *= conversion.quantity Set up a map projection. Convert them to meters per second with IDLUNIT. s = SQRT(u^ 2 + v^ 2) The wind speeds are given in miles per hour. file = FILE_WHICH( 'globalwinds.dat') RESTORE, file, /VERBOSE Calculate wind speed from the component vectors.
#Idl contour code
The following lines of code create the graphic shown. In this case IDL will automatically generate the independent X and Y values and use your equation to compute the dependent Z data.
Instead of data, you can also input an equation of X and Y using either the input argument or the EQUATION property.
The CONTOUR function draws a two-dimensional contour plot for a 2D array of data.