12 Replies - 15873 Views - Last Post: 21 March 2012 - 02:32 PM Rate Topic: -----

#1 VKSBK  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 15-September 09

Swiss Ephemeris for Astrology-program

Post icon  Posted 16 September 2009 - 06:40 AM

Dear friends,

I'm a beginner in programming, have been learning Visual Basic using MS Visual Studio 2005 for the last few months. I don't have anyone to get any help and have bought a Book "Microsoft Visual Basic 2005 Step-by-Step" and another one "Microsoft Visual C# 2005 Step-by-Step".

I am not familiar in creating Classes, Methods etc and not done/used any of the Array, etc. But went through the Book on these once - not very happy about them as I couldn't master them.

Actually I started to learn programming to write a program on Astrology. For that e have to use the Swiss Ephemeris - to get the planetary positions for a particular time etc.
I have downloaded the free version of the Swiss Ephemeris (From "www.Astro.com"), but couldn't find out how to use it, though there are sample programs - and it is written in Visual Basic 6 which I'm not familiar with. I asked help from some of the people who have written programs using it but they are reluctant to help me - so far I haven't got any help from them. Can any of you help me to write a program in Astrology?

Even the sample program gives problem - it says couldn't find the .... so using another ephemeris instead of Swiss Ephemeris.."

Since I couldn't get that correctly and Don't know how to use I'm unable to try writing any codes fr it. So please don't tell me first write some codes and show us for helping - your usual answer.

Hope to get some help from you!

Thanks
Regards
VKSBK
[color=#3333FF]

Is This A Good Question/Topic? 0
  • +

Replies To: Swiss Ephemeris for Astrology-program

#2 Luc001  Icon User is offline

  • D.I.C Addict

Reputation: 84
  • View blog
  • Posts: 617
  • Joined: 04-May 09

Re: Swiss Ephemeris for Astrology-program

Posted 16 September 2009 - 07:00 AM

Hi,

Perhaps you can find some information here.
Was This Post Helpful? 0
  • +
  • -

#3 VKSBK  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 15-September 09

Re: Swiss Ephemeris for Astrology-program

Posted 16 September 2009 - 07:17 AM

Dear friends,

Sorry, I couldn't post "Introduce meself" as I couldn't find where to write - when I click that, I didn't get any writing form, still searching for that, so I posted a question straightaway.

Dear Luc001
Thanks for the link. I know that site and I have downloadd 2 programs form that site. But I don't know whether they will help me to learn how to use Swiss Ephemeris. I'll once again try the Forum found in that site.

Thanks
Regards
VKSBK.
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9096
  • View blog
  • Posts: 34,161
  • Joined: 12-June 08

Re: Swiss Ephemeris for Astrology-program

Posted 16 September 2009 - 09:14 AM

So... you are looking for help on how to use this "Swiss Ephemeris" program (what ever the f' that is)?

How about going to that program's company's website and reading the help file?

I don't get how this is a programming question.
Was This Post Helpful? 0
  • +
  • -

#5 VKSBK  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 15-September 09

Re: Swiss Ephemeris for Astrology-program

Posted 16 September 2009 - 10:49 PM

Modi123_1,

Please read my 1st post before writing some bad comments!

I've clearly stated in the 3rd para of the 1st post what the Swiss Ephemeris is and what it is for.

If you are that lazy, I don't mind re-writing it.
Swiss Ephemeris is used to get the Planetary positions for a particular Time, particular place etc which is used to write an Astrology program.

I don't think you can call it a Program. May be, a file - .There is a sample -Demo- program to show how to use the Swiss Ephemeris to create Astrology program. This gives the planetary positions etc on giving the date, place (Country, city...) etc.

If you still can't understand, please go to the web site I mentioned in the 1st post and see / download, study, understand and then reply.

Please refrain from using bad language ...

Thanks
VKSBK.

Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9096
  • View blog
  • Posts: 34,161
  • Joined: 12-June 08

Re: Swiss Ephemeris for Astrology-program

Posted 17 September 2009 - 09:37 AM

Wow.. Okay... Didn't expect such a snarky response. I'll try and see if you can understand the nature of my f'n post. (Side note - what bad language?)

First.. I really didn't care what it was that was just a question if you were willing to cough up more information. It wasn't the crux of my post.

Second.. What I was looking for was a definitive answer if you are trying to write a program or understand *HOW* to use something you got off a website.

Quote

Actually I started to learn programming to write a program on Astrology.

Okay we know you are learning to write one. Good so far. Let's see if you outline a problem.

Quote

I have downloaded the free version of the Swiss Ephemeris <snip> but couldn't find out how to use it, though there are sample programs

This is where it gets confusing. It's not a problem with a piece of VB.NET code. You tell us you can't get this program working. This forum is not tech support for program X or company Y. *shrug* Let's move on and see if there is an actual program question.

Quote

But I don't know whether they will help me to learn how to use Swiss Ephemeris

This post you had to the other guy seems to indicate you just want to learn how to use this Swiss Kiss stuff. Refer to above.

Quote

Can any of you help me to write a program in Astrology?

Another issue.. do you want someone to write it for you? If so post it the "post a job" forum here. Asking 'for teh codez' is frowned upon. Buck up and learn it yourself!


Side note saying "to get the planetary positions for a particular time etc." does not in any real way explain what this Swiss Miss thing is. As I said I really don't care. It was just a passing comment hoping you might expand. Oh, and I won't be going to a quack site about quack things.

So.. all that being said:
do you..
have a question..
about a program you are making?

:P
Was This Post Helpful? 0
  • +
  • -

#7 VKSBK  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 15-September 09

Re: Swiss Ephemeris for Astrology-program

Posted 17 September 2009 - 06:58 PM

View Postmodi123_1, on 17 Sep, 2009 - 08:37 AM, said:

Wow.. Okay... Didn't expect such a snarky response. I'll try and see if you can understand the nature of my f'n post. (Side note - what bad language?)

First.. I really didn't care what it was that was just a question if you were willing to cough up more information. It wasn't the crux of my post.

Second.. What I was looking for was a definitive answer if you are trying to write a program or understand *HOW* to use something you got off a website.

Quote

Actually I started to learn programming to write a program on Astrology.

Okay we know you are learning to write one. Good so far. Let's see if you outline a problem.

Quote

I have downloaded the free version of the Swiss Ephemeris <snip> but couldn't find out how to use it, though there are sample programs

This is where it gets confusing. It's not a problem with a piece of VB.NET code. You tell us you can't get this program working. This forum is not tech support for program X or company Y. *shrug* Let's move on and see if there is an actual program question.

Quote

But I don't know whether they will help me to learn how to use Swiss Ephemeris

This post you had to the other guy seems to indicate you just want to learn how to use this Swiss Kiss stuff. Refer to above.

Quote

Can any of you help me to write a program in Astrology?

Another issue.. do you want someone to write it for you? If so post it the "post a job" forum here. Asking 'for teh codez' is frowned upon. Buck up and learn it yourself!


Side note saying "to get the planetary positions for a particular time etc." does not in any real way explain what this Swiss Miss thing is. As I said I really don't care. It was just a passing comment hoping you might expand. Oh, and I won't be going to a quack site about quack things.

So.. all that being said:
do you..
have a question..
about a program you are making?

:P

Was This Post Helpful? 0
  • +
  • -

#8 VKSBK  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 15-September 09

Re: Swiss Ephemeris for Astrology-program

Posted 17 September 2009 - 07:28 PM

Hi,

Sorry about reposting the reply from Modi123_1 by mistake.

I've pasted the ReadMe.txt from the Astro.com for the Swiss Ephemeris.

I may have used the wrong words to refer to that making you to think it is a program and I don't know how to use it. So if you read this you will understand what it is, as you are a advanced programmer and I am a beginner - who don't know what is what.

Anyway, What do you mean by " So... you are looking for help on how to use this "Swiss Ephemeris" program (what ever the f' that is
)?

Further, I don't want to continue this fight - not my nature, if you really want to help read that and answer or just ignore it.

Yes, you don't care and you don't have to "As I said I really don't care. It was just a passing comment hoping you might expand. Oh, and I won't be going to a quack site about quack things.".

"So.. all that being said:
do you..
have a question..
about a program you are making? ", Yes I have, that is why I am posting this. Read the "ReadMe txt" then you may get some idea.

That was written in VB 5, which I don't know - a problem to understand the files of the Demo program. As I don't know and I want help to understand how to Call the SE Functions
.

Hope I am not wasting your time as well as mine!!

Thanks for the fight - a useless one - started by you,

[color=#FF6666]Given below is the ReadMe txt:


00readme.txt 27-jul-2008 by Alois Treindl

This download area contains the Free Edition of the SWISS EPHEMERIS.

About the Swiss Ephemeris:

Swiss Ephemeris is a software toolbox for programmers of astrological
software. It is of little use for a non-programmer

The test programs SWETEST.EXE and SWEWIN.EXE come
with it as demonstration programs for programmers to show them how
they can call the SE functions.
swetest.exe can be used to compute complete natal horoscopes as textual
output.

Programmers all over the world have started to build SE into their
software.

SE ist built according to the highest standards of precision available
in astronomical data. It is able to reproduce the ephemeris data in
astronomical standard books up to the last printed digit.

Detailed information is available at http://www.astro.com/swisseph
or in the documentation files included in the distribution.

Description of files:
=====================
While we have made available many single files, so that they can
be viewed directly in a browser, it is much more convenient to
download the files in '.zip' or '.gz' format. Except for the single
asteroid files, all files in this area available in one of the 'zip' or
'gz' archives and should be downloaded in the archived form for higher
speed.

LICENSE.TXT
The Swiss Ephemeris is published currently under GPL, and
alternatively under Swiss Ephemeris Professional License,
You must read and accept the license before you download any files.

swe_unix_src_1.74.tar.gz
The release of the Swiss Ephemeris source code.
It has currently been tested on Linux and Windows 2003.
A simple Makefile to create a Unix library is included.
The unix-readable of the doc directory are also included.
The release number is sometimes changing frequently when we are in an
active development phase.
Sometimes several releases will be available at the same time.
It is usually best to take the one with the highest release number.

Release 1.61 was the last one which contained 16-bit support.
It is permanently archived in subdirectory sweph161.

Release 1.67 was the last with the old IAU precission model 1976
(Lieske), old nutation model 1980 (Wahr). It is preserved
in swe_unix_src_1.67.tar.gz and sweph_1.67.zip

sweph.zip
The complete Swiss Ephemeris package for Windows (32bit),
except the ephemeris data files.
See online documentation at http://www.astro.com/swisseph
or in the doc directory for more details.
Small sample programs and build-projects are included for
- Visual C++ .net 2003
- Visual Basic 5.0
- Delphi 32-bit
Note for release 1.67 and later: Visual Basic files have not been updated and
tested, as we currently do not possess a copy of VB running on Windows 2003.

swephzip.txt
overview of content of the sweph.zip package

src/*
unpacked source archive, identical to content of archive file above,
with the highest release number.

doc/*
swisseph.doc Feature Documentation, MS Word format
swephprg.doc Programmer's Documentation, MS Word format
[there are also PDF and HTML versions of these files]
graphical labels (Corel Draw 7.0 and GIF versions)
All files are also contained in the swe_src_..gz archive.

ephe Directory with binary ephemeris files.

programs
A directory containing sample and utility programs for Windows:
swewin32.zip
zipped archive containing swewin.exe.
This is a small Windows application which computes complete
horoscopes, including houses and asteroids.
It runs on Windows 95/98/NT/2000/XP

swetest.exe
executable Swiss Ephemeris program.
This is a 32-bit Console mode application.
To get information about the many features of this program, run
swetest -? > out.txt
and print the file out.txt, or view it with your text editor.
This is just a sample to demonstrate the precision of the
ephemeris, and to show the typical use of a few cally.

swetest.zip
zipped version of swetest.exe for faster download.

unzip.exe
A Windows utility to unzip .ZIP files.
If you have WinZip on your system, just double click on the
the downloaded ZIP files and Winzip will take care of unzipping.
Otherwise you can use unzip.exe: open a command (DOS) Windows,
type the command: unzip sweph.zip
and the zip-archive will be unpacked in a local directory named
'sweph'.

It is possible to use SWEWIN and SWETEST without the ephemeris files.
If the program finds no ephemeris files, it uses the builtin
analytical ephemeris which provides "only" a precision of 0.1 arc seconds
for the planets and 3" for the Moon.
No asteroids will be available, and no barycentric option can be used.

The SWISS EPHEMERIS can be licensed by programmers to include this
calculation engine in their software. More information is found at
http://www.astro.com/swisseph/

Depending on your application the free edition under the Public License
may apply, or you may have to acquire a professional license for a fee.

CDROM distribution:
===================
The content of parts of this downlaod area is also available on CDROM,
for a price of 39.90 Swiss Francs plus shipping (approx. USD 30.-).
The CDROM contains about 600 Mbytes of data, with most space taken
up by the original JPL DE406 ephemeris files (200 Mb) and a selected
set of short 600-year asteroid files.


Legal restrictions
==================
Read LICENSE.TXT

Mailing list
============
We maintain a mailing list which we use to send developers information about
updates, bugs etc.
If you want to have your name added to this mailing list, please
visit groups.yahoo.com/swisseph

Feedback
========
We welcome any suggestions and comments you may have about the Swiss Ephemeris.
Please email to swisseph@groups.yahoo.com

If you want your feedback distributed to all members of the swisseph
mailing list, please write to swisseph@astro.ch

Public feedback to the Swiss Ephemeris is also welcome in our general guestbook
on the website.


Java-Version:
=============
Thomas Mack has ported the Swiss Ephemeris library to Java.
His work can be found at: http://www.th-mack.d...ional/download/
If you use it for commercial or for non-open-source purposes, please
be aware that a Swiss Ephemeris professional license by Astrodienst
is also required for the Java version, besides any additional requirements
which may be defined by Thomas Mack.

Numerical Integrator
====================
the numerical integrator to prepare swisss ephemeris files is not in a state
fit for publication.

There is a file numint.tar.gz which contains all the parts needed for it,
so that those who want to look can have a look at it.
The permission to use it is currently 'read source code' only.



VKSBK.

PS: Please don't continue to write any such, if you don't want help just keep off, some others might help.
Was This Post Helpful? 0
  • +
  • -

#9 Guest_wyomesh*


Reputation:

Re: Swiss Ephemeris for Astrology-program

Posted 03 January 2011 - 12:31 AM

View PostVKSBK, on 16 September 2009 - 05:40 AM, said:

Dear friends,

I'm a beginner in programming, have been learning Visual Basic using MS Visual Studio 2005 for the last few months. I don't have anyone to get any help and have bought a Book "Microsoft Visual Basic 2005 Step-by-Step" and another one "Microsoft Visual C# 2005 Step-by-Step".

I am not familiar in creating Classes, Methods etc and not done/used any of the Array, etc. But went through the Book on these once - not very happy about them as I couldn't master them.

Actually I started to learn programming to write a program on Astrology. For that e have to use the Swiss Ephemeris - to get the planetary positions for a particular time etc.
I have downloaded the free version of the Swiss Ephemeris (From "www.Astro.com"), but couldn't find out how to use it, though there are sample programs - and it is written in Visual Basic 6 which I'm not familiar with. I asked help from some of the people who have written programs using it but they are reluctant to help me - so far I haven't got any help from them. Can any of you help me to write a program in Astrology?

Even the sample program gives problem - it says couldn't find the .... so using another ephemeris instead of Swiss Ephemeris.."

Since I couldn't get that correctly and Don't know how to use I'm unable to try writing any codes fr it. So please don't tell me first write some codes and show us for helping - your usual answer.

Hope to get some help from you!

Thanks
Regards
VKSBK
[color=#3333FF]

Was This Post Helpful? -1

#10 Guest_wyomesh*


Reputation:

Re: Swiss Ephemeris for Astrology-program

Posted 03 January 2011 - 12:46 AM

Hello

Swiss ephemeris is compatible with older versions of visual studio, but we can use it with visual studio .NET too.
download the sweph.zip file from the website. there you should find declaration.txt. these are the declarations
for VB6.0. since data types in VB.NET can store a lot more data than it could store in previous versions. so you
will have to manually replace the LONG data type into INTEGER data type, Integer to SHORT etc. if you want to use those declaration with VB.NET.
then copy all these declarations in a module.
place your SWEDLL32.DLL in "Debug" directory, also put your ephemeris files there.
first you will have to call the swe_set_eph_path function to set the ephemeris path.
then start calling functions to calculate what you want.

making a DLL is so simple in .NET, just add a class module in your application

class class-name
' your functions and other things.
end class

.NET will compile automatically it as an DLL.

now if you want to use this DLL for calling functions in it , just add a reference to this DLL in your application.
dim aa as new MyFunctions
dim kkk as integer
kkk= aa.myfunction1(arg1,arg2) .... etc.

where MyFunctions is your DLL's name added in references.
aa is an object of this DLL class and myfunction1 is a function returns integer, and takes 2 arguments arg1 and arg2.

So .NET is very simple. If you want programming help on functions provided in SWISS ephemeris then download it's
full documentation available on website.

Thanks

View Postwyomesh, on 02 January 2011 - 11:31 PM, said:

View PostVKSBK, on 16 September 2009 - 05:40 AM, said:

Dear friends,

I'm a beginner in programming, have been learning Visual Basic using MS Visual Studio 2005 for the last few months. I don't have anyone to get any help and have bought a Book "Microsoft Visual Basic 2005 Step-by-Step" and another one "Microsoft Visual C# 2005 Step-by-Step".

I am not familiar in creating Classes, Methods etc and not done/used any of the Array, etc. But went through the Book on these once - not very happy about them as I couldn't master them.

Actually I started to learn programming to write a program on Astrology. For that e have to use the Swiss Ephemeris - to get the planetary positions for a particular time etc.
I have downloaded the free version of the Swiss Ephemeris (From "www.Astro.com"), but couldn't find out how to use it, though there are sample programs - and it is written in Visual Basic 6 which I'm not familiar with. I asked help from some of the people who have written programs using it but they are reluctant to help me - so far I haven't got any help from them. Can any of you help me to write a program in Astrology?

Even the sample program gives problem - it says couldn't find the .... so using another ephemeris instead of Swiss Ephemeris.."

Since I couldn't get that correctly and Don't know how to use I'm unable to try writing any codes fr it. So please don't tell me first write some codes and show us for helping - your usual answer.

Hope to get some help from you!

Thanks
Regards
VKSBK
[color=#3333FF]

Was This Post Helpful? -1

#11 VKSBK  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 15-September 09

Re: Swiss Ephemeris for Astrology-program

Posted 03 January 2011 - 04:24 AM

Dear Wyomesh,

Thanks you very much for your reply.

I found out how to use the Swiss Ephemeris and already created a Program using it ( I started using it since 2009 Sept / Oct); I am getting all the planetary positions and House (Cusp) position.
There are more features to be added to the program which I need to learn how to program.

You must thank you for telling me how to make a dll file.

By the way, did you visit the Swiss Ephemeris site to know about it or are you using Swiss Ephemeris for creating a Astrology software ?

Just curious !

Anyway, thank you very much for replying and teaching me some programming.

Thanks
Regards

VKSBK.







View Postwyomesh, on 02 January 2011 - 11:46 PM, said:

Hello

Swiss ephemeris is compatible with older versions of visual studio, but we can use it with visual studio .NET too.
download the sweph.zip file from the website. there you should find declaration.txt. these are the declarations
for VB6.0. since data types in VB.NET can store a lot more data than it could store in previous versions. so you
will have to manually replace the LONG data type into INTEGER data type, Integer to SHORT etc. if you want to use those declaration with VB.NET.
then copy all these declarations in a module.
place your SWEDLL32.DLL in "Debug" directory, also put your ephemeris files there.
first you will have to call the swe_set_eph_path function to set the ephemeris path.
then start calling functions to calculate what you want.

making a DLL is so simple in .NET, just add a class module in your application

class class-name
' your functions and other things.
end class

.NET will compile automatically it as an DLL.

now if you want to use this DLL for calling functions in it , just add a reference to this DLL in your application.
dim aa as new MyFunctions
dim kkk as integer
kkk= aa.myfunction1(arg1,arg2) .... etc.

where MyFunctions is your DLL's name added in references.
aa is an object of this DLL class and myfunction1 is a function returns integer, and takes 2 arguments arg1 and arg2.

So .NET is very simple. If you want programming help on functions provided in SWISS ephemeris then download it's
full documentation available on website.

Thanks

View Postwyomesh, on 02 January 2011 - 11:31 PM, said:

View PostVKSBK, on 16 September 2009 - 05:40 AM, said:

Dear friends,

I'm a beginner in programming, have been learning Visual Basic using MS Visual Studio 2005 for the last few months. I don't have anyone to get any help and have bought a Book "Microsoft Visual Basic 2005 Step-by-Step" and another one "Microsoft Visual C# 2005 Step-by-Step".

I am not familiar in creating Classes, Methods etc and not done/used any of the Array, etc. But went through the Book on these once - not very happy about them as I couldn't master them.

Actually I started to learn programming to write a program on Astrology. For that e have to use the Swiss Ephemeris - to get the planetary positions for a particular time etc.
I have downloaded the free version of the Swiss Ephemeris (From "www.Astro.com"), but couldn't find out how to use it, though there are sample programs - and it is written in Visual Basic 6 which I'm not familiar with. I asked help from some of the people who have written programs using it but they are reluctant to help me - so far I haven't got any help from them. Can any of you help me to write a program in Astrology?

Even the sample program gives problem - it says couldn't find the .... so using another ephemeris instead of Swiss Ephemeris.."

Since I couldn't get that correctly and Don't know how to use I'm unable to try writing any codes fr it. So please don't tell me first write some codes and show us for helping - your usual answer.

Hope to get some help from you!

Thanks
Regards
VKSBK
[color=#3333FF]

Was This Post Helpful? 0
  • +
  • -

#12 Chamile  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 08-March 11

Re: Swiss Ephemeris for Astrology-program

Posted 08 March 2011 - 12:07 PM

Hi VKSBK
Do you know where I can get help for drawing a horoscope with .Net? Did you succeed to do that?
Thanks,
Chamile
Was This Post Helpful? 0
  • +
  • -

#13 otis_lewd  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 26-August 09

Re: Swiss Ephemeris for Astrology-program

Posted 21 March 2012 - 02:32 PM

For all those trying to use the Swiss ephemeris in order to create astrology software, please google "AstroWin" and see example source code and scripts in VB6 and PHP. If I might use a URL, then visit www.astrowin.org.

Allen
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1