Skip to content

Add option write_skewers_Npix to write one skewers file per HEALPix pixel #24

@andreufont

Description

@andreufont

Right now, each node writes a fraction of the skewers to a file called something like:
skewers_srcs_s0_0.fits
where _0 specifies the node.

The current setting might end up with really large files, specially when running on only a few nodes.

Moreover, most codes that will use these files work with HEALPix pixel based files, so it would be great if CoLoRe could already print a file per HEALPix pixel. Note that this does not need to be the same HEALPix grid used internally in CoLoRe, but it could use that as default.

The new files could be named something like:
skewers_srcs_s0_pix37.fits
where _pix37 now specifies the HEALPix pixel contained in the file. Or something like this. Of course, write_skewers_Npix would be added as meta data to one of the ouput files so that we can map back a given pixel to a sky position.

Important question: In the current code, is a HEALPix pixel always contained in a single node-based output? If not, would it be difficult to assign these output HEALPix pixels to nodes, and let each node write the files corresponding to its pixels? The alternative would be having two or more nodes writing to the same pixel file, what I guess it is not ideal.

A reasonable default value for write_skewers_Npix could be either 8 or 16. With write_skewers_Npix=8, each file would have ~ 5000 quasars, resulting in of sizes of 400 Mb (?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions