-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework to create multi level outlines and surfaces
- Loading branch information
1 parent
a0f80b9
commit 5253b70
Showing
238 changed files
with
99,816 additions
and
15,119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
These object outlines are generated using Aladin Sky Atlas from the Centre de Données astronomiques de Strasbourg and a small Python script which make use of shapely module to reduce the points. | ||
|
||
We start by using the "draw" function in Aladin Desktop to draw the contour of an object. We use the default DSS2 Color layer, usually playing with histogram and reversing the image to get a better idea of the object shape. There are no fixed settings for this, it's highly subjective to the user to find optimal settings. | ||
Then we export the plane in a subdirectory named 'objects' with an appropriate name in the form '[IC/NGC][dddd].txt'. The object name is sometimes only indicative since the same shape file can include other objects which are not clearly detached from the starting object. | ||
We start by using the "draw" function in Aladin Desktop to draw the contour of an object. We create three outlines at different brightness settings using the default DSS2 Color layer and playing with image histogram to get the shape at different brightness. Usually, the level 2 shape is taken with default histogram, while level 1 and level 3 use, respectvely, the first and the last half of the histogram. | ||
Then we export the plane in a subdirectory named 'objects' with an appropriate name in the form '[IC/NGC][dddd]{_lvX}.txt'. The object name is sometimes only indicative since the same shape file can include other objects which are not clearly detached from the starting object. | ||
|
||
Those object files have a lot of points due to the high pecision of the coordinates being saved, but we really don't need that amount of information, so we use the 'shape.py' script to simplify the shape of the object. | ||
Inside the script there's the 'shape_precision' variable, which by default is set to 0.002. Lowering that value will produce higher precision outlines, but with an increase of the size of the ouptut catalog. | ||
|
||
Currently the 'shape.py' script supports creating catalog files for Skychart's Catgen and Stellarium. | ||
Currently the 'shape.py' script supports creating catalog files for Skychart's Catgen and Stellarium. It can also create surface outlines for Catgen. | ||
|
||
`python shape.py create-outlines --software catgen` | ||
creates outlines for all files in the `./objects/` directory (objects with three level shapes will be displayed with three outlines). | ||
|
||
`python shape.py create-outlines --software catgen --level 3` | ||
creates outlines for only files with name ending in `lv3` and files without any level specified. | ||
|
||
`python shape.py create-surfaces --software catgen` | ||
create outlines in surface mode; the brightness level will be specified in the catalog file. | ||
|
||
Aknowledgements | ||
This research has made use of "Aladin sky atlas" developed at CDS, Strasbourg Observatory, France |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,255 @@ | ||
Object Cont_Flag RAJ2000 DEJ2000 X Y Label_Flag Info | ||
line + 15.167507092239084 60.85209322529721 0.0 0.0 false null | ||
line + 15.167507092239084 60.85209322529721 0.0 0.0 false | ||
line + 15.137755431830874 60.85215111399648 0.0 0.0 false | ||
line + 15.117920934818866 60.85218604846365 0.0 0.0 false | ||
line + 15.10302099124791 60.84858755677733 0.0 0.0 false | ||
line + 15.088124406155234 60.84498741353557 0.0 0.0 false | ||
line + 15.070759489684288 60.842596548807855 0.0 0.0 false | ||
line + 15.053397173709161 60.84020344055029 0.0 0.0 false | ||
line + 15.038515667557098 60.83780539268955 0.0 0.0 false | ||
line + 15.02362637739903 60.83299050697197 0.0 0.0 false | ||
line + 15.006268463503245 60.829383714355224 0.0 0.0 false | ||
line + 14.988918164489128 60.82698227539662 0.0 0.0 false | ||
line + 14.97157047347973 60.82457859563028 0.0 0.0 false | ||
line + 14.956702392795552 60.82217148783517 0.0 0.0 false | ||
line + 14.939363385308283 60.82217884265214 0.0 0.0 false | ||
line + 14.919547368686642 60.822184507232905 0.0 0.0 false | ||
line + 14.904685352636857 60.82218683702047 0.0 0.0 false | ||
line + 14.889823335198527 60.82218752225214 0.0 0.0 false | ||
line + 14.870007312405587 60.82218587769617 0.0 0.0 false | ||
line + 14.852663944723252 60.825804832794304 0.0 0.0 false | ||
line + 14.837794213767257 60.82942255306969 0.0 0.0 false | ||
line + 14.825396478669541 60.83424745751261 0.0 0.0 false | ||
line + 14.812992049118563 60.84027881366628 0.0 0.0 false | ||
line + 14.800586355632054 60.84510142767317 0.0 0.0 false | ||
line + 14.785697765326972 60.84992097549533 0.0 0.0 false | ||
line + 14.770800133375145 60.855946468304836 0.0 0.0 false | ||
line + 14.760857046540862 60.86197520327877 0.0 0.0 false | ||
line + 14.745949098753314 60.86799794103697 0.0 0.0 false | ||
line + 14.731041578903362 60.87281143207807 0.0 0.0 false | ||
line + 14.718610858300226 60.877626473520884 0.0 0.0 false | ||
line + 14.706176384556638 60.88244036566291 0.0 0.0 false | ||
line + 14.70116991113824 60.88967900236437 0.0 0.0 false | ||
line + 14.688728102449875 60.89449128119476 0.0 0.0 false | ||
line + 14.681232600940483 60.901725420072644 0.0 0.0 false | ||
line + 14.673733694021786 60.90895914073487 0.0 0.0 false | ||
line + 14.666231379301143 60.91619244292006 0.0 0.0 false | ||
line + 14.661210513024047 60.923429588545915 0.0 0.0 false | ||
line + 14.656187361675405 60.930666546345904 0.0 0.0 false | ||
line + 14.656116073160785 60.9403272494755 0.0 0.0 false | ||
line + 14.656053656106675 60.948780363962385 0.0 0.0 false | ||
line + 14.65599120205495 60.95723347779603 0.0 0.0 false | ||
line + 14.655937640538857 60.96447900345401 0.0 0.0 false | ||
line + 14.65588405179641 60.97172452869474 0.0 0.0 false | ||
line + 14.655821497158376 60.9801776409869 0.0 0.0 false | ||
line + 14.653277987454517 60.987418802653536 0.0 0.0 false | ||
line + 14.64575245887671 60.994650958796946 0.0 0.0 false | ||
line + 14.640714493392105 61.00188733539272 0.0 0.0 false | ||
line + 14.633182667055951 61.00911879019143 0.0 0.0 false | ||
line + 14.623155278391755 61.01634490609539 0.0 0.0 false | ||
line + 14.610651973512155 61.02114995998935 0.0 0.0 false | ||
line + 14.598122576982792 61.02836902206195 0.0 0.0 false | ||
line + 14.580623853187335 61.033160398524736 0.0 0.0 false | ||
line + 14.560638610622545 61.03673585774283 0.0 0.0 false | ||
line + 14.543142856782424 61.0403148021345 0.0 0.0 false | ||
line + 14.528137427040603 61.04389819905612 0.0 0.0 false | ||
line + 14.513128603889774 61.04747993038485 0.0 0.0 false | ||
line + 14.498101414192353 61.05226756844991 0.0 0.0 false | ||
line + 14.483100778481395 61.05463839397551 0.0 0.0 false | ||
line + 14.46558638859266 61.0582073002698 0.0 0.0 false | ||
line + 14.450580507704688 61.06057451919899 0.0 0.0 false | ||
line + 14.435607108789084 61.06052494291876 0.0 0.0 false | ||
line + 14.420615824609559 61.061681272870366 0.0 0.0 false | ||
line + 14.405641950898925 61.061628380427955 0.0 0.0 false | ||
line + 14.3856768644637 61.06155527945427 0.0 0.0 false | ||
line + 14.36820749007746 61.06148889950827 0.0 0.0 false | ||
line + 14.353233799202947 61.061430207239674 0.0 0.0 false | ||
line + 14.335764563727018 61.06135963857289 0.0 0.0 false | ||
line + 14.320790995559411 61.061297355995805 0.0 0.0 false | ||
line + 14.305817486481686 61.061233416369745 0.0 0.0 false | ||
line + 14.285852902309827 61.06114558592196 0.0 0.0 false | ||
line + 14.270879537140322 61.0610777798908 0.0 0.0 false | ||
line + 14.255906236230729 61.06100831684772 0.0 0.0 false | ||
line + 14.233421340537264 61.06210854838738 0.0 0.0 false | ||
line + 14.218447636375474 61.06203494000723 0.0 0.0 false | ||
line + 14.193438431595485 61.064323627479354 0.0 0.0 false | ||
line + 14.178355090962945 61.06907568290201 0.0 0.0 false | ||
line + 14.158246238401636 61.07500663423874 0.0 0.0 false | ||
line + 14.145649497235734 61.079768536876884 0.0 0.0 false | ||
line + 14.128054265878006 61.08450121176208 0.0 0.0 false | ||
line + 14.110453767991658 61.089231598958115 0.0 0.0 false | ||
line + 14.09537645001834 61.09276689316082 0.0 0.0 false | ||
line + 14.080233860196731 61.09871550958697 0.0 0.0 false | ||
line + 14.065117104259084 61.103454934925075 0.0 0.0 false | ||
line + 14.052494994762572 61.10820816298467 0.0 0.0 false | ||
line + 14.04233622223612 61.11418338347186 0.0 0.0 false | ||
line + 14.027173370314367 61.1201260650911 0.0 0.0 false | ||
line + 14.016939155748261 61.128514356760085 0.0 0.0 false | ||
line + 14.006665680264252 61.13810935810063 0.0 0.0 false | ||
line + 13.996454372943314 61.145288619679725 0.0 0.0 false | ||
line + 13.983631619121187 61.156072830479864 0.0 0.0 false | ||
line + 13.973409231857234 61.163250356495055 0.0 0.0 false | ||
line + 13.963146660723348 61.1716345838856 0.0 0.0 false | ||
line + 13.950373796473212 61.180000706430235 0.0 0.0 false | ||
line + 13.947652207483133 61.1872281387123 0.0 0.0 false | ||
line + 13.942387045222127 61.19564550792369 0.0 0.0 false | ||
line + 13.939625780587365 61.204080246473545 0.0 0.0 false | ||
line + 13.936899606830918 61.21130746420943 0.0 0.0 false | ||
line + 13.944203694977892 61.21860486095341 0.0 0.0 false | ||
line + 13.949002687098647 61.22588451193678 0.0 0.0 false | ||
line + 13.95627706971978 61.2343887309204 0.0 0.0 false | ||
line + 13.97112019702314 61.24173620642571 0.0 0.0 false | ||
line + 13.986074494513263 61.24545962715133 0.0 0.0 false | ||
line + 14.001032328498995 61.249181404776344 0.0 0.0 false | ||
line + 14.018504359476047 61.252917657582394 0.0 0.0 false | ||
line + 14.033469570382254 61.25663587123564 0.0 0.0 false | ||
line + 14.053428685121112 61.261590930540436 0.0 0.0 false | ||
line + 14.070882309605935 61.26652795755324 0.0 0.0 false | ||
line + 14.08328601759786 61.272640542856436 0.0 0.0 false | ||
line + 14.093181782414995 61.27873730389976 0.0 0.0 false | ||
line + 14.100537732356942 61.28602629511726 0.0 0.0 false | ||
line + 14.110441049908387 61.29212180449721 0.0 0.0 false | ||
line + 14.120318554322862 61.299424107129674 0.0 0.0 false | ||
line + 14.127685628104377 61.3067116360124 0.0 0.0 false | ||
line + 14.137600725340217 61.312805174940124 0.0 0.0 false | ||
line + 14.147491038331228 61.320105512291306 0.0 0.0 false | ||
line + 14.1624754543401 61.325017066387865 0.0 0.0 false | ||
line + 14.182498364454968 61.329953210680316 0.0 0.0 false | ||
line + 14.197573114466316 61.3312383324525 0.0 0.0 false | ||
line + 14.217683348024298 61.33254672634879 0.0 0.0 false | ||
line + 14.232786143048198 61.33262042470264 0.0 0.0 false | ||
line + 14.250381476583984 61.3339118327158 0.0 0.0 false | ||
line + 14.265485001978435 61.33398191197389 0.0 0.0 false | ||
line + 14.288140413447328 61.33408389640411 0.0 0.0 false | ||
line + 14.308278677417713 61.33417139152757 0.0 0.0 false | ||
line + 14.325877973623935 61.33545306428849 0.0 0.0 false | ||
line + 14.343499804568914 61.3355249119489 0.0 0.0 false | ||
line + 14.361121714233805 61.335594484060394 0.0 0.0 false | ||
line + 14.378743700085828 61.33566178060667 0.0 0.0 false | ||
line + 14.396346698719535 61.336934364844254 0.0 0.0 false | ||
line + 14.413951124768692 61.33820467844754 0.0 0.0 false | ||
line + 14.43659248421176 61.33948958222561 0.0 0.0 false | ||
line + 14.451699040920971 61.33953905077305 0.0 0.0 false | ||
line + 14.471841188467405 61.33960240779593 0.0 0.0 false | ||
line + 14.48946563229367 61.33965540670166 0.0 0.0 false | ||
line + 14.512111113098316 61.34092778185117 0.0 0.0 false | ||
line + 14.532254261708676 61.340982223054546 0.0 0.0 false | ||
line + 14.554915384274034 61.34103991597668 0.0 0.0 false | ||
line + 14.575058671592336 61.34108803995081 0.0 0.0 false | ||
line + 14.59268409682093 61.34112770977307 0.0 0.0 false | ||
line + 14.622899209936481 61.34119041978957 0.0 0.0 false | ||
line + 14.6430426824385 61.34122851038404 0.0 0.0 false | ||
line + 14.660668259227222 61.341259400963644 0.0 0.0 false | ||
line + 14.685855619579755 61.34009198943641 0.0 0.0 false | ||
line + 14.70600558011207 61.338913194954586 0.0 0.0 false | ||
line + 14.723629905239012 61.338935954718906 0.0 0.0 false | ||
line + 14.746289786855568 61.33896187300281 0.0 0.0 false | ||
line + 14.76643673518513 61.33777415666871 0.0 0.0 false | ||
line + 14.784060453206742 61.3377891125303 0.0 0.0 false | ||
line + 14.80168763038332 61.33659419512587 0.0 0.0 false | ||
line + 14.81931346207268 61.335397001044676 0.0 0.0 false | ||
line + 14.836935860604003 61.335405128600776 0.0 0.0 false | ||
line + 14.854558266917053 61.33541098044256 0.0 0.0 false | ||
line + 14.872182133282536 61.33299935976126 0.0 0.0 false | ||
line + 14.889803238228218 61.331793061658914 0.0 0.0 false | ||
line + 14.912455536962439 61.328168595047785 0.0 0.0 false | ||
line + 14.927554158828984 61.32575019505388 0.0 0.0 false | ||
line + 14.947681303779337 61.3221205303985 0.0 0.0 false | ||
line + 14.965284803226469 61.317281692158254 0.0 0.0 false | ||
line + 14.980370667430027 61.313649850515645 0.0 0.0 false | ||
line + 14.995457056666854 61.31122393700771 0.0 0.0 false | ||
line + 15.01556222337146 61.306376662518836 0.0 0.0 false | ||
line + 15.040690703689732 61.301520996821516 0.0 0.0 false | ||
line + 15.063290410851733 61.29545630828263 0.0 0.0 false | ||
line + 15.080868413461143 61.29181015433705 0.0 0.0 false | ||
line + 15.09592864673699 61.288165536410446 0.0 0.0 false | ||
line + 15.11097692831986 61.28331166431825 0.0 0.0 false | ||
line + 15.126002496445624 61.276040952667394 0.0 0.0 false | ||
line + 15.138518493267707 61.26998076151744 0.0 0.0 false | ||
line + 15.153531320809076 61.26270701539775 0.0 0.0 false | ||
line + 15.17105901765807 61.25663405942864 0.0 0.0 false | ||
line + 15.186080607455452 61.25177189766936 0.0 0.0 false | ||
line + 15.198587179840635 61.246913775187004 0.0 0.0 false | ||
line + 15.213587493320206 61.240840995893855 0.0 0.0 false | ||
line + 15.226059762502356 61.23356518705296 0.0 0.0 false | ||
line + 15.238539600219353 61.22749581508617 0.0 0.0 false | ||
line + 15.253509057357723 61.22021105867726 0.0 0.0 false | ||
line + 15.265992694761941 61.215346746647405 0.0 0.0 false | ||
line + 15.278442773055609 61.20806614021502 0.0 0.0 false | ||
line + 15.288395650027084 61.20199932032296 0.0 0.0 false | ||
line + 15.298344698020701 61.195931772377634 0.0 0.0 false | ||
line + 15.310795725552055 61.18985577733842 0.0 0.0 false | ||
line + 15.320703725675179 61.18137145279898 0.0 0.0 false | ||
line + 15.333144704903521 61.175293410858096 0.0 0.0 false | ||
line + 15.348067556604402 61.16799825732269 0.0 0.0 false | ||
line + 15.357994424285797 61.161926346934266 0.0 0.0 false | ||
line + 15.37040222798947 61.15463732974865 0.0 0.0 false | ||
line + 15.38530672043206 61.14733808562386 0.0 0.0 false | ||
line + 15.397721872035124 61.14125413252095 0.0 0.0 false | ||
line + 15.410132245280941 61.135169044052915 0.0 0.0 false | ||
line + 15.422517530491476 61.12787526618699 0.0 0.0 false | ||
line + 15.434917884592277 61.121787910887775 0.0 0.0 false | ||
line + 15.44983469960608 61.11689668922185 0.0 0.0 false | ||
line + 15.462225495839501 61.11080683728154 0.0 0.0 false | ||
line + 15.479632016916149 61.10590177908284 0.0 0.0 false | ||
line + 15.497056277546642 61.10220202828786 0.0 0.0 false | ||
line + 15.514524064230496 61.1009151159927 0.0 0.0 false | ||
line + 15.534513581554004 61.10082164230483 0.0 0.0 false | ||
line + 15.557052498049552 61.10312802164657 0.0 0.0 false | ||
line + 15.577069476855218 61.10423579999158 0.0 0.0 false | ||
line + 15.594561978983409 61.10414609625544 0.0 0.0 false | ||
line + 15.614553287992512 61.10404081226078 0.0 0.0 false | ||
line + 15.634544463336155 61.103932578494884 0.0 0.0 false | ||
line + 15.649508796224195 61.10264195488569 0.0 0.0 false | ||
line + 15.666911338216073 61.09892037273267 0.0 0.0 false | ||
line + 15.684279512073463 61.09398905118505 0.0 0.0 false | ||
line + 15.699175429457991 61.09027793309347 0.0 0.0 false | ||
line + 15.711382577091412 61.07933534388896 0.0 0.0 false | ||
line + 15.718683889469428 61.07204476479376 0.0 0.0 false | ||
line + 15.72099033404973 61.064784499708196 0.0 0.0 false | ||
line + 15.723232299081461 61.055109204129415 0.0 0.0 false | ||
line + 15.723042066377891 61.0478642300179 0.0 0.0 false | ||
line + 15.722820250710898 61.03941175974258 0.0 0.0 false | ||
line + 15.71262615587275 61.031020268941106 0.0 0.0 false | ||
line + 15.702468351281288 61.02383550960228 0.0 0.0 false | ||
line + 15.689823167713596 61.0166647417765 0.0 0.0 false | ||
line + 15.677243524688011 61.011907803235985 0.0 0.0 false | ||
line + 15.65470262118545 61.00720639898301 0.0 0.0 false | ||
line + 15.634659304208393 61.0024875416842 0.0 0.0 false | ||
line + 15.612186252252938 61.000194073631675 0.0 0.0 false | ||
line + 15.597214974364054 60.999065525301646 0.0 0.0 false | ||
line + 15.582244762248084 60.99793531723813 0.0 0.0 false | ||
line + 15.562320171023847 60.99803583248169 0.0 0.0 false | ||
line + 15.539904858927562 60.998145398162485 0.0 0.0 false | ||
line + 15.52498533906508 60.999423912487885 0.0 0.0 false | ||
line + 15.510088160738338 61.001908318770646 0.0 0.0 false | ||
line + 15.495211632115572 61.00559862460614 0.0 0.0 false | ||
line + 15.480331647848955 61.00928729181844 0.0 0.0 false | ||
line + 15.462956419058083 61.01298489096919 0.0 0.0 false | ||
line + 15.44555604494967 61.01547270423756 0.0 0.0 false | ||
line + 15.430604071762223 61.01553324041846 0.0 0.0 false | ||
line + 15.413160032716993 61.01560177469588 0.0 0.0 false | ||
line + 15.398188643831396 61.014451167575146 0.0 0.0 false | ||
line + 15.38321834191422 61.01329890150925 0.0 0.0 false | ||
line + 15.368230973869492 61.010937414172325 0.0 0.0 false | ||
line + 15.353210676511873 61.00615913509345 0.0 0.0 false | ||
line + 15.340685818270043 61.00137091585926 0.0 0.0 false | ||
line + 15.330605142595518 60.99295074744126 0.0 0.0 false | ||
line + 15.323035833380933 60.985729450547 0.0 0.0 false | ||
line + 15.31546996949531 60.978507728882064 0.0 0.0 false | ||
line + 15.307907548520467 60.97128558271361 0.0 0.0 false | ||
line + 15.29784511854704 60.96286296640493 0.0 0.0 false | ||
line + 15.290275275108346 60.954432258971416 0.0 0.0 false | ||
line + 15.282709449704962 60.94600112603199 0.0 0.0 false | ||
line + 15.277648240166041 60.93877003539143 0.0 0.0 false | ||
line + 15.270089492647596 60.930338192700866 0.0 0.0 false | ||
line + 15.26751845643914 60.923099706851104 0.0 0.0 false | ||
line + 15.259966119835319 60.914667294600704 0.0 0.0 false | ||
line + 15.257398657266153 60.90742861426487 0.0 0.0 false | ||
line + 15.249852721958534 60.89899563307464 0.0 0.0 false | ||
line + 15.242324085540051 60.89176980679146 0.0 0.0 false | ||
line + 15.234798864699627 60.88454355873758 0.0 0.0 false | ||
line + 15.224783175709627 60.87611548641257 0.0 0.0 false | ||
line + 15.212328743716911 60.8713153608251 0.0 0.0 false | ||
line * 15.167507092239084 60.85209322529721 0.0 0.0 false |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.