diff --git a/src/assets/post/hygsvg/full-en.html b/src/assets/post/hygsvg/full-en.html index 7a27754..f427c85 100644 --- a/src/assets/post/hygsvg/full-en.html +++ b/src/assets/post/hygsvg/full-en.html @@ -1,38 +1,59 @@
There are a couple of online services that offer the creation of a poster that contains the night's sky at a certain point in time and space, but they all want to be paid handsomely. So, do it ourselves then! A quick search for input - data resulted in the following database: https://github.com/astronexus/HYG-Database + data resulted in the following database:
- After a failed attempt at trying to understand the basics of astronomy I found a concise explanation of how you can - calculate the visible night sky for a specific observer: http://jknight8.tripod.com/CelestialToAzEl.html. - I implemented this, quick and dirty, in a Kotlin project (check out this - github repository if you want to try it out. The code outputs the following vector images, which I'm pretty - pleased with! They can easily be included in whatever vector image program (Inkscape!) you want to use, which means - you can produce posters of whichever size you desire. + https://github.com/astronexus/HYG-Database
++ After a failed attempt at trying to understand the basics of astronomy I found a + concise explanation + of how you can calculate the visible night sky for a specific observer. + I implemented this algorithm, quick and dirty, in a Kotlin project (check out + my github repository if you want to try it out). + The code outputs a vector image and I'm pretty pleased with the + result. As it's in vector format, it can be easily modified without loss of quality, meaning you can produce posters + of whichever size you desire. +
+ +Below are some sample screenshots. I'm not rendering the full image here, to avoid a slow load of this page, but you + can download an example here to open + with your favorite image viewer.
+
-
+
-
+
+ Most parameters can be easily modified (size of the stars, colors, ...), either by changing some variables or - modifying the code (which should be relatively easy. It's currently possible to have the star's colors correspond to + +
+ Most parameters can be easily modified (size of the stars, colors, ...), either by changing some variables or + modifying the code (which should be relatively easy. It's currently possible to have the stars' colors correspond to their actual class (if it's known in the database), meaning that the star is blue when hot, and reddish when cool. - Stars are also portrayed bigger when they are more bright in the sky, which made sense to me, as a non-astronomer.
+ Stars are also portrayed bigger when they are more bright in the sky, which made sense to me, as a non-astronomer. + ++ Off to the printer! +
diff --git a/src/assets/post/hygsvg/full-nl.html b/src/assets/post/hygsvg/full-nl.html index 3a2edda..1f03ee3 100644 --- a/src/assets/post/hygsvg/full-nl.html +++ b/src/assets/post/hygsvg/full-nl.html @@ -1,24 +1,64 @@- Dit mag je klasseren onder "Ik wil dit, maar ik wil er niet voor betalen... Dan maar zelf doen!". Er zijn een - paar betaalde services online die het mogelijk maken om een poster te maken van de sterrenhemel, uitgaande van een - bepaalde locatie op de aarde, op een bepaald moment in de tijd. Om zelf zoiets te maken moet je natuurlijk beginnen - met een leesbare dataset, en na een snelle zoektocht kwam ik uit op de volgende databank (vrij beschikbaar): https://github.com/astronexus/HYG-Database. + Er zijn een paar online services die het mogelijk maken om een poster af te drukken met de sterrenhemel op. Niet zo + evident, zo blijkt, aangezien dit wijzigt afhankelijk van de plaats of tijd van observatie. Vond ik tof, maar de + meeste van die services zijn relatief duur. Dan maar zelf doen! Een snelle zoektocht naar input data resulteerde in de + volgende databank:
- Na een mislukte poging om de basics van astronomie te begrijpen vond ik een beknopte uitleg die uit de doeken deed hoe - je de positie van sterren in het zichtbare stuk van de hemel moet berekenen: - http://jknight8.tripod.com/CelestialToAzEl.html. - Ik heb dit, hopelijk correct genoeg, geimplementeerd in Kotlin (check deze - github repository als je het zelf wil uitproberen). De code maakt een vector afbeelding die je later kan verwerken - in, bijvoorbeeld, een poster, met gelijk welke software die kan omgaan met een SVG afbeelding (en in gelijk welk - formaat, aangezien het een vector afbeelding is). + https://github.com/astronexus/HYG-Database
- De meeste parameters kan je gemakkelijk aanpassen, zoals de grootte en kleuren van de sterren, ofwel door een - variabele aan te passen of even in de code te duiken. + Na een gefaalde poging om de basics van astronomie te begrijpen vond ik een + mooie uitleg + van de berekening van de locatie van de sterren voor een specifieke locatie. Dit heb ik snel (en vuil) geimplementeerd + in een Kotlin project, dat je kan vinden op + mijn github repository. De code produceert een + vector afbeelding (SVG formaat) die je verder kan verwerken naar je eigen noden, en aangezien het een vector + afbeelding is kan je op + grote afmetingen printen zonder verlies van kwaliteit.
++ Beneden staan een paar voorbeeld screenshots. De volledige SVG afbeelding render ik hier niet om te voorkomen dat de + pagina te traag laadt, maar je kan een voorbeeld + hier downloaden om te openen met je + favoriete programma om vector afbeeldingen te verwerken of bekijken. +
+ +
+
+
+ + De meeste parameters kunnen gemakkelijk aangepast worden (grootte van de sterren, kleuren, ...), ofwel door een + variabele in de code aan te passen, of in de code te duiken (die relatief simpel te lezen zou moeten zijn). Het is + momenteel mogelijk om de kleur van een ster te laten overeenstemmen met de temperatuur (of klasse van de ster), als + deze gekend is in de databank: blauw voor een hete star, rood voor een koude. Sterren worden ook groter afgebeeld als + ze feller zijn, en kleiner als ze flauw zijn. Dat hield toch steek voor mij, als astronomie leek. +
++ Naar de printer! +
diff --git a/src/assets/post/hygsvg/img/stars1.PNG b/src/assets/post/hygsvg/img/stars1.png similarity index 100% rename from src/assets/post/hygsvg/img/stars1.PNG rename to src/assets/post/hygsvg/img/stars1.png diff --git a/src/assets/post/hygsvg/img/stars2.PNG b/src/assets/post/hygsvg/img/stars2.png similarity index 100% rename from src/assets/post/hygsvg/img/stars2.PNG rename to src/assets/post/hygsvg/img/stars2.png diff --git a/src/assets/post/hygsvg/img/stars3.PNG b/src/assets/post/hygsvg/img/stars3.png similarity index 100% rename from src/assets/post/hygsvg/img/stars3.PNG rename to src/assets/post/hygsvg/img/stars3.png diff --git a/src/assets/post/hygsvg/info.json b/src/assets/post/hygsvg/info.json index 6b7ff65..9e54600 100644 --- a/src/assets/post/hygsvg/info.json +++ b/src/assets/post/hygsvg/info.json @@ -1,4 +1,5 @@ { + "created_timestamp": 1539198696.0825138, "languages": [ "en", "nl" @@ -10,4 +11,4 @@ "en": "An SVG firmament!", "nl": "Een SVG firmament!" } -} +} \ No newline at end of file diff --git a/src/assets/posts.json b/src/assets/posts.json index a605936..b0de783 100644 --- a/src/assets/posts.json +++ b/src/assets/posts.json @@ -1 +1 @@ -[{"id": "first", "info": {"created_timestamp": 1515094679.342938, "title": {"en": "Who said Web 1.0 was dead anyway?", "nl": "Omdat ik het Web 1.0 tijdperk gemist heb..."}, "tags": ["blog"], "languages": ["nl", "en"]}}, {"id": "phdpresentation", "info": {"created_timestamp": 1522255558.864005, "languages": ["en", "nl"], "tags": ["tech"], "title": {"en": "Presentation of my PhD public defence", "nl": "Publieke doctoraatsverdediging - presentatie"}}}, {"id": "ikearefurbish", "info": {"created_timestamp": 1525895500.2597992, "languages": ["nl", "en"], "tags": ["project"], "title": {"en": "Better together!", "nl": "Eindelijk samen!"}}}, {"id": "beamerprototype", "info": {"created_timestamp": 1526328948.8972409, "languages": ["nl", "en"], "tags": ["project"], "title": {"en": "No more television!", "nl": "Geen televisie meer!"}}}, {"id": "beamer", "info": {"languages": ["nl", "en"], "tags": ["project"], "title": {"en": "Long live the prototype!", "nl": "Lang leve het prototype!"}, "created_timestamp": 1529827943.7910142}}] +[{"id": "first", "info": {"created_timestamp": 1515094679.342938, "title": {"en": "Who said Web 1.0 was dead anyway?", "nl": "Omdat ik het Web 1.0 tijdperk gemist heb..."}, "tags": ["blog"], "languages": ["nl", "en"]}}, {"id": "phdpresentation", "info": {"created_timestamp": 1522255558.864005, "languages": ["en", "nl"], "tags": ["tech"], "title": {"en": "Presentation of my PhD public defence", "nl": "Publieke doctoraatsverdediging - presentatie"}}}, {"id": "ikearefurbish", "info": {"created_timestamp": 1525895500.2597992, "languages": ["nl", "en"], "tags": ["project"], "title": {"en": "Better together!", "nl": "Eindelijk samen!"}}}, {"id": "beamerprototype", "info": {"created_timestamp": 1526328948.8972409, "languages": ["nl", "en"], "tags": ["project"], "title": {"en": "No more television!", "nl": "Geen televisie meer!"}}}, {"id": "beamer", "info": {"created_timestamp": 1529827943.7910142, "languages": ["nl", "en"], "tags": ["project"], "title": {"en": "Long live the prototype!", "nl": "Lang leve het prototype!"}}}, {"id": "hygsvg", "info": {"languages": ["en", "nl"], "tags": ["tech"], "title": {"en": "An SVG firmament!", "nl": "Een SVG firmament!"}, "created_timestamp": 1539198696.0825138}}] \ No newline at end of file