Skip to content

Commit

Permalink
Merge pull request #200 from observerly/feature/healpix/face/Face
Browse files Browse the repository at this point in the history
feat: add type Face struct to healpix module in @observerly/skysolve
  • Loading branch information
michealroberts authored Feb 4, 2025
2 parents 3ad7d3e + decf36a commit 626601e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pkg/healpix/face.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*****************************************************************************************************************/

// @author Michael Roberts <michael@observerly.com>
// @package @observerly/skysolve
// @license Copyright © 2021-2025 observerly

/*****************************************************************************************************************/

package healpix

/*****************************************************************************************************************/

// Face represents the properties of a base pixel (or “face”) of a HEALPix map.
type Face struct {
faceId int // the index of the face (0 to 11), arranged in rings around the map

Check failure on line 15 in pkg/healpix/face.go

View workflow job for this annotation

GitHub Actions / lint (1.23.x, ubuntu-latest)

field faceId is unused (U1000)
row int // the row in which the face resides (0, 1, or 2)

Check failure on line 16 in pkg/healpix/face.go

View workflow job for this annotation

GitHub Actions / lint (1.23.x, ubuntu-latest)

field row is unused (U1000)
southVertexY int // the y coordinate of the southernmost vertex (typically 2, 3, or 4)

Check failure on line 17 in pkg/healpix/face.go

View workflow job for this annotation

GitHub Actions / lint (1.23.x, ubuntu-latest)

field southVertexY is unused (U1000)
southVertexX int // the x coordinate of the southernmost vertex (typically between 0 and 7)

Check failure on line 18 in pkg/healpix/face.go

View workflow job for this annotation

GitHub Actions / lint (1.23.x, ubuntu-latest)

field southVertexX is unused (U1000)
neighbors map[byte]int // a map of neighboring faces; the key packs the (x,y) offset into a byte

Check failure on line 19 in pkg/healpix/face.go

View workflow job for this annotation

GitHub Actions / lint (1.23.x, ubuntu-latest)

field neighbors is unused (U1000)
}

/*****************************************************************************************************************/
11 changes: 11 additions & 0 deletions pkg/healpix/face_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*****************************************************************************************************************/

// @author Michael Roberts <michael@observerly.com>
// @package @observerly/skysolve
// @license Copyright © 2021-2025 observerly

/*****************************************************************************************************************/

package healpix

/*****************************************************************************************************************/

0 comments on commit 626601e

Please sign in to comment.