If I can bear the embarrassmentsu_liam wrote:Any chance of your exposing the source code?
The Church of Climatology: App rumblings
Re: The Church of Climatology: App rumblings
"It is quite certain, in particular, that I have always been insane." ~ Aleister Crowley
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
- Daistallia
- Lebom
- Posts: 86
- Joined: Wed May 28, 2008 11:33 pm
- Location: Iowa
- Contact:
Re: The Church of Climatology: App rumblings
Free the code. (Not that I could necessarily use it, but just like to see open source.)Anguipes wrote:If I can bear the embarrassmentsu_liam wrote:Any chance of your exposing the source code?
Also, I assume you were planning on making it adjustable to various star type, yes?
Conworlding Links New Page: https://daistallia.neocities.org/links.html
Conworlding Links Old Page: http://gauzstien.angelfire.com/links.html
Conworlding Links Thread
Conworlding Links Old Page: http://gauzstien.angelfire.com/links.html
Conworlding Links Thread
Re: The Church of Climatology: App rumblings
As long as you can apply it to the Earth so that I'll know what the weather will be like when I'm on holiday, your code will be beyond any reasonable criticismAnguipes wrote:If I can bear the embarrassmentsu_liam wrote:Any chance of your exposing the source code?
Zompist's Markov generator wrote:it was labelled" orange marmalade," but that is unutterably hideous.
Re: The Church of Climatology: App rumblings
Only if your holiday is in Manchester.Nancy Blackett wrote:As long as you can apply it to the Earth so that I'll know what the weather will be like when I'm on holiday, your code will be beyond any reasonable criticismAnguipes wrote:If I can bear the embarrassmentsu_liam wrote:Any chance of your exposing the source code?
When there's a program to show, source code will certainly be available to anyone who wants a peek.
Daistallia wrote:Also, I assume you were planning on making it adjustable to various star type, yes?
"Adjustable" is my main goal (well, apart from "working"). Want to set the energy output from your star directly? Sure. Want to calculate it from a radius and surface temperature? Sure. Want to fiddle with the specific heat capacities of land and/or ocean areas? Why not.
Most of this flexibility will take the form of an editable config file full of variables.
I have currently chickened out of oblate spheroid planets, and will probably be working from circular orbits, at least for early stuff.
I'm also not going to go into great detail about atmospheric composition, or anything else that starts to push too hard towards "real physics". There are detailed climate models out there, source code available, for anyone who's that determined to catch every single possible variable of a realistic planet. I'm more after a quick and dirty solution that can model from basic principles (heat -> atmospheric circulation -> preciptiation), and then be played with in more of an artistic, non-scientific way - adding the Zone of Fire to model of Almea, for example.
"It is quite certain, in particular, that I have always been insane." ~ Aleister Crowley
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
Re: The Church of Climatology: App rumblings
Is that not an oxymoron?Anguipes wrote:Only if your holiday is in Manchester.
Zompist's Markov generator wrote:it was labelled" orange marmalade," but that is unutterably hideous.
Re: The Church of Climatology: App rumblings
If anyone plans on working with highly elliptical orbits (eccentricity over 0.3), they're going to have to find me some C++ code to solve Kepler's equation for those cases. I'm currently running the (C?) code from here, which runs the < .3 case fine but sulks at everything else. This may well be because it's C rather than C++, or some other relatively simple matter that I would know about if I actually bothered to study programming.
Aside from that things are going well, at least in that I should have some useful heat data output soonish.
Aside from that things are going well, at least in that I should have some useful heat data output soonish.
"It is quite certain, in particular, that I have always been insane." ~ Aleister Crowley
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
Re: The Church of Climatology: App rumblings
It's not because it's C. It actually looks like it should handle eccentricity up to 0.8 ...pretty... well. Its just that over about e=0.3 it takes a lot of iterations to find the root unless you make a really good initial guess. Doing it by hand usually bogs down scary bad at 0.1, so don't complain...Anguipes wrote:If anyone plans on working with highly elliptical orbits (eccentricity over 0.3), they're going to have to find me some C++ code to solve Kepler's equation for those cases. I'm currently running the (C?) code from here, which runs the < .3 case fine but sulks at everything else.
Two hints. One, unless they're darting around little class-M stars, planets with orbital eccentricities much over 0.3 are really unlikely to be remotely fit for humans. Without invoking magic... Two, assuming that your angular coordinates are zeroed at perihelion, a good guess for about nine tenths of the year would be right around pi(180º). With these two points in mind, a fastish computer and a widdle bit of patience, you got it made my man!
P.S: Hey Nancy(are you ever going to change that back?), who's the angry lady in your avatar? Kinda makes me think of a very young Jodie Foster(yum).
My little attempt at a blog dedicated to worldbuilding Astrographer.
World-building/Non-linguistic Resources
World-building/Non-linguistic Resources
Re: The Church of Climatology: App rumblings
No (why???), and I'm not saying It isn't Jodie Foster.su_liam wrote:P.S: Hey Nancy(are you ever going to change that back?), who's the angry lady in your avatar? Kinda makes me think of a very young Jodie Foster(yum).
Zompist's Markov generator wrote:it was labelled" orange marmalade," but that is unutterably hideous.
Re: The Church of Climatology: App rumblings
Thanks. I'm aware that high eccentricities are unlikely in strictly realistic conworlds, but I would like this program to (eventually) cover as many crazy possibilities as possible.su_liam wrote:It's not because it's C. It actually looks like it should handle eccentricity up to 0.8 ...pretty... well. Its just that over about e=0.3 it takes a lot of iterations to find the root unless you make a really good initial guess. Doing it by hand usually bogs down scary bad at 0.1, so don't complain...
Two hints. One, unless they're darting around little class-M stars, planets with orbital eccentricities much over 0.3 are really unlikely to be remotely fit for humans. Without invoking magic... Two, assuming that your angular coordinates are zeroed at perihelion, a good guess for about nine tenths of the year would be right around pi(180º). With these two points in mind, a fastish computer and a widdle bit of patience, you got it made my man!
"It is quite certain, in particular, that I have always been insane." ~ Aleister Crowley
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
Re: The Church of Climatology: App rumblings
It looks like the code you linked to should eventually cover everything up to hyperbolic escape. By eventually I mean it might take awhile to calculate.Anguipes wrote:Thanks. I'm aware that high eccentricities are unlikely in strictly realistic conworlds, but I would like this program to (eventually) cover as many crazy possibilities as possible.
Mathematica's FindRoot can solve this for e=0.99 and a Mean Anomaly of 30º in a couple seconds on my computer with some pretty stupid initial guesses. My processor spikes to 67ºC while its doing the job. It fails if I guess pi(?). The Solve function is slower and complains about the inverse trig functions, but it is more reliable and less dependent on my not making a stupid guess. Even Solve takes less than five seconds. That's doing symbolic math and with no optimizations on my part.
I'll need to compile the code you linked to, but I just can't figure out why it would be much slower. The Mathematica routine I'm using is just plain stupid(I wrote it) and has a lot of overhead, that C code actually looks pretty nicely optimized from what I can tell.
My little attempt at a blog dedicated to worldbuilding Astrographer.
World-building/Non-linguistic Resources
World-building/Non-linguistic Resources
Re: The Church of Climatology: App rumblings
I've put up a first-draft of the temperatures chapter of my forthcoming(? hahaha, er I hope.) webbook on conworlding.
The link is right here.
Please don't laugh at me too hard. I hope someday to be a n00b!
The link is right here.
Please don't laugh at me too hard. I hope someday to be a n00b!
My little attempt at a blog dedicated to worldbuilding Astrographer.
World-building/Non-linguistic Resources
World-building/Non-linguistic Resources
Re: The Church of Climatology: App rumblings
Heat (or rather energy) oddity: around the solstices, an odd phenomenon happens at the pole pointing towards the sun - according to my pretty pictures, the latitude equal to the axial incline of the planet experiences an optimum balance of day length and sun angle and actually gets more energy per day than the latitudes directly below and above it.
Can anyone confirm that this is a real phenomenon, or has something gone wrong with my maths?
Can anyone confirm that this is a real phenomenon, or has something gone wrong with my maths?
"It is quite certain, in particular, that I have always been insane." ~ Aleister Crowley
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
- the duke of nuke
- Avisaru
- Posts: 467
- Joined: Thu Apr 06, 2006 1:23 pm
- Location: Leicestershire
- Contact:
Re: The Church of Climatology: App rumblings
Yes - these latitudes are the tropics (of Cancer and Capricorn, on Earth).
XinuX wrote:I learned this language, but then I sneezed and now am in prison for high treason. 0/10 would not speak again.
Re: The Church of Climatology: App rumblings
Anguipes wrote:the latitude equal to the axial incline of the planet
...arse. That'll teach me to debug programs at three in the morning.the duke of nuke wrote:Yes - these latitudes are the tropics.
It's not the tropics, because I gave the wrong angle I meant 90 - axial incline of the planet, the polar circles. I suspect I have the maths for mean sun elevation wrong in 24-hour daylight cases.
"It is quite certain, in particular, that I have always been insane." ~ Aleister Crowley
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
Re: The Church of Climatology: App rumblings
I remember reading... somewhere(which I can't find in my current state)... that, on planets with an axial inclination in excess of 45º, the annual mean insolation is greatest at the poles. I have yet to figure out the calculations for annual mean of insolation, so I don't know.
My little attempt at a blog dedicated to worldbuilding Astrographer.
World-building/Non-linguistic Resources
World-building/Non-linguistic Resources
Re: The Church of Climatology: App rumblings
I think I've got things fixed now. Still a little suspicious of my day lengths, but at least I'm not getting odd blips and ridges.
"It is quite certain, in particular, that I have always been insane." ~ Aleister Crowley
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
Re: The Church of Climatology: App rumblings
That's not what I'm gettingsu_liam wrote:I remember reading... somewhere(which I can't find in my current state)... that, on planets with an axial inclination in excess of 45º, the annual mean insolation is greatest at the poles. I have yet to figure out the calculations for annual mean of insolation, so I don't know.
The higher the inclination the more evenly the annual mean insolation is spread, up to an almost completely even annual insolation at 90 degrees. I used a very quick and dirty method of getting the average though, so who knows.
"It is quite certain, in particular, that I have always been insane." ~ Aleister Crowley
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
- the duke of nuke
- Avisaru
- Posts: 467
- Joined: Thu Apr 06, 2006 1:23 pm
- Location: Leicestershire
- Contact:
Re: The Church of Climatology: App rumblings
Hm. I'll leave this to the experts...
but... out of interest, will we be able to use this for planets that are tidally locked, or that have ridiculously long days?
Anyways, I'm looking forward to seeing a usable version
but... out of interest, will we be able to use this for planets that are tidally locked, or that have ridiculously long days?
Anyways, I'm looking forward to seeing a usable version
XinuX wrote:I learned this language, but then I sneezed and now am in prison for high treason. 0/10 would not speak again.
Re: The Church of Climatology: App rumblings
Huhh.
You're getting what I'd instinctively expect. At 90º inclination, the whole world gets its day in the Sun.
Considering it further, I think the peak insolation was what I was reading about.
Hopefully my brain will function soon.
You're getting what I'd instinctively expect. At 90º inclination, the whole world gets its day in the Sun.
Considering it further, I think the peak insolation was what I was reading about.
Hopefully my brain will function soon.
My little attempt at a blog dedicated to worldbuilding Astrographer.
World-building/Non-linguistic Resources
World-building/Non-linguistic Resources
Re: The Church of Climatology: App rumblings
Probably not in version 1.0, unless there's a demand. It's something I want to be possible, but at the moment I'm taking a fixed orbital position for each "day", which is a) simple and b) bad, as you can set day length independently and well out of the threshold of stationary days making any sense.the duke of nuke wrote: out of interest, will we be able to use this for planets that are tidally locked, or that have ridiculously long days?
I don't want to get too bogged down in astronomy for v1, because there are a vast amount of cases (long days, tidal locking, twin planets, binary stars...) and they all effect only one thing - energy input patterns. If I can get a program that takes energy input patterns and turns them into a climate, that's well over half the work done. Groovy astronomical setups can then be added to a working product.
"It is quite certain, in particular, that I have always been insane." ~ Aleister Crowley
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
Re: The Church of Climatology: App rumblings
Incidentally, because of refraction and the fact that if the sun's partly over the horizon it counts as daytime, the equator of a planet with 90º axial tilt would get a 24-hour-long day at both solstices.
MI DRALAS, KHARULE MEVO STANI?!
Re: The Church of Climatology: App rumblings
LALALALALA I CAN'T HEAR YOU LALALALAbulbaquil wrote:...refraction...
"It is quite certain, in particular, that I have always been insane." ~ Aleister Crowley
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
Re: The Church of Climatology: App rumblings
Tidal locking is one special case that would probably be worth handling.
My little attempt at a blog dedicated to worldbuilding Astrographer.
World-building/Non-linguistic Resources
World-building/Non-linguistic Resources
Re: The Church of Climatology: App rumblings
Well, things have passed an important threshold: I am now getting honest to goodness temperatures out.
This shows the theoretical rise in temperature that would caused by the incoming energy for one day around the (NH) winter. You can see how the oceans heat slower than the land. There are two more factors I need for a proper first pass* temperature map - the amount of heat the same areas would be losing, and a base temperature to modify.
*Calculating surface temperature relies (amongst other things) on cloud cover. Calculating cloud cover relies on air motion and moisture capacity. Which is calculated from temperature. Climate modeling is full of this kind of thing.
This shows the theoretical rise in temperature that would caused by the incoming energy for one day around the (NH) winter. You can see how the oceans heat slower than the land. There are two more factors I need for a proper first pass* temperature map - the amount of heat the same areas would be losing, and a base temperature to modify.
*Calculating surface temperature relies (amongst other things) on cloud cover. Calculating cloud cover relies on air motion and moisture capacity. Which is calculated from temperature. Climate modeling is full of this kind of thing.
"It is quite certain, in particular, that I have always been insane." ~ Aleister Crowley
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel
"Save us all from arrogant men/And all the causes they're for/I won't be righteous again/I'm not that sure any more." ~ Shades of Grey, Billy Joel