python for astronomy 总结

所有内容来自下面几个网站:


1.     http://ugastro.berkeley.edu/pydecal/textbook.pdf

2.  https://prappleizer.github.io/

 

(1)a function to slice 2-D arrays

def image_slicer(image,rs,re,cs,ce):

    output=image[rs:re,cs:ce]

  return output

  

 

posted @ 2020-11-18 17:13  cql_astro  阅读(182)  评论(0)    收藏  举报