#507 closed defect (fixed)
Region conventions
| Reported by: | Paul Price | Owned by: | Paul Price |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | PSLib SDRS | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
psLib is adopting the C convention that the first pixel is 0,0. The FITS
standard says it should be 1,1. Image regions in the header (e.g., DATASEC) are
generally written following the FITS standard, e.g., [1:2048,1:4096]. Does this
mean that psRegionFromString/psRegionToString must convert to/from psLib
convention, or do we introduce a new function to perform the conversion? We
also need to be careful about whether functions treat regions as inclusive or
exclusive of the boundary (esp. the upper limit).
Note:
See TracTickets
for help on using tickets.

psLibRegionFromString and psLibRegionToString do the conversion.