Skip to content

This code aims to convert an image of a disk with any PA and inclination to a face-on image in polar coordinates.

Notifications You must be signed in to change notification settings

wddlx/Converting-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Converting-code

This code aims to convert an image of a disk with any PA and inclination to a face-on image in polar coordinates.

Inputs:

image: 2d array.

PA and inclination: Real number, default is 0, in degree.

center: The center of the disk. Default is the center of the image.

final_radius: The radius of the disk in pixel. Should be smaller than the distance from the center of the disk to the edge of the image. Default is 100.

pw: How many is the circle is divided into. 360/pw is the division value of the $\theta$ axis of the polar coordinates. The default value is 360.

r0 and times: We multiply the brightness of the disk with r^{times} to compensate for the dimming. r0 is where the brightness do not change, and times is how the compensation goes with r. The default of r0 is 40 (in pixel) and of times is 2.

About

This code aims to convert an image of a disk with any PA and inclination to a face-on image in polar coordinates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages