×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Got no stars is gsc installed error | SOLVED

  • Posts: 8
  • Thank you received: 1
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.
10 years 4 days ago #848

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

  • 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
10 years 4 days ago #849

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

  • Posts: 112
  • Thank you received: 12
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 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.
Linux Mint 19 Cinnamon using PPA for latest KStars-bleeding and INDI
Raspberry Pi 3 B+ with StellarMate
Atik 314E - ASI120M - CG5 with Celestron C9.25
9 years 11 months ago #911

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

  • Posts: 112
  • Thank you received: 12
Maybe some clues in the readme file of the GSC catalog :

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:
Linux Mint 19 Cinnamon using PPA for latest KStars-bleeding and INDI
Raspberry Pi 3 B+ with StellarMate
Atik 314E - ASI120M - CG5 with Celestron C9.25
9 years 11 months ago #912

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

  • Posts: 112
  • Thank you received: 12

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);
	}
Linux Mint 19 Cinnamon using PPA for latest KStars-bleeding and INDI
Raspberry Pi 3 B+ with StellarMate
Atik 314E - ASI120M - CG5 with Celestron C9.25
9 years 11 months ago #913

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

  • Posts: 112
  • Thank you received: 12
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 ??");
 
            }
        }
Linux Mint 19 Cinnamon using PPA for latest KStars-bleeding and INDI
Raspberry Pi 3 B+ with StellarMate
Atik 314E - ASI120M - CG5 with Celestron C9.25
The following user(s) said Thank You: Eric
9 years 11 months ago #919

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

  • 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
9 years 11 months ago #920

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

  • Posts: 18
  • Thank you received: 14
This post describe how to replace the "," by the "." for the entire system : forum.ubuntu-fr.org/viewtopic.php?id=81122

It works for me.
9 years 10 months ago #1119

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

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: Sébastien
9 years 2 months ago #2567

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

  • Posts: 112
  • Thank you received: 12
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.
Linux Mint 19 Cinnamon using PPA for latest KStars-bleeding and INDI
Raspberry Pi 3 B+ with StellarMate
Atik 314E - ASI120M - CG5 with Celestron C9.25
9 years 2 months ago #2589

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

  • Posts: 45
  • Thank you received: 6
I can't follow that link to build it on my raspberry pi 2 :unsure:
8 years 11 months ago #3966

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

  • Posts: 314
  • Thank you received: 34
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
--= human, without Windows™ =--
pls excuse my bad english! :)
The following user(s) said Thank You: the.cakemaker
7 years 1 day ago #15699

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

Time to create page: 1.049 seconds