Welcome, Guest
Username: Password: Remember me
25 Jul 2018
Glad to announce of release of INDI Library v1.7.4 on 2018-07-25. A few drivers were added in this release as we continue to improve & stabilize existing drivers.
Read More...

TOPIC: Got no stars is gsc installed error | SOLVED

Got no stars is gsc installed error 4 years 5 months ago #848

As I said I didn't change or add anything to environment variables. I'm also using Ubuntu (13.10) I did upgrade from 12.04 LTS because from what I could work out the latest versions of the Indi drivers were not supported by 12.04 even though it is still a current version.

Please Log in or Create an account to join the conversation.

Got no stars is gsc installed error 4 years 5 months ago #849

  • thb
  • thb's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 1
I tried running the indiserver stuff on the command line, but it did not change the outcome.
For reference, I recorded a short screencast so you can see what I did.
Transcript:
  • 'which gsc' refers to /usr/bin/gsc
  • 'gsc -c 3:53:20 +87:10:23 -m 1 10' lists some stars as output, so gsc finds its data and works
  • 'indiserver -v indi_simulator_ccd indi_simulator_telescope' starts and is listening on localhost:7624
  • KStars is connected to the already running indiserverprocess and the simulator modules
  • An expose is started using the 'CCD Simulator Main Control' tab in the INDI Control Panel
  • Instantaneous, the dreaded warning/error shows up in the log
  • the KStars FITS Viewer shows only noise

Any advice how to continue?

CS,
Thorsten

Please Log in or Create an account to join the conversation.

Got no stars is gsc installed error 4 years 5 months ago #911

Hello,

Exactly the same error for me. The weather is bad in France this week and I just want to practice Ekos and Indi stuff like in the video tutorial find on youtube.
Here is what I tried :

Install gsc with the deb file (found here https://launchpadlibrarian.net/69960461/gsc_1.0-0ubuntu1_amd64.deb )
Build gsc with the source file
In both case the command which gsc returns /usr/bin/gsc
The command
gsc -c 12 34 -5 6 -r 3
returns
0495401224 188.49149 -05.14840   0.4 15.17 0.40  0 0 02O2 F;   2.95 190
0495400366 188.52469 -05.11609   0.4 12.34 0.40  0 0 02O2 T;   1.76 123
0495400366 188.52466 -05.11606   0.3 12.86 0.40  0 0 024P T;   1.76 123

I guess the problem is not with gsc.

With kstars/indi/ekos, I tried inside kstars like in the tutorial and as a client. Always the same thing. Got no stars. "is gsc installed with appropriate environment variables set ??" The simulate CCD returns a noisy frame.

I activated a debug option with the simulate CCD but no more information in the debug file.

Who will find the right answer to this bug ? :P
Because people wants to recreate what they saw on video tutorial, I think it will be a good idea to integrate the gsc package in the PPA. What do you think ?

Good night.

Sébastien.

Please Log in or Create an account to join the conversation.

Kubuntu 16.04 with KDE Plasma 5.5.5 using PPA for latest KStars-bleeding and INDI
Raspberry Pi 2 with Ubuntu Mate
Atik 314E - QHY5 - CG5

Got no stars is gsc installed error 4 years 5 months ago #912

Maybe some clues in the readme file of the GSC catalog :

To have gsc.exe running properly, two environment variables are required:
GSCDAT : the name of the directory which contains the [NS]* subdirectories;
GSCBIN : the name of the directory which contains the binary indexes.
The default setup of these variables are:
GSCDAT=/GSC on Unix set GSCDAT=\GSC on MS-DOS
GSCBIN=$GSCDAT/bin set GSCBIN=$GSCDAT\bin

The usage of two variables allow to move only the binary files ($GSCBIN)
to a magnetic drive, leaving the bulk data ($GSCDAT) to a dedicated (e.g.
optical) drive.


I had this to my /etc/environment file :
GSCDAT=/usr/share/GSC
GSCBIN=/usr/share/GSC/bin

I reboot my computer but it still doesn't work :dry:

Please Log in or Create an account to join the conversation.

Kubuntu 16.04 with KDE Plasma 5.5.5 using PPA for latest KStars-bleeding and INDI
Raspberry Pi 2 with Ubuntu Mate
Atik 314E - QHY5 - CG5

Got no stars is gsc installed error 4 years 5 months ago #913

knro wrote: You don't typically need to set any environment variables yourself.


You are right. The environment variables are define in the gsc.c file. The solution is somewhere else.
/* ------ Find out the required path variables --------------------------*/
	GSCDAT = getenv("GSCDAT") ;
	if ((!GSCDAT) 
	 && (strcmp(argv[0]+strlen(argv[0])-12, "/usr/bin/gsc") == 0)) {
	    /* When path terminated by .../bin/gsc.exe, use path */
	    GSCDAT = strdup(argv[0]) ;
	    GSCDAT[strlen(argv[0])-12] = 0 ;
	}
	if (!GSCDAT) GSCDAT = "/usr/share/GSC" ;

	/* Export the variable for the subroutines */
	ptr = malloc(strlen(GSCDAT)+8) ;
	strcpy(ptr, "GSCDAT=") ; strcat(ptr, GSCDAT) ;
	putenv(ptr) ;

	/* Get the GSCBIN environment variable */
	GSCBIN = getenv("GSCBIN");
	if (! GSCBIN) {
	    strcpy(path, GSCDAT);
	    strcat(path, "/bin");
	    GSCBIN = strdup(path);
	}

Please Log in or Create an account to join the conversation.

Kubuntu 16.04 with KDE Plasma 5.5.5 using PPA for latest KStars-bleeding and INDI
Raspberry Pi 2 with Ubuntu Mate
Atik 314E - QHY5 - CG5

Got no stars is gsc installed error 4 years 5 months ago #919

Eureka. I found the problem. Always the same history with the regional settings. In France, we work with the coma to design numbers. In the ccd_simulator code, the gsc command returns an empty string bcause of the comas.
To avoid this problem, I modified the code. It works for me but I'm sure there is a better way to do this because it will not work with english regional settings.
There is 2 parts. First time, it replaces comas with points before the gsc command call and then it replaces points with comas before parsing.

If somebody can help with a better fix, French people will appreciate :woohoo:
if (ftype==CCDChip::LIGHT_FRAME)
        {
            //sprintf(gsccmd,"gsc -c %8.6f %+8.6f -r 120 -m 0 9.1",rad+PEOffset,decPE);
            sprintf(gsccmd,"gsc -c %8.6f %+8.6f -r %4.1f -m 0 %4.2f -n 3000",rad+PEOffset,cameradec,radius,lookuplimit);
            //fprintf(stderr,"gsccmd %s\n",gsccmd);

	    // Start fix part 1
	    //replace ',' with '.'
            for(int x=0; x<=250; x++) {
                    if (gsccmd[x] == ',') {
			 gsccmd[x] = '.';
                    }
            }
	    // End of fix

            pp=popen(gsccmd,"r");
            if(pp != NULL) {
                char line[256];
                while(fgets(line,256,pp)!=NULL)
                {
                    //fprintf(stderr,"%s",line);

                    //  ok, lets parse this line for specifcs we want
                    char id[20];
                    char plate[6];
                    char ob[6];
                    float mag;
                    float mage;
                    float ra;
                    float dec;
                    float pose;
                    int band;
                    float dist;
                    int dir;
                    int c;
                    int rc;

		    //Start fix part 2
		    //replace '.' with ','
		    for(int x=0; x<=250; x++) {
		        if (line[x] == '.') {
			    line[x] = ',';
		        }
                    }
		    //End fix

                    rc=sscanf(line,"%10s %f %f %f %f %f %d %d %4s %2s %f %d",
                            id,&ra,&dec,&pose,&mag,&mage,&band,&c,plate,ob,&dist,&dir);
                    //fprintf(stderr,"Parsed %d items\n",rc);
                    if(rc==12) {
                        lines++;
                        //if(c==0) {
                        stars++;
                        //fprintf(stderr,"%s %8.4f %8.4f %5.2f %5.2f %d\n",id,ra,dec,mag,dist,dir);

                        //  Convert the ra/dec to standard co-ordinates
                        double sx;   //  standard co-ords
                        double sy;   //
                        double srar;        //  star ra in radians
                        double sdecr;       //  star dec in radians;
                        double ccdx;
                        double ccdy;

                        //fprintf(stderr,"line %s",line);
                        //fprintf(stderr,"parsed %6.5f %6.5f\n",ra,dec);

                        srar=ra*0.0174532925;
                        sdecr=dec*0.0174532925;
                        //  Handbook of astronomical image processing
                        //  page 253
                        //  equations 9.1 and 9.2
                        //  convert ra/dec to standard co-ordinates

                        sx=cos(decr)*sin(srar-rar)/( cos(decr)*cos(sdecr)*cos(srar-rar)+sin(decr)*sin(sdecr) );
                        sy=(sin(decr)*cos(sdecr)*cos(srar-rar)-cos(decr)*sin(sdecr))/( cos(decr)*cos(sdecr)*cos(srar-rar)+sin(decr)*sin(sdecr) );

                        //  now convert to microns
                        ccdx=pa*sx+pb*sy+pc;
                        ccdy=pd*sx+pe*sy+pf;


                        rc=DrawImageStar(targetChip, mag,ccdx,ccdy);
                        drawn+=rc;
                        if(rc==1)
                        {
                            //fprintf(stderr,"star %s scope %6.4f %6.4f star %6.4f %6.4f  ccd %6.2f %6.2f\n",id,rad,decPE,ra,dec,ccdx,ccdy);
                            //fprintf(stderr,"star %s ccd %6.2f %6.2f\n",id,ccdx,ccdy);
                        }
                    }
                }
                pclose(pp);
            } else
            {
                IDMessage(getDeviceName(),"Error looking up stars, is gsc installed with appropriate environment variables set ??");
                //fprintf(stderr,"Error doing gsc lookup\n");
            }
            if(drawn==0)
            {
                IDMessage(getDeviceName(),"Got no stars, is gsc installed with appropriate environment variables set ??");

            }
        }
The following user(s) said Thank You: TallFurryMan

Please Log in or Create an account to join the conversation.

Kubuntu 16.04 with KDE Plasma 5.5.5 using PPA for latest KStars-bleeding and INDI
Raspberry Pi 2 with Ubuntu Mate
Atik 314E - QHY5 - CG5

Got no stars is gsc installed error 4 years 5 months ago #920

  • thb
  • thb's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 1
Thanks for your solution!
For whatever reason, despite having set my system to "LANG=en_US.UTF-8", LC_NUMERIC was still set to the local variant which also uses "," as decimal separator.
I got the ccd_simulator running by removing that LC_NUMERIC and setting LC_ALL=C…

CS,
Thorsten

Please Log in or Create an account to join the conversation.

Got no stars is gsc installed error 4 years 4 months ago #1119

  • farom
  • farom's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Karma: 1
  • Thank you received: 11
This post describe how to replace the "," by the "." for the entire system : http://forum.ubuntu-fr.org/viewtopic.php?id=81122

It works for me.

Please Log in or Create an account to join the conversation.

Got no stars is gsc installed error 3 years 8 months ago #2567

The GSC catalog is now available for 14.04 and later:
sudo apt-get install gsc

The Original file can be dowloaded and built from source.
The following user(s) said Thank You: broadcastyourseb

Please Log in or Create an account to join the conversation.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Got no stars is gsc installed error 3 years 8 months ago #2589

Hi Jasem,

Seems everything is ok with this package. No more trouble with point or coma with the GSC catalog use.
I think we can close this topic.

Sébastien.

Please Log in or Create an account to join the conversation.

Kubuntu 16.04 with KDE Plasma 5.5.5 using PPA for latest KStars-bleeding and INDI
Raspberry Pi 2 with Ubuntu Mate
Atik 314E - QHY5 - CG5

Got no stars is gsc installed error 3 years 5 months ago #3966

  • gus_
  • gus_'s Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 45
  • Thank you received: 6
I can't follow that link to build it on my raspberry pi 2 :unsure:

Please Log in or Create an account to join the conversation.

Got no stars is gsc installed error | SOLVED 1 year 5 months ago #15699

  • pauledd
  • pauledd's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 346
  • Karma: 3
  • Thank you received: 35
As none of the mentioned links work anymore here is the source link for the Guide Star Catalog:
gsss.stsci.edu/Catalogs/GSC/GSC1/GSC1.htm
The following user(s) said Thank You: the.cakemaker

Please Log in or Create an account to join the conversation.

--= human, without Windows™ =--
pls excuse my bad english! :)
Time to create page: 0.209 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica