XMM-Newton Science Analysis System
pyutils (pyutils-0.8.5) [xmmsas_20230412_1735-21.0.0]
Current functions
At the moment, these are the current functions present in pyutils:
- pyadd: Sums the image data from the primary HDU of the given FITS files. Does not copy the information passed through the HDU header. The images must have the same size.
- date_time: Returns the current time in the following format: Current time: %Y - %m - %d – %H:%M:%S.
- pyselect: Returns the rows from the data of a FITS file that suits the conditions imposed by the arguments of the function.
- pymodhdu: Modifies the header of the extension of a FITS file using the parameters found in the arguments passed to the function.
- get_key_word: Returns the keyword from the header of a FITS file. If the extension is passed, will only search in that particular extension. If not, it'll loop over all the extensions until a match is found. If it's not found, an alternative output (in the form of a non-mandatory parameter) will be returned.
- pydump: Returns the raw values (as a list) of the column of the FITS file passed as argument.
- is_notebook: Returns true or false depending on whether or not is executed in a Jupyter Notebook environment.
- delete_data: Deletes rows or columns from the extension of a FITS file.
- create_fits_from_data: Creates a FITS file from the input data using an array-label system. NOTE: the extension will be nameless.
- filter_data: Filters 2D NumPy arrays or astropy.table.Table objects using the criteria passed to the function.
- imgstat: Provides statistics from FITS image files. Can be dumpled into a text file.
- merge_fits: Merges the specified data columns from several FITS files into a new file.
- add_column_to_fits: Adds a data columns to an existing data extension of a FITS file.
- add_row_to_fits: Adds a row or rows to the existing FITS file.
- sort_fits: Rewrites the given FITS file according to the order of one given column or columns.
XMM-Newton SOC -- 2023-04-16