未提供项目说明

pyaxehelper的Python项目详细描述


皮克斯帮助者

安装

pip install pyaxehelper

此包包含帮助pyaXe的函数。这适用于:

^{pr2}$

功能包括:

- change_catalog_order() edits and removes column order in a sextractor catalog. This is required by pyaxe as discussed in [#5](https://github.com/spacetelescope/pyaxe/issues/5) and [#6](https://github.com/spacetelescope/pyaxe/issues/6).

- change_magiso2magwavelength() edits a column in a sextractor catalog from MAG_ISO to MAG_F[WAVELENGTH] (e.g., MAG_F1392 for F140W images). This is required by pyaxe as discussed in [#5](https://github.com/spacetelescope/pyaxe/issues/5) and [#6](https://github.com/spacetelescope/pyaxe/issues/6).

- write_catalog() saves a text file similar to a sextractor catalog given a pandas dataframe.

- read_catalog() returns pandas dataframe of information in a sextractor catalog.

- select_source() returns an object from a sextractor catalog which is the closest to a given RADEC.

- make_meta() takes a list of files (both grism and direct) and reads their headers. Necessary information (e.g., filepath, filter, and expstart) are extracted and recorded in a dictionary form. This also calls _make_pairs() to make a suggestion for grism-direct pairs by selecting the grism-direct images having the closest expstart.

- _make_pairs() is internally used by make_meta() to return a suggestion of grism-direct pairs.

- prepare_folders() helps preparing folders GRISM/ and DIRECT/. It takes the dictionary output from make_meta() with the grism-direct pair suggestion (i.e., only GID is the input for this function), and processes grism and direct files stated in the dictionary. Each file is copied to the corresponding location. GRISM.lis and DIRECT.lis are constructed at the end.

- make_axelis() constructs an aXe.lis file. It takes GID (i.e., an output from make_meta) and utilizes grism-direct pair info.

- calculate_median() calculates median fluxes with sigma clipping using common wavelength grids (i.e., [WMIN,WMAX] with DW bin width. It reads lambdas and fluxes from pyaxe outputs (i.e., OUTPUT/*2.SPC.fits or OUTPUT/*2_opt.SPC.fits) given an object ID and the file list (i.e., FILES). Interp1d model is constructed, and is used to interpolate fluxes to the common grids. It returns WGRID and dataframe containing the common wavelength grids and dataframe of fluxes (columns: image number and median at the last column, row: parallel to the common wavelength grids), respectively.

已知问题:

- ?

5.1.2.0版

- Implement: calculate_median

5.1.1.0版

- This version mainly implement helpers to reduce the amount of manual works required such as making grism-direct pairs, copying files to folders, and making .lis files.

- Implement: make_meta, _make_pairs, prepare_folders, make_axelis

5.1.0.0版

- This version mainly implements helpers to construct a sextractor catalog to be complied with pyaxe requirements.

- Implement: change_catalog_order, change_magiso2magwavelength, write_catalog, read_catalog, select_source

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
javaelk:如何在Kibana中按异常类对stacktrace进行分组   java两个组件使用MigLayout相互重叠   java Hibernate标准获取关联实体的列表,而不是父实体的列表   从Java关闭另一个应用程序,但不是由当前Java应用程序启动   java使用OGNL获取参数   java如何在SSLEngine中启用密码TLS\U DHE\U RSA\U和\U AES\U 256\U GCM\U SHA384   在Java中有效地比较两个列表<Object[]>   java杀死挂起的线程   在java中从指定模式前后的字符串中提取子字符串   存储整数的java HashMap替代方案   java如何使用LibGDX加载特定于语言的资产?   java如何使用JSON响应从维基百科读取结构化数据   java无法连接到Spark Master:原因是:[已解除关联]   java如何配置Elastic beanstalk classic负载平衡器以使用CLI终止HTTPS   java筛网中的奥斯汀大于int   java PircBot在每个用户上迭代一组命令   java将带有Jackson的hashmap编组为XML的错误结构   testng中的java设置testfailure给出了正回报   java如何在IntelliJ中正确配置Eclipse项目?