Commit 93aabdae authored by GZhao's avatar GZhao
Browse files

update documnet and readme

parent 540738d7
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ cpism_refdata/
example/example_output

refdata

*.zip

# Other files and folders
.settings/
+4 −19
Original line number Diff line number Diff line
@@ -4,22 +4,7 @@

CpicImgSim is a Python library for numerical simulation of the observational images of CSST/CPIC instrument.

## Insallation - 安装

### Requirements - 必要条件

- Python 3.8+

## Usage - 用法

## Development - 开发

## Contributing - 贡献

## Support - 支持

## Citation - 引用

## License - 许可证

## Change Log - 更新日志
程序代码:https://csst-tb.bao.ac.cn/code/csst-sims/csst_cpic_sim
数据文件:https://pan.cstcloud.cn/s/gjMlzXRuRsM	提取密码:i3Zs
程序文档:https://csst-tb.bao.ac.cn/simulation/cpic/index.html
联系方式:南京天光所 赵刚 gzhao@niaot.ac.cn 025-85482316
+4 −0
Original line number Diff line number Diff line
@@ -75,6 +75,10 @@ config['bands'] = {
    'f743': f'{cpism_refdata}/throughtput/f743_total.fits',
    'f883': f'{cpism_refdata}/throughtput/f883_total.fits',
    'f565': f'{cpism_refdata}/throughtput/f565_total.fits',
    'f520': f'{cpism_refdata}/throughtput/f520.fits',
    'f662': f'{cpism_refdata}/throughtput/f662.fits',
    'f850': f'{cpism_refdata}/throughtput/f850.fits',
    'f720': f'{cpism_refdata}/throughtput/f720.fits',
}
config['diameter'] = 2 # in meters
config['platescale'] = 0.016153
+8 −3
Original line number Diff line number Diff line
@@ -163,10 +163,15 @@ def focal_convolve(
    area = config['aperature_area']

    filter = filter_throughput(band)
    wave = filter.wave
   
    throughput = filter.throughput
    min_wave = wave[0]
    max_wave = wave[-1]
    wave = filter.wave
    
    throughput_criterion = throughput.max() * 0.1
    wave_criterion = wave[throughput > throughput_criterion]
    min_wave = wave_criterion[0]
    max_wave = wave_criterion[-1]
    # print(min_wave, max_wave)

    platescale = config['platescale']
    iwa = config['mask_width'] / 2
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ pupil_grid = make_pupil_grid(pupil_shape[0], pupil_shape[0] * pupil_rate)
aperture = make_circular_aperture(pupil_diameter)(pupil_grid)
aperture = aperture * Field(apm.flatten(), pupil_grid)

second_pupil_size = pupil_diameter * 0.8 # just gauss a number
second_pupil_size = pupil_diameter * 2 # just gauss a number
second_aperture = make_circular_aperture(second_pupil_size)(pupil_grid)
lyot_stop = ComplexSurfaceApodizer(second_aperture, second_aperture*0, lambda _: 2)

Loading