There is a newer version of the record available.

Published July 16, 2024 | Version v0.16.0
Software Open

cds-astro/mocpy: v0.16.0

  • 1. @cds-astro
  • 2. HeidelbergCement
  • 3. LESIA, Observatoire de Paris, PSL
  • 4. NASA Goddard Space Flight Center
  • 5. University of Minnesota
  • 6. Brazilian Center for Research in Physics
  • 7. Puresoftware

Description

What's changed

Added

  • MOC.mask_uniq allows to mas an array of uniq cells with a MOC
  • MOC.values_and_weights_in_multiorder_map allows to filter a multiordermap by a MOC with weights corresponding to the area of the cells intersecting the MOC and the multiordermap
  • the mocpy.WCS class can now accept a sequence of angles as its fov argument rather than always representing square areas of the sky.
  • MOC.from_polygons and MOC.from_polygons now accept a boolean complement that allows to chose between the small MOC described by the polygon or the bigger one (its complement)
  • implement multi-moc operations on STMOCs (ex: stmoc1.union(stmoc2, stmoc3, ...)) for union, intersection, and difference

Changed

  • MOC.from_healpix_cells also accepts an int as depth if all the cells are at the same level
  • MOC.from_vizier_table() does not call the MOCServer anymore. It now raises an error if the catalog of table name is invalid (see #143). It also accepts max_depth as an argument. This should replace nside in a future version.
  • MOC.from_ivorn() now accepts max_depth as an argument. This should reb=place nside later.

Fixed

  • ranges in from_depth29_ranges is now optional, to be consistent with the existing docstring
  • from_healpix_cells and from_valued_healpix_cells now filter out invalid cells and raise a warning when they do so
  • fix multimoc operations (were all failing with a TypeError) [#153]

Full Changelog: https://github.com/cds-astro/mocpy/compare/v0.15.0...v0.16.0

Files

cds-astro/mocpy-v0.16.0.zip

Files (78.3 MB)

Name Size Download all
md5:25f2141f7364110ab45dfbdfdc9eae11
78.3 MB Preview Download

Additional details

Related works

Is supplement to
Software: https://github.com/cds-astro/mocpy/tree/v0.16.0 (URL)