cora.scripts.makesky

Command line script for making sky maps.

Functions

map_options(f)

The set of options for generating a map.

write_map(filename, data, freq[, fwidth, ...])

Classes

FreqState()

Process and store the frequency spec from the command line.

ListOfType(name, type_)

Click option type that accepts a list of objects of a given type.

class cora.scripts.makesky.ListOfType(name, type_)

Bases: ParamType

Click option type that accepts a list of objects of a given type.

Must be a type accepted by a Python literal eval.

Parameters:
  • name (str) – Name of click type.

  • type (type object) – Type to accept.

convert(value, param, ctx)

Convert the value to the correct type. This is not called if the value is None (the missing value).

This must accept string values from the command line, as well as values that are already the correct type. It may also convert other compatible types.

The param and ctx arguments may be None in certain situations, such as when converting prompt input.

If the value cannot be converted, call fail() with a descriptive message.

Parameters:
  • value – The value to convert.

  • param – The parameter that is using this type to convert its value. May be None.

  • ctx – The current context that arrived at this value. May be None.

class cora.scripts.makesky.FreqState

Bases: object

Process and store the frequency spec from the command line.

property frequencies

The frequency centres in MHz.

property freq_width

The frequency width in MHz.

cora.scripts.makesky.map_options(f)

The set of options for generating a map.