Last change
on this file since 25367 was 25367, checked in by adhikari, 5 years ago |
NEW: matlab package for analyzing spherical harmonics based on Max Tegmark's HEALpix tool
|
-
Property svn:executable
set to
*
|
File size:
941 bytes
|
Line | |
---|
1 | function tf = qPix(pix)
|
---|
2 | % QPIX validate list of pixel values
|
---|
3 | %
|
---|
4 | % pix is a numeric vector with length 12*k^2 for integer k
|
---|
5 |
|
---|
6 | % $Id: qPix.m 5795 2011-02-20 04:01:32Z lsf@GRAVITY.PSU.EDU $
|
---|
7 |
|
---|
8 | % Copyright 2010-2011 by Lee Samuel Finn.
|
---|
9 | % This program file is part of MEALPix. It is licensed under the Apache
|
---|
10 | % License, Version 2.0 (the "License"); you may not use MEALPix except in
|
---|
11 | % compliance with the License. You may obtain a copy of the License at
|
---|
12 | % <http://www.apache.org/licenses/LICENSE-2.0>
|
---|
13 | %
|
---|
14 | % Unless required by applicable law or agreed to in writing, MEALPix
|
---|
15 | % software distributed under the License is distributed on an "AS IS"
|
---|
16 | % BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
---|
17 | % implied. See the License for the specific language governing permissions
|
---|
18 | % and limitations under the License.
|
---|
19 |
|
---|
20 | tf = isnumeric(pix) && numel(pix) == max(size(pix));
|
---|
21 | tf = tf && floor(sqrt(numel(pix)/12))^2*12 == numel(pix);
|
---|
22 |
|
---|
23 | return |
---|
Note:
See
TracBrowser
for help on using the repository browser.