공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
배열 개요
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Earth Engine은 1차원 벡터, 2차원 행렬, 3차원 큐브, 고차원 큐브를 ee.Array
유형으로 나타냅니다. 배열은 유연한 데이터 구조이지만 제공하는 기능에 비해 Earth Engine의 다른 데이터 구조만큼 확장되지는 않습니다. 배열을 사용하지 않고 문제를 해결할 수 있으면 결과가 더 빠르고 효율적으로 계산됩니다. 하지만 문제에 더 높은 차원 모델, 유연한 선형 대수 또는 배열에 고유하게 적합한 다른 항목이 필요한 경우 Array
클래스를 사용할 수 있습니다.
배열 크기, 모양, 크기
배열의 측정기준은 기본 데이터가 달라지는 축의 수를 나타냅니다. 예를 들어 0차원 배열은 스칼라 숫자이고, 1차원 배열은 벡터이고, 2차원 배열은 행렬이고, 3차원 배열은 큐브이고, 3차원 이상의 배열은 하이퍼 큐브입니다. N차원 배열의 경우 0에서 N-1까지 N개의 축이 있습니다. 배열의 모양은 축의 길이에 따라 결정됩니다. 축의 길이는 축을 따라 있는 위치 수입니다. 배열 크기 또는 배열의 총 요소 수는 축 길이의 곱과 같습니다. 현재 희소 배열이나 불규칙 배열은 지원되지 않으므로 모든 축의 모든 위치에 있는 각 값에는 유효한 숫자가 있어야 합니다. 배열의 요소 유형은 각 요소가 어떤 종류의 숫자인지를 나타냅니다. 배열의 모든 요소는 동일한 유형을 갖습니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eEarth Engine utilizes the \u003ccode\u003eee.Array\u003c/code\u003e type to represent vectors, matrices, cubes, and higher-dimensional hypercubes, offering a flexible but potentially less scalable data structure compared to other options.\u003c/p\u003e\n"],["\u003cp\u003eThe dimension of an array signifies the number of axes, with 0-D representing scalars, 1-D vectors, 2-D matrices, 3-D cubes, and beyond 3-D hypercubes.\u003c/p\u003e\n"],["\u003cp\u003eAn array's shape is defined by the lengths of its axes, while the total size is the product of these lengths, with each position containing a valid number due to the lack of support for sparse or ragged arrays.\u003c/p\u003e\n"]]],[],null,["Earth Engine represents 1-D vectors, 2-D matrices, 3-D cubes, and higher dimensional\nhypercubes with the `ee.Array` type. Arrays are a flexible data structure, but\nin exchange for the power they offer, they do not scale as well as other data structures\nin Earth Engine. If the problem can be solved without using arrays, the result will be\ncomputed faster and more efficiently. But if the problem requires a higher dimension model,\nflexible linear algebra, or anything else arrays are uniquely suited to, you can use\nthe `Array` class.\n\nArray dimension, shape and size\n\nThe dimension of an array refers to the number of axes along which the underlying data\nvaries. For example, 0-D arrays are scalar numbers, 1-D arrays are vectors, 2-D arrays\nare matrices, 3-D arrays are cubes, and \\\u003e3-D arrays are hyper-cubes. For an\nN-dimensional array, there are N axes from 0 to N-1. The shape of the array is\ndetermined by the lengths of the axes. The length of an axis is the number of positions\nalong it. The array size, or number of total elements in the array, equals the product\nof the axis lengths. Each value at every position on every axis must have a valid number,\nsince sparse or ragged arrays are not currently supported. The array's element type\nindicates what kind of number each element is; all elements of the array will have the\nsame type."]]