⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 array_cut_max.pro

📁 pic 模拟程序!面向对象
💻 PRO
字号:
; NAME:      array_cut_max;; PURPOSE:   Select elements out of an array;; CATEGORY:;; CALLING SEQUENCE:;   Result = array_cut_max(x, y, z, x_max, y_max);; INPUTS:;   x:      array of x values;   y:      array of y values;   z:      two-d array of z values;   x_max:  floating point cutoff value for x (non-inclusive);   y_max:  floating point cutoff value for y (non-inclusive);; OPTIONAL INPUTS:    None.;; KEYWORD PARAMETERS: None.;; OUTPUTS:   A structure of arrays of doubles, which are called;            "xnew", "ynew", and "znew";; OPTIONAL OUTPUTS:  None.;; COMMON BLOCKS:     None.;; SIDE EFFECTS:      None.;; RESTRICTIONS:      None.;; PROCEDURE:;; EXAMPLE:;   Cut off all values of x above 3 and y above 6, storing;   the results in A, and print the new array and new x and new y;;   A = array_cut(x, y, z, 3, 6);   print, A.znew;   print, A.xnew;   print, A.ynew;; MODIFICATION HISTORY:;   May  8, 2001:  original code (PHS);   May 10, 2001:  renamed, with cosmetic changes (DLB);;   Version: $Id: array_cut_max.pro,v 1.1 2001/06/15 21:42:34 bruhwile Exp $;;   Copyright (c) 2000-2001 by Tech-X Corporation.  All rights reserved.function array_cut_max, x, y, z, xc, yc xs = n_elements(x) ys = n_elements(y) whx = where(x lt xc) why = where(y lt yc) nx = n_elements(whx) ny = n_elements(why) znew=dindgen(nx,ny) for i=0, nx-1 do begin   for j=0, ny-1 do begin     znew(i,j) = z( whx(i), why(j) )   endfor endfor mystruct = { znew:znew, xnew:x(whx), ynew:y(why) } return, mystructend

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -