You can subscribe to this list here.
2004 |
Jan
(1) |
Feb
(1) |
Mar
(45) |
Apr
(2) |
May
(9) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: André L. A. <st...@us...> - 2004-06-08 15:22:30
|
Update of /cvsroot/uts/uts/src/cam/camfits.st7 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23662 Modified Files: Makefile.am main.cpp Added Files: getindex.c getindex.h Log Message: Continues image names in camfits.st7: increments bfname-####.fits. Also some error handling. --- NEW FILE: getindex.h --- #ifndef GETINDEX_H #ifdef __cplusplus extern "C" { #endif int getindex(char *bfname); #ifdef __cplusplus } #endif #define GETINDEX_H #endif Index: main.cpp =================================================================== RCS file: /cvsroot/uts/uts/src/cam/camfits.st7/main.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** main.cpp 18 Mar 2004 19:30:19 -0000 1.1 --- main.cpp 8 Jun 2004 15:22:20 -0000 1.2 *************** *** 16,20 **** #include "fitsio.h" #include "csbigcam.h" ! using namespace std; --- 16,21 ---- #include "fitsio.h" #include "csbigcam.h" ! #include "getindex.h" ! using namespace std; *************** *** 29,33 **** char *exec_name; // Name of executable file static char *conffname; // configuration file ! static char *imagefname; // image file static double exptime; // seconds static int interval; // seconds --- 30,35 ---- char *exec_name; // Name of executable file static char *conffname; // configuration file ! static char *bfname; // image base file name ! static char imagefname[256]; // image file name static double exptime; // seconds static int interval; // seconds *************** *** 53,56 **** --- 55,59 ---- { CSBIGCam *cam; + PAR_ERROR err; unsigned short *data; *************** *** 72,95 **** printf("left: %d\n", left); printf("width: %d\n", width); ! printf("Image: %s\n", imagefname); printf("Config: %s\n", conffname); - // allocate image buffer - data = (unsigned short*)calloc(width*height, sizeof(unsigned short)); - if (data == NULL) { - printf("Error malloc\'ing! o_O\n"); - exit(1); - } - - // start talking to camera cam = new CSBIGCam(device); printf("Establishing link... "); fflush(stdout); ! cam->EstablishLink(); printf("OK.\nCamera type: %s\n", (cam->GetCameraTypeString()).c_str()); // set up camera cam->SetActiveCCD(ccd); --- 75,103 ---- printf("left: %d\n", left); printf("width: %d\n", width); ! printf("Output: %s\n", bfname); printf("Config: %s\n", conffname); // start talking to camera cam = new CSBIGCam(device); printf("Establishing link... "); fflush(stdout); ! err = cam->EstablishLink(); ! if (err != CE_NO_ERROR) { ! printf("Error linking to camera.\n"); ! delete cam; ! exit(1); ! } printf("OK.\nCamera type: %s\n", (cam->GetCameraTypeString()).c_str()); + // allocate image buffer + data = (unsigned short*)calloc(width*height, sizeof(unsigned short)); + if (data == NULL) { + printf("Error malloc\'ing! :-/\n"); + delete cam; + exit(1); + } + // set up camera cam->SetActiveCCD(ccd); *************** *** 122,129 **** // start taking images int i; printf("Taking %d images of %'.2f sec., with %d sec. interval.\n", nexp, exptime, interval); ! for (i = 1; i <= nexp; i++){ int fitstatus; long int naxes[2]; --- 130,141 ---- // start taking images int i; + int index; + + // find last image + index = getindex(bfname) + 1; printf("Taking %d images of %'.2f sec., with %d sec. interval.\n", nexp, exptime, interval); ! for (i = 0; i < nexp; i++){ int fitstatus; long int naxes[2]; *************** *** 134,143 **** naxes[1] = height; fits_create_file(&fptr, imagefname, &fitstatus); fits_create_img(fptr, SHORT_IMG, 2, naxes, &fitstatus); fits_write_date(fptr, &fitstatus); // expose ! printf("\nImage #%d: %'.2f seconds exposure... ", i, exptime); fflush(stdout); cam->StartExposure(SC_OPEN_SHUTTER); --- 146,162 ---- naxes[1] = height; + // create file name + sprintf(imagefname,"%s-%04d.fits", bfname, index + i); fits_create_file(&fptr, imagefname, &fitstatus); fits_create_img(fptr, SHORT_IMG, 2, naxes, &fitstatus); + + // fill the header + fits_update_key(fptr, TDOUBLE, "EXPTIME", &exptime, + "Exposure Time (secs.)", &fitstatus); fits_write_date(fptr, &fitstatus); // expose ! printf("\nFile: %s\n", imagefname); ! printf("Starting a %'.2f seconds exposure... ", exptime); fflush(stdout); cam->StartExposure(SC_OPEN_SHUTTER); *************** *** 197,204 **** // naxes[0], naxes[1], data, &fitstatus); - // fill the header - fits_update_key(fptr, TDOUBLE, "EXPTIME", &exptime, - "Exposure Time (secs.)", &fitstatus); - fits_close_file(fptr, &fitstatus); --- 216,219 ---- *************** *** 351,356 **** exec_name = argv[0]; conffname = NULL; ! imagefname = NULL; ! filter = 0; device = DEV_USB; ccd = CCD_IMAGING; --- 366,371 ---- exec_name = argv[0]; conffname = NULL; ! bfname = "img"; ! filter = 0; // keep the same device = DEV_USB; ccd = CCD_IMAGING; *************** *** 431,436 **** case 'o': ! /* image file name */ ! imagefname = optarg; break; --- 446,452 ---- case 'o': ! /* base image file name */ ! //imagefname = optarg; ! bfname = optarg; break; --- NEW FILE: getindex.c --- #include <stdio.h> #include <dirent.h> #include <fnmatch.h> static int matchfits(const struct dirent *d); static char *bfn; static char pattern[256]; // returns last index of bfname-####.fits int getindex(char *bfname) { struct dirent **namelist; int nd; char scanfmt[256]; char *lastent; int lastindex; int i; bfn = bfname; snprintf(pattern, 255, "%s-[0-9][0-9][0-9][0-9].fits", bfn); //find files that match pattern, see matchfits() below nd = scandir(".", &namelist, matchfits, alphasort); if (nd == 0) // no file with this base name return 0; // extract index from filename snprintf(scanfmt, 255, "%s-%%d.fits", bfname); lastent = namelist[nd-1]->d_name; sscanf(lastent, scanfmt, &lastindex); /* TODO: must somehow free the space allocated by scandir() for (i = 0; i < nd; i++) { free(namelist[i]->d_name); } free(namelist); */ return lastindex; } int matchfits(const struct dirent *d) { return !fnmatch(pattern, d->d_name, 0); } Index: Makefile.am =================================================================== RCS file: /cvsroot/uts/uts/src/cam/camfits.st7/Makefile.am,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Makefile.am 6 Apr 2004 20:34:05 -0000 1.4 --- Makefile.am 8 Jun 2004 15:22:20 -0000 1.5 *************** *** 1,5 **** bin_PROGRAMS = camfits.st7 ! camfits_st7_SOURCES = csbigimg.h csbigimg.cpp csbigcam.h csbigcam.cpp main.cpp camfits_st7_LDADD = -lm -lcfitsio -lsbigudrv --- 1,5 ---- bin_PROGRAMS = camfits.st7 ! camfits_st7_SOURCES = getindex.h getindex.c csbigimg.h csbigimg.cpp csbigcam.h csbigcam.cpp main.cpp camfits_st7_LDADD = -lm -lcfitsio -lsbigudrv |
From: Paulo H. S. de S. <ph...@us...> - 2004-05-26 00:07:08
|
Update of /cvsroot/uts/uts/src/www In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27485/src/www Modified Files: apontar.php arquivo.php display.php download.php formApontar.php home.php login.php logout.php utils.php Added Files: TODO formOpcoes.php opcoes.php Log Message: - adicionado formulario para configuracao de diretorios padrao - reforma no telgo.paramount.py - display.php e download.php nao dependem mais de paths, tudo usa as configuracoes da sessao Index: login.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/login.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** login.php 31 Mar 2004 16:54:28 -0000 1.3 --- login.php 26 May 2004 00:06:57 -0000 1.4 *************** *** 8,11 **** --- 8,13 ---- } + include_once("utils.php"); + session_start(); *************** *** 20,31 **** $_SESSION['filter'] = array(); - $_SESSION['bf_dir'] = "/data1/indus/andre/uts" . "/imagens"; - $_SESSION['bf_name'] = "imagem-" . $_POST['user'] . "-" . strftime("%d%m%Y", time()); - - $_SESSION['bf_fullpath'] = $_SESSION['bf_dir'] . "/" . $_SESSION['bf_name']; - // create user image space //mkdir($_SESSION['bf_dir'], 0777); Header("Location: home.php"); --- 22,30 ---- $_SESSION['filter'] = array(); // create user image space //mkdir($_SESSION['bf_dir'], 0777); + updateFilename("/home/indus/henrique/uts", "imagem", "%Y%m%d%H%M%S"); + Header("Location: home.php"); Index: arquivo.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/arquivo.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** arquivo.php 26 Mar 2004 02:09:03 -0000 1.2 --- arquivo.php 26 May 2004 00:06:57 -0000 1.3 *************** *** 10,13 **** --- 10,15 ---- clearstatcache(); + include_once("utils.php"); + ?> *************** *** 42,51 **** <? ! $dir = 'imagens'; ! $dh = opendir($dir); ! while (false !== ($filename = readdir($dh))) { ! if((strstr($filename, ".fits")) && (strstr($filename, $_SESSION['bf_name']))) ! $files[] = $filename; } --- 44,56 ---- <? ! $dir = $_SESSION['bf_dir']; ! if (file_exists($dir)) { ! $dh = opendir($dir); ! ! while (false !== ($filename = readdir($dh))) { ! if((strstr($filename, ".fits")) && (strstr($filename, $_SESSION['bf_name']))) ! $files[] = $filename; ! } } *************** *** 61,65 **** for ($i = 0; $i < count($files); $i++) { ! $stat = stat("imagens/" . $filename); if($i % 2) { --- 66,70 ---- for ($i = 0; $i < count($files); $i++) { ! $stat = stat($_SESSION['bf_dir'] . "/" . $files[$i]); if($i % 2) { *************** *** 75,81 **** ?> <td><?=$files[$i]?></td> ! <td><?=$stat['size']?> bytes</td> ! <td align="center"><a class="ph "href="display.php?filename=imagens/<?=$files[$i]?>">:: mostrar ::</a></td> ! <td align="center"><a class="ph "href="download.php?filename=imagens/<?=$files[$i]?>">:: download ::</a></td> </tr> <? --- 80,86 ---- ?> <td><?=$files[$i]?></td> ! <td><?=byte_format($stat['size'])?></td> ! <td align="center"><a class="ph "href="display.php?filename=<?=$files[$i]?>">:: mostrar ::</a></td> ! <td align="center"><a class="ph "href="download.php?filename=<?=$files[$i]?>">:: download ::</a></td> </tr> <? --- NEW FILE: TODO --- - pagina com opcoes para download (.fits, .fits.gz, .fits.bz2, cabecalhos, etc) Index: formApontar.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/formApontar.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** formApontar.php 29 Jan 2004 03:03:23 -0000 1.1.1.1 --- formApontar.php 26 May 2004 00:06:57 -0000 1.2 *************** *** 37,41 **** <td height="34"><a href="ajuda.php#RA">RA</a>:</td> <td height="34"> ! <input type="text" name="ra" maxlenght="20" class="txt"> </td> </tr> --- 37,41 ---- <td height="34"><a href="ajuda.php#RA">RA</a>:</td> <td height="34"> ! <input type="text" name="ra" maxlenght="20" class="txt" tabindex="1"> </td> </tr> *************** *** 44,48 **** <td><a href="ajuda.php#DEC">DEC</a>:</td> <td> ! <input type="text" name="dec" maxlenght="20" class="txt"> </td> </tr> --- 44,48 ---- <td><a href="ajuda.php#DEC">DEC</a>:</td> <td> ! <input type="text" name="dec" maxlenght="20" class="txt" tabindex="2"> </td> </tr> *************** *** 51,55 **** <td><a href="ajuda.php#epoca">Época</a>:</td> <td> ! <select name="epoca" class="txt"> <option value="J2000">J2000</option> </select> --- 51,55 ---- <td><a href="ajuda.php#epoca">Época</a>:</td> <td> ! <select name="epoca" class="txt" tabindex="3"> <option value="J2000">J2000</option> </select> *************** *** 60,64 **** <td><a href="ajuda.php#numexp">Número de exposições:</a>:</td> <td> ! <input type="text" name="num_exp" maxlenght="20" class="txt"> </td> </tr> --- 60,64 ---- <td><a href="ajuda.php#numexp">Número de exposições:</a>:</td> <td> ! <input type="text" name="num_exp" maxlenght="20" class="txt" tabindex="4"> </td> </tr> *************** *** 67,71 **** <td><a href="ajuda.php#tempo_integracao">Tempo de exposição</a>:</td> <td> ! <input type="text" name="exp_time" maxlenght="20" class="txt"> </td> </tr> --- 67,71 ---- <td><a href="ajuda.php#tempo_integracao">Tempo de exposição</a>:</td> <td> ! <input type="text" name="exp_time" maxlenght="20" class="txt" tabindex="5"> </td> </tr> *************** *** 74,78 **** <td><a href="ajuda.php#filtro">Filtro</a>:</td> <td> ! <select name="filtro" class="txt"> <option value="clear">Clear</option> <option value="red">Red</option> --- 74,78 ---- <td><a href="ajuda.php#filtro">Filtro</a>:</td> <td> ! <select name="filtro" class="txt" tabindex="6"> <option value="clear">Clear</option> <option value="red">Red</option> *************** *** 93,97 **** <td align="center"> <div align="left"> ! <input type="submit" name="get_now" value="Observar"> </div> </td> --- 93,97 ---- <td align="center"> <div align="left"> ! <input type="submit" name="get_now" value="Observar" tabindex="6"> </div> </td> *************** *** 101,104 **** --- 101,105 ---- <p align="center"><a href="home.php">::: voltar :::</a></p> + </form> Index: utils.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/utils.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** utils.php 26 Mar 2004 02:09:03 -0000 1.2 --- utils.php 26 May 2004 00:06:57 -0000 1.3 *************** *** 21,25 **** $servers = array(); ! exec("/home/indus/henrique/ssl/bin/spmtable $server", $spmout); if(count($spmout) < 4) { --- 21,25 ---- $servers = array(); ! exec("spmtable $server", $spmout); if(count($spmout) < 4) { *************** *** 50,53 **** --- 50,114 ---- } + function dumpSession() { + + echo "<div id='debug' class='debug'>"; + echo "<pre>"; + print_r($_SESSION); + echo "</pre>"; + echo "</div>"; + + } + + function updateFilename($dir, $name, $index) { + + if(!$dir) + $dir = $_SESSION['bf_dir']; + + if(!$name) + $dir = $_SESSION['bf_name']; + + if(!$index) + $dir = $_SESSION['bf_index']; + + $_SESSION['bf_dir'] = $dir; + $_SESSION['bf_name'] = $name; + $_SESSION['bf_index'] = $index; + + $_SESSION['bf_fullpath'] = $_SESSION['bf_dir'] . "/" . $_SESSION['bf_name'] . "-" . $_SESSION['user'] . "-". strftime($_SESSION['bf_index'], time()); + } + + function formatSize($size) { + + # format a file size adding kb, Mb, Gb + + $res = $size / 1024.0; + + if ($res >= 1024.0) { + + $res = $res / 1024.0; + + return floor($res) . " Mb"; + + } else { + + return floor($res) . " kb"; + + } + + } + + function byte_format($input, $dec=0) + { + $prefix_arr = array("", "K", "M", "G", "T"); + $value = round($input, $dec); + while ($value>1024) + { + $value /= 1024; + $i++; + } + $return_str = round($value, $dec).$prefix_arr[$i]; + return $return_str; + } + ?> --- NEW FILE: formOpcoes.php --- <? session_start(); if(!$_SESSION['user']) { session_destroy(); Header("Location: index.php"); } ?> <html> <head> <title>Observatórios Virtuais ::: Opções</title> <style type="text/css"> <!-- body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none} .botao { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; border-style: solid } .tabelaH { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none ; background-color: #666666; color: #FFFFFF;text-align: center} .txt { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px ; background-color: #CCCCCC} #exemplo { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; text-decoration: none ; background-color: #FFFFFF; color: #000000; text-align: center; border-style: dashed; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px } --> </style> </head> <body bgcolor="#000000" text="#FFFFFF" link="#CCCCCC" vlink="#CCCCCC"> <center> <h3><img src="ovlogo.jpg" width="145" height="105"><br> <br> Opções</h3> </center> <div id="exemplo"> <p>O nome é formado da seguinte forma: <b>[/diretorio_padrão]/[nome_da_imagem]-usuario-[formato_da_data]</b>.<br> Os campos cercados por [ e ] podem ser alterados pelo formulário abaixo. </div> <form name="opcoes" action="opcoes.php" method="GET"> <input type="hidden" name="back" value="<?=$_SERVER['HTTP_REFERER']?>"> <table align="center"> <tr> <td class="tabelaH" colspan="2">Imagens e diretórios</td> </tr> <tr> <td>Diretório padrão:</td> <td><input type="text" name="dir" maxlenght="256" size="50" class="txt" tabindex="1" value="<?=$_SESSION['bf_dir']?>"></td> </tr> <tr> <td>Nome da imagem:</td> <td><input type="text" name="name" maxlenght="256" size="50" class="txt" tabindex="2" value="<?=$_SESSION['bf_name']?>"></td> </tr> <tr> <td><a href="http://www.php.net/strftime">Formato da data</a>:</td> <td><input type="text" name="index" maxlenght="256" size="50" class="txt" tabindex="3" value="<?=$_SESSION['bf_index']?>"></td>> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td align="center"> <div align="left"> </div> </td> <td align="center"> <div align="left"> <input type="submit" name="get_now" value="Salvar" tabindex="4"> </div> </td> </tr> </table> <p align="center"><a href="home.php">::: voltar :::</a></p> </form> </body> </html> Index: home.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/home.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** home.php 29 Jan 2004 03:03:26 -0000 1.1.1.1 --- home.php 26 May 2004 00:06:57 -0000 1.2 *************** *** 20,23 **** --- 20,24 ---- .tabelaOn { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none ; background-color: #999999} .tabelaOff { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none ; background-color: #CCCCCC} + .debug { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none ; background-color: #FFFFFF; color: #000000} --> </style> *************** *** 30,33 **** --- 31,50 ---- <p><a href="formApontar.php">::: apontar e integrar :::</a></p> <p><a href="arquivo.php">::: arquivo :::</a></p> + <p><a href="formOpcoes.php">::: opções :::</a></p> + + <? + + if ($_GET['opcoes']) { + ?> + + <div align="center">Opções salvas!</div> + + <? + + } + + ?> + + <table width="70%" border="0" class="tabela"> <tr class="tabelaH"> *************** *** 79,82 **** --- 96,111 ---- <p> </p> </div> + + + <? + + if ($_GET['debug']) { + include_once("utils.php"); + dumpSession(); + } + + ?> + + </body> </html> Index: display.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/display.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** display.php 26 Mar 2004 02:09:03 -0000 1.1 --- display.php 26 May 2004 00:06:57 -0000 1.2 *************** *** 10,20 **** // tenta converter o arquivo caso nao exista um ! $fits_file = $_GET['filename']; ! $target_file = "imagens/" . basename($fits_file, ".fits") . ".jpg"; if(!file_exists($target_file)) { ! exec("convert $fits_file $target_file &> /dev/null", $tmp, $ret); } --- 10,25 ---- // tenta converter o arquivo caso nao exista um ! $fits_file = $_SESSION['bf_dir'] . "/" . $_GET['filename']; ! $target_file = $_SESSION['bf_dir'] . "/" . basename($fits_file, ".fits") . ".jpg"; + $cmd = "convert $fits_file $target_file"; if(!file_exists($target_file)) { ! exec($cmd, $tmp, $ret); ! ! //echo "<pre>"; ! //print_r($tmp); ! //echo "</pre>"; } *************** *** 44,48 **** <? ! if($ret) { ?> <img src="default.png"> --- 49,53 ---- <? ! if(!file_exists($target_file)) { ?> <img src="default.png"> *************** *** 50,54 **** } else { ?> ! <img src="<?=$target_file?>"> <? } --- 55,59 ---- } else { ?> ! <img src="file://<?=$target_file?>"> <? } Index: logout.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/logout.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** logout.php 29 Jan 2004 03:03:26 -0000 1.1.1.1 --- logout.php 26 May 2004 00:06:57 -0000 1.2 *************** *** 10,14 **** } - session_start(); session_destroy(); --- 10,13 ---- --- NEW FILE: opcoes.php --- <? session_start(); if(!$_SESSION['user']) { session_destroy(); Header("Location: index.php"); } include_once("utils.php"); updateFilename($_GET['dir'], $_GET['name'], $_GET['index']); Header("Location:home.php?opcoes=1"); ?> Index: apontar.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/apontar.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** apontar.php 26 Mar 2004 02:09:03 -0000 1.2 --- apontar.php 26 May 2004 00:06:57 -0000 1.3 *************** *** 11,15 **** ! $servers = getServers("octans"); if(!$servers) { --- 11,15 ---- ! $servers = getServers("localhost"); if(!$servers) { *************** *** 18,21 **** --- 18,23 ---- } + updateFilename(); + $sync = new Syncd(); $sync->setInteractive(TRUE); Index: download.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/download.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** download.php 26 Mar 2004 02:09:03 -0000 1.1 --- download.php 26 May 2004 00:06:57 -0000 1.2 *************** *** 8,16 **** } ! $len = filesize($_GET['filename']); header("Content-type: image/fits"); header("Content-Length: $len"); ! header("Content-Disposition: inline; filename=" . $_GET['filename']); ! readfile($_GET['filename']); ?> \ No newline at end of file --- 8,19 ---- } ! $file = $_SESSION['bf_dir'] . "/" . $_GET['filename']; ! ! ! $len = filesize($file); header("Content-type: image/fits"); header("Content-Length: $len"); ! header("Content-Disposition: attachment; filename=$file"); ! readfile($file); ?> \ No newline at end of file |
From: Paulo H. S. de S. <ph...@us...> - 2004-05-26 00:07:05
|
Update of /cvsroot/uts/uts/src/tel/telgo.paramount In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27485/src/tel/telgo.paramount Modified Files: telgo telgo.paramount.py telgo.server.py Log Message: - adicionado formulario para configuracao de diretorios padrao - reforma no telgo.paramount.py - display.php e download.php nao dependem mais de paths, tudo usa as configuracoes da sessao Index: telgo =================================================================== RCS file: /cvsroot/uts/uts/src/tel/telgo.paramount/telgo,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** telgo 18 Mar 2004 16:06:00 -0000 1.2 --- telgo 26 May 2004 00:06:56 -0000 1.3 *************** *** 22,37 **** """ % (__description__, __version__, __date__, ! sys.argv[0], sys.argv[0], sys.argv[0], sys.argv[0], sys.argv[0]) sys.exit(-1) - - - - # get target host and port from command line if ":" in sys.argv[2]: target = string.split(sys.argv[2], ":") elif sys.argv[2] != "-": target = [sys.argv[2], 10000] --- 22,34 ---- """ % (__description__, __version__, __date__, ! sys.argv[0], sys.argv[0], sys.argv[0], sys.argv[0]) sys.exit(-1) # get target host and port from command line if ":" in sys.argv[2]: target = string.split(sys.argv[2], ":") + target[1] = int(target[1]) elif sys.argv[2] != "-": target = [sys.argv[2], 10000] *************** *** 50,63 **** skt = socket(AF_INET, SOCK_STREAM) ! print "Connecting to %s:%d... wait... " % tuple(target), sys.stdout.flush() skt.connect(tuple(target)) print "OK" ! skt.sendall("RA*%s" % targetRA) ! skt.sendall("DEC*%s" % targetDEC) ! skt.sendall("MOVE") ! print "Moving to %s %s... wait... " % (targetRA, targetDEC), sys.stdout.flush() --- 47,58 ---- skt = socket(AF_INET, SOCK_STREAM) ! print "Connecting to %s:%d... wait... " % tuple(target) sys.stdout.flush() skt.connect(tuple(target)) print "OK" ! skt.sendall("%s*%s*MOVE" % (targetRA, targetDEC)) ! print "Moving to %s %s... wait... " % (targetRA, targetDEC) sys.stdout.flush() *************** *** 88,92 **** except error, e: print "ERROR (%s)" % (e[1]) ! skt.sendall("BYE") skt.close() sys.exit(1) --- 83,87 ---- except error, e: print "ERROR (%s)" % (e[1]) ! #skt.sendall("BYE") skt.close() sys.exit(1) Index: telgo.paramount.py =================================================================== RCS file: /cvsroot/uts/uts/src/tel/telgo.paramount/telgo.paramount.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** telgo.paramount.py 18 Mar 2004 16:06:00 -0000 1.2 --- telgo.paramount.py 26 May 2004 00:06:56 -0000 1.3 *************** *** 22,37 **** """ % (__description__, __version__, __date__, ! sys.argv[0], sys.argv[0], sys.argv[0], sys.argv[0], sys.argv[0]) sys.exit(-1) - - - - # get target host and port from command line if ":" in sys.argv[2]: target = string.split(sys.argv[2], ":") elif sys.argv[2] != "-": target = [sys.argv[2], 10000] --- 22,34 ---- """ % (__description__, __version__, __date__, ! sys.argv[0], sys.argv[0], sys.argv[0], sys.argv[0]) sys.exit(-1) # get target host and port from command line if ":" in sys.argv[2]: target = string.split(sys.argv[2], ":") + target[1] = int(target[1]) elif sys.argv[2] != "-": target = [sys.argv[2], 10000] *************** *** 50,63 **** skt = socket(AF_INET, SOCK_STREAM) ! print "Connecting to %s:%d... wait... " % tuple(target), sys.stdout.flush() skt.connect(tuple(target)) print "OK" ! skt.sendall("RA*%s" % targetRA) ! skt.sendall("DEC*%s" % targetDEC) ! skt.sendall("MOVE") ! print "Moving to %s %s... wait... " % (targetRA, targetDEC), sys.stdout.flush() --- 47,58 ---- skt = socket(AF_INET, SOCK_STREAM) ! print "Connecting to %s:%d... wait... " % tuple(target) sys.stdout.flush() skt.connect(tuple(target)) print "OK" ! skt.sendall("%s*%s*MOVE" % (targetRA, targetDEC)) ! print "Moving to %s %s... wait... " % (targetRA, targetDEC) sys.stdout.flush() *************** *** 88,92 **** except error, e: print "ERROR (%s)" % (e[1]) ! skt.sendall("BYE") skt.close() sys.exit(1) --- 83,87 ---- except error, e: print "ERROR (%s)" % (e[1]) ! #skt.sendall("BYE") skt.close() sys.exit(1) Index: telgo.server.py =================================================================== RCS file: /cvsroot/uts/uts/src/tel/telgo.paramount/telgo.server.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** telgo.server.py 18 Mar 2004 16:06:00 -0000 1.2 --- telgo.server.py 26 May 2004 00:06:56 -0000 1.3 *************** *** 1,4 **** --- 1,5 ---- #!/bin/python # -*- coding: cp1252 -*- + import sys import time *************** *** 47,67 **** if not data: continue ! if data == 'MOVE': ! print "moving to %s %s" % (targetRA, targetDEC) ! sys.stdout.flush() ! ! obj.SlewToCoordinates(util.HMSToHours(targetRA), util.DMSToDegrees(targetDEC)) ! ! conn.send("OK") ! sys.stdout.flush() ! elif data.count("RA"): ! targetRA = data.split('*')[1] ! print "setting RA to %s" % targetRA ! sys.stdout.flush() ! elif data.count("DEC"): ! targetDEC = data.split('*')[1] ! print "setting DEC to %s" % targetDEC ! sys.stdout.flush() ! elif data == "BYE": conn.close() break --- 48,52 ---- if not data: continue ! if data == "BYE": conn.close() break *************** *** 71,75 **** thesky.Quit() fim = True ! break print "Saindo... %s:%d\n" % addr --- 56,79 ---- thesky.Quit() fim = True ! break ! ! else: ! target = data.split('*') ! ! targetRA = target[0] ! print "setting RA to %s" % targetRA ! sys.stdout.flush() ! ! targetDEC = target[1] ! print "setting DEC to %s" % targetDEC ! sys.stdout.flush() ! ! print "moving to %s %s" % (targetRA, targetDEC) ! sys.stdout.flush() ! ! obj.SlewToCoordinates(util.HMSToHours(targetRA), util.DMSToDegrees(targetDEC)) ! ! conn.send("OK") ! sys.stdout.flush() print "Saindo... %s:%d\n" % addr |
From: Paulo H. S. de S. <ph...@us...> - 2004-05-25 21:37:57
|
Update of /cvsroot/uts/uts/src/www In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1544 Modified Files: index.php Log Message: Index: index.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 26 Mar 2004 02:09:03 -0000 1.2 --- index.php 25 May 2004 21:37:48 -0000 1.3 *************** *** 8,16 **** ?> ! <html> - <head> ! <title>Observatórios Virtuais ::: Entrar</title> <style type="text/css"> <!-- --- 8,18 ---- ?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> ! <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> ! <title>Observatórios Virtuais ::: Entrar</title> ! <meta name="author" content="Paulo Henrique S. de Santana"> ! <style type="text/css"> <!-- *************** *** 19,22 **** --- 21,25 ---- --> </style> + </head> |
From: Paulo H. S. de S. <ph...@us...> - 2004-05-20 00:09:55
|
Update of /cvsroot/uts/uts/src/cam/camd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4891 Modified Files: cam_sync.c cam.h Log Message: - extra space for strings Index: cam_sync.c =================================================================== RCS file: /cvsroot/uts/uts/src/cam/camd/cam_sync.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** cam_sync.c 29 Jan 2004 03:02:34 -0000 1.1.1.1 --- cam_sync.c 20 May 2004 00:09:45 -0000 1.2 *************** *** 63,67 **** case SYN_BFNAME: ! strncpy(task->bfname, contents, 20); case SYN_INDEX: --- 63,67 ---- case SYN_BFNAME: ! strncpy(task->bfname, contents, 256); case SYN_INDEX: *************** *** 83,87 **** case SYN_OBSERVER: ! strncpy(task->observer, contents, 40); break; --- 83,87 ---- case SYN_OBSERVER: ! strncpy(task->observer, contents, 256); break; Index: cam.h =================================================================== RCS file: /cvsroot/uts/uts/src/cam/camd/cam.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** cam.h 9 Mar 2004 23:12:47 -0000 1.2 --- cam.h 20 May 2004 00:09:45 -0000 1.3 *************** *** 41,48 **** char epoch[20]; float airmass; ! char observer[40]; ! char object[20]; int index; ! char bfname[20]; char start[20]; } camtask_t; --- 41,48 ---- char epoch[20]; float airmass; ! char observer[256]; ! char object[256]; int index; ! char bfname[256]; char start[20]; } camtask_t; |
From: Andr? L. A. <st...@us...> - 2004-05-19 19:51:54
|
Update of /cvsroot/uts/uts/src/cam/etc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19417/cam/etc Modified Files: camd.conf Added Files: camd.conf.st7 camd.conf.st8 Log Message: Again... --- NEW FILE: camd.conf.st8 --- camfits.st8 0x378 %f %d 0:765 0:510 %s %d >> /var/log/uts/camfits.st8 2>&1 Index: camd.conf =================================================================== RCS file: /cvsroot/uts/uts/src/cam/etc/camd.conf,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** camd.conf 19 May 2004 17:30:31 -0000 1.1 --- camd.conf 19 May 2004 19:51:44 -0000 1.2 *************** *** 1,2 **** ! camfits.st4 0x378 %f %d 0:765 0:510 %s %d >> /var/log/uts/camfits.st8 2>&1 --- 1,2 ---- ! camfits.st7 -t %f -n %d -o %s >> /var/log/uts/camfits.st7 2>&1 --- NEW FILE: camd.conf.st7 --- camfits.st7 -t %f -n %d -o %s >> /var/log/uts/camfits.st7 2>&1 |
From: Andr? L. A. <st...@us...> - 2004-05-19 17:37:44
|
Update of /cvsroot/uts/uts/src/etc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23757/etc Removed Files: teld Log Message: More rearragement... --- teld DELETED --- |
From: Andr? L. A. <st...@us...> - 2004-05-19 17:37:44
|
Update of /cvsroot/uts/uts/src/tel/etc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23757/tel/etc Modified Files: teld Added Files: teld.conf Log Message: More rearragement... --- NEW FILE: teld.conf --- telgo.lx200 p /dev/ttyS1 %s %s >> /var/log/uts/telgo.lx200 2>&1 Index: teld =================================================================== RCS file: /cvsroot/uts/uts/src/tel/etc/teld,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** teld 29 Jan 2004 03:03:20 -0000 1.1.1.1 --- teld 19 May 2004 17:37:36 -0000 1.2 *************** *** 1,11 **** #!/bin/bash # ! # /etc/rc.d/init.d/spmd # # Starts the Telescope daemon # ! # chkconfig: 4 43 60 ! # description: Spm is the Simple Sockets Library (SSL) ! # PortMaster. It controls server names and their port numbers. # processname: Spm --- 1,10 ---- #!/bin/bash # ! # /etc/rc.d/init.d/teld # # Starts the Telescope daemon # ! # chkconfig: 3 43 60 ! # description: Controls thje telescope. # processname: Spm *************** *** 13,19 **** . /etc/rc.d/init.d/functions - export GUTS_DIR="/home/telescopio/guts" ! test -x $GUTS_DIR/bin/teld || exit 0 RETVAL=0 --- 12,19 ---- . /etc/rc.d/init.d/functions ! . /etc/rc.d/init.d/uts_defaults ! ! test -x $UTS_BIN/teld || exit 0 RETVAL=0 *************** *** 24,31 **** case "$1" in start) ! # Check if Spm is already running if [ ! -f /var/lock/subsys/teld ]; then echo -n 'Starting Telescope daemon: ' ! $GUTS_DIR/bin/teld & RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/teld --- 24,31 ---- case "$1" in start) ! # Check if teld is already running if [ ! -f /var/lock/subsys/teld ]; then echo -n 'Starting Telescope daemon: ' ! daemon $UTS_BIN/teld -d -o /var/log/uts/teld RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/teld *************** *** 35,39 **** stop) echo -n 'Stopping Telescope daemon: ' ! killproc $GUTS_DIR/bin/teld RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/teld --- 35,39 ---- stop) echo -n 'Stopping Telescope daemon: ' ! killproc $UTS_BIN/teld RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/teld *************** *** 46,50 **** ;; status) ! status $GUTS_DIR/bin/teld RETVAL=$? ;; --- 46,50 ---- ;; status) ! status $UTS_BIN/teld RETVAL=$? ;; |
From: Andr? L. A. <st...@us...> - 2004-05-19 17:30:43
|
Update of /cvsroot/uts/uts/src/etc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22146/etc Modified Files: secd teld uts_defaults Removed Files: camd Log Message: File rearrangement. Index: uts_defaults =================================================================== RCS file: /cvsroot/uts/uts/src/etc/uts_defaults,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** uts_defaults 11 Mar 2004 21:40:43 -0000 1.2 --- uts_defaults 19 May 2004 17:30:32 -0000 1.3 *************** *** 1,3 **** ! UTS_DIR=/data1/indus/andre/uts UTS_BIN=$UTS_DIR/bin UTS_ETC=$UTS_DIR/etc --- 1,3 ---- ! UTS_DIR=/usr UTS_BIN=$UTS_DIR/bin UTS_ETC=$UTS_DIR/etc *************** *** 5,7 **** export UTS_DIR export PATH="$PATH:$UTS_BIN" ! export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$UTS_DIR/lib" --- 5,7 ---- export UTS_DIR export PATH="$PATH:$UTS_BIN" ! #export LD_LIBRARY_PATH="/lib/tls:/lib:/usr/lib:$UTS_DIR/lib" --- camd DELETED --- Index: teld =================================================================== RCS file: /cvsroot/uts/uts/src/etc/teld,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** teld 11 Mar 2004 22:22:55 -0000 1.3 --- teld 19 May 2004 17:30:32 -0000 1.4 *************** *** 5,9 **** # Starts the Telescope daemon # ! # chkconfig: 4 43 60 # description: Controls thje telescope. # processname: Spm --- 5,9 ---- # Starts the Telescope daemon # ! # chkconfig: 3 43 60 # description: Controls thje telescope. # processname: Spm Index: secd =================================================================== RCS file: /cvsroot/uts/uts/src/etc/secd,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** secd 5 Mar 2004 20:05:10 -0000 1.4 --- secd 19 May 2004 17:30:32 -0000 1.5 *************** *** 5,9 **** # Starts the Socket Secretary daemon # ! # chkconfig: 4 41 61 # description: Run socket secretaries for each instrument. --- 5,9 ---- # Starts the Socket Secretary daemon # ! # chkconfig: 3 41 61 # description: Run socket secretaries for each instrument. *************** *** 24,28 **** echo -n 'Starting Socket Secretary daemons... ' #daemon $UTS_BIN/runsecs.sh ! for INST in `ls -1 $UTS_ETC/*.conf`; do daemon $UTS_BIN/sec -d $INST; done --- 24,28 ---- echo -n 'Starting Socket Secretary daemons... ' #daemon $UTS_BIN/runsecs.sh ! for INST in `ls -1 $UTS_ETC/sec/*.conf`; do daemon $UTS_BIN/sec -d $INST; done |
From: Andr? L. A. <st...@us...> - 2004-05-19 17:30:41
|
Update of /cvsroot/uts/uts/src/cam/etc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22146/cam/etc Added Files: camd camd.conf Removed Files: camerad Log Message: File rearrangement. --- NEW FILE: camd.conf --- camfits.st4 0x378 %f %d 0:765 0:510 %s %d >> /var/log/uts/camfits.st8 2>&1 --- camerad DELETED --- --- NEW FILE: camd --- #!/bin/bash # # /etc/rc.d/init.d/camd # # Starts the CCD camera daemon # # chkconfig: 3 42 60 # description: Controls the CCD camera # processname: camd # Source function library. . /etc/rc.d/init.d/functions . /etc/rc.d/init.d/uts_defaults test -x $UTS_BIN/camd || exit 0 RETVAL=0 # # See how we were called. # case "$1" in start) # Check if camerad is already running if [ ! -f /var/lock/subsys/camd ]; then echo -n 'Starting camd daemon: ' daemon $UTS_BIN/camd -d -o /var/log/uts/camd RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/camd echo fi ;; stop) echo -n 'Stopping camd daemon: ' killproc $UTS_BIN/camd RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/camd echo ;; reload|restart) $0 stop $0 start RETVAL=$? ;; status) status $UTS_BIN/camd RETVAL=$? ;; *) echo "Usage: /etc/rc.d/init.d/camd {start|stop|restart|reload|status}" exit 1 esac exit $RETVAL |
From: Andr? L. A. <st...@us...> - 2004-04-06 20:46:57
|
Update of /cvsroot/uts/uts/src/cam/camfits.st7 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7363/src/cam/camfits.st7 Modified Files: Makefile.am Log Message: camfits.st7 had some headers missing. fixed. Index: Makefile.am =================================================================== RCS file: /cvsroot/uts/uts/src/cam/camfits.st7/Makefile.am,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Makefile.am 31 Mar 2004 16:54:26 -0000 1.3 --- Makefile.am 6 Apr 2004 20:34:05 -0000 1.4 *************** *** 1,5 **** bin_PROGRAMS = camfits.st7 ! camfits_st7_SOURCES = csbigimg.cpp csbigcam.cpp main.cpp camfits_st7_LDADD = -lm -lcfitsio -lsbigudrv --- 1,5 ---- bin_PROGRAMS = camfits.st7 ! camfits_st7_SOURCES = csbigimg.h csbigimg.cpp csbigcam.h csbigcam.cpp main.cpp camfits_st7_LDADD = -lm -lcfitsio -lsbigudrv |
From: Andr? L. A. <st...@us...> - 2004-04-06 20:46:57
|
Update of /cvsroot/uts/uts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7363 Modified Files: configure.ac Log Message: camfits.st7 had some headers missing. fixed. Index: configure.ac =================================================================== RCS file: /cvsroot/uts/uts/configure.ac,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** configure.ac 31 Mar 2004 16:54:20 -0000 1.6 --- configure.ac 6 Apr 2004 20:34:02 -0000 1.7 *************** *** 145,151 **** src/tel/telgo.fake/Makefile src/tel/telgo.lx200/Makefile ! src/tel/telgo.paramount/Makefile ! src/www/login.php]) ! AC_OUTPUT --- 145,149 ---- src/tel/telgo.fake/Makefile src/tel/telgo.lx200/Makefile ! src/tel/telgo.paramount/Makefile]) AC_OUTPUT |
From: Andr? L. A. <st...@us...> - 2004-03-31 17:06:44
|
Update of /cvsroot/uts/uts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15992 Modified Files: configure.ac Log Message: 1. camfits.st7 will now compile with includes and libs defined by --with-LALALA. 2. better variable names in camfits.fake and camfits.st4. 3. include includes in CXXFLAGS in configure.ac. Index: configure.ac =================================================================== RCS file: /cvsroot/uts/uts/configure.ac,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** configure.ac 26 Mar 2004 02:09:03 -0000 1.5 --- configure.ac 31 Mar 2004 16:54:20 -0000 1.6 *************** *** 2,6 **** # Process this file with autoconf to produce a configure script. ! AC_INIT([guts], [0.1], [ph....@gm...] ) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([src/sec/main.c]) --- 2,6 ---- # Process this file with autoconf to produce a configure script. ! AC_INIT([uts], [0.1], [ph....@gm...] ) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([src/sec/main.c]) *************** *** 34,38 **** LDFLAGS="$LDFLAGS -L$withval/lib" CFLAGS="$CFLAGS -I$withval/include" ! CXXFLAGS="$CXXFLAGS -I$withval" fi fi --- 34,38 ---- LDFLAGS="$LDFLAGS -L$withval/lib" CFLAGS="$CFLAGS -I$withval/include" ! CXXFLAGS="$CXXFLAGS -I$withval/include" fi fi *************** *** 60,64 **** LDFLAGS="$LDFLAGS -L$withval/lib" CFLAGS="$CFLAGS -I$withval/include" ! CXXFLAGS="$CXXFLAGS -I$withval" fi fi --- 60,64 ---- LDFLAGS="$LDFLAGS -L$withval/lib" CFLAGS="$CFLAGS -I$withval/include" ! CXXFLAGS="$CXXFLAGS -I$withval/include" fi fi *************** *** 86,90 **** LDFLAGS="$LDFLAGS -L$withval/lib" CFLAGS="$CFLAGS -I$withval/include" ! CXXFLAGS="$CXXFLAGS -I$withval" fi fi --- 86,90 ---- LDFLAGS="$LDFLAGS -L$withval/lib" CFLAGS="$CFLAGS -I$withval/include" ! CXXFLAGS="$CXXFLAGS -I$withval/include" fi fi |
From: Andr? L. A. <st...@us...> - 2004-03-31 17:06:44
|
Update of /cvsroot/uts/uts/src/cam/camfits.fake In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15992/src/cam/camfits.fake Modified Files: main.c Log Message: 1. camfits.st7 will now compile with includes and libs defined by --with-LALALA. 2. better variable names in camfits.fake and camfits.st4. 3. include includes in CXXFLAGS in configure.ac. Index: main.c =================================================================== RCS file: /cvsroot/uts/uts/src/cam/camfits.fake/main.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** main.c 29 Jan 2004 03:02:38 -0000 1.1.1.1 --- main.c 31 Mar 2004 16:54:21 -0000 1.2 *************** *** 11,15 **** #define FALSE (0) ! int getimage(cam_info *camera, float texp, char *bfname, int index); int fileexists(char *fname); void usage(void); --- 11,15 ---- #define FALSE (0) ! int getimage(cam_info *camera, float texp, char *bfname, int imindex); int fileexists(char *fname); void usage(void); *************** *** 29,33 **** char *porta; /* Serial port */ char *bfname; /* Image base-file-name */ ! int index; /* index to bfname */ float texp; /* Exposure time */ fitsfile *fptr; /* Image file */ --- 29,33 ---- char *porta; /* Serial port */ char *bfname; /* Image base-file-name */ ! int imindex; /* index to bfname */ float texp; /* Exposure time */ fitsfile *fptr; /* Image file */ *************** *** 73,77 **** /* get index */ if (!output) { ! res = sscanf(argv[7], "%d", &index); if (res != 1) { fprintf(stderr, "\nError: \"%s\" is an invalid index.\n\n", argv[2]); --- 73,77 ---- /* get index */ if (!output) { ! res = sscanf(argv[7], "%d", &imindex); if (res != 1) { fprintf(stderr, "\nError: \"%s\" is an invalid index.\n\n", argv[2]); *************** *** 101,105 **** for (nimg = 0; nimg < nexp; nimg++) { fprintf(stderr, "\nTaking image #%d.\n", nimg); ! getimage(camera, texp, bfname, (nimg + index)); if (stop_imaging) break; } --- 101,105 ---- for (nimg = 0; nimg < nexp; nimg++) { fprintf(stderr, "\nTaking image #%d.\n", nimg); ! getimage(camera, texp, bfname, (nimg + imindex)); if (stop_imaging) break; } *************** *** 110,114 **** ! int getimage(cam_info *camera, float texp, char *bfname, int index) { char fname[128]; --- 110,114 ---- ! int getimage(cam_info *camera, float texp, char *bfname, int imindex) { char fname[128]; *************** *** 136,140 **** fprintf(stderr, "\nDone.\n"); */ } else { ! sprintf(fname, "%s%04d.fits", bfname, index); fprintf(stderr, "Saving image %s...", fname); if (fileexists(fname)) --- 136,140 ---- fprintf(stderr, "\nDone.\n"); */ } else { ! sprintf(fname, "%s%04d.fits", bfname, imindex); fprintf(stderr, "Saving image %s...", fname); if (fileexists(fname)) |
From: Andr? L. A. <st...@us...> - 2004-03-31 17:06:19
|
Update of /cvsroot/uts/uts/src/cam/camfits.st7 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15992/src/cam/camfits.st7 Modified Files: Makefile.am Added Files: csbigimg.cpp csbigimg.h Log Message: 1. camfits.st7 will now compile with includes and libs defined by --with-LALALA. 2. better variable names in camfits.fake and camfits.st4. 3. include includes in CXXFLAGS in configure.ac. --- NEW FILE: csbigimg.h --- /* csbigimg.h - Contains the definition of the interface to the SBIG Image Class 1. This software (c)2004 Santa Barbara Instrument Group. 2. This free software is provided as an example of how to communicate with SBIG cameras. It is provided AS-IS without any guarantees by SBIG of suitability for a particular purpose and without any guarantee to be bug-free. If you use it you agree to these terms and agree to do so at your own risk. 3. Any distribution of this source code to include these terms. */ #ifndef _CSBIGIMG_ #define _CSBIGIMG_ #ifndef _PARDRV_ #include "sbigudrv.h" #endif #include <time.h> #include <string> using namespace std; /* Exposure State Field Defines */ #define ES_ABG_MASK 0x0003 #define ES_ABG_UNKNOWN 0x0000 #define ES_ABG_LOW 0x0001 #define ES_ABG_CLOCKED 0x0002 #define ES_ABG_MID 0x0003 #define ES_ABG_RATE_MASK 0x00C0 #define ES_ABG_RATE_FIXED 0x0000 #define ES_ABG_RATE_LOW 0x0040 #define ES_ABG_RATE_MED 0x0080 #define ES_ABG_RATE_HI 0x00C0 #define ES_DCS_MASK 0x000c #define ES_DCS_UNKNOWN 0x0000 #define ES_DCS_ENABLED 0x0004 #define ES_DCS_DISABLED 0x0008 #define ES_DCR_MASK 0x0030 #define ES_DCR_UNKNOWN 0x0000 #define ES_DCR_ENABLED 0x0010 #define ES_DCR_DISABLED 0x0020 #define ES_AUTOBIAS_MASK 0x0100 #define ES_AUTOBIAS_ENABLED 0x0100 #define ES_AUTOBIAS_DISABLED 0x0000 typedef enum { SBIF_COMPRESSED, SBIF_UNCOMPRESSED } SBIG_IMAGE_FORMAT; typedef enum {SBFE_NO_ERROR, SBFE_OPEN_ERROR, SBRE_CLOSE_ERROR, SBFE_READ_ERROR, SBFE_WRITE_ERROR, SBFE_FORMAT_ERROR, SBFE_MEMORY_ERROR } SBIG_FILE_ERROR; class CSBIGImg { private: int m_nHeight, m_nWidth; // image size in pixels unsigned short *m_pImage; // pointer to image data time_t m_imageStartTime; // time that light exposure started double m_dCCDTemperature; // CCD Temp at start of exposure double m_dExposureTime; // Exposure time in seconds double m_dTrackExposure; // Exposure when tracking double m_dEachExposure; // Snapshot time in seconds double m_dFocalLength; // Lens/Telescope Focal Length in inches double m_dApertureArea; // Lens/Telescope Aperture Are in Sq-Inches double m_dResponseFactor; // Magnitude Calibration Factor double m_dPixelHeight, m_dPixelWidth; // Pixel Dimensions in mm double m_dEGain; // Electronic Gain, e-/ADU unsigned short m_uBackground, m_uRange; // Display Background and Range unsigned short m_uNumberExposures; // Number of exposures co-added unsigned short m_uSaturationLevel; // Pixels at this level are saturated unsigned short m_uPedestal; // Image Pedestal unsigned short m_uExposureState; // Exposure State unsigned short m_uReadoutMode; // Camera Readout Mode use to acquire image string m_cImageNote; // Note attached to image string m_cObserver; // Observer name string m_cHistory; // Image History string of modification chars string m_cFilter; // Filter name imaged through string m_cSoftware; // Software App Name and Version string m_cCameraModel; // Model of camera used to acquire image public: /* Constructors/Destructor */ CSBIGImg(); CSBIGImg(int height, int width); ~CSBIGImg(); void Init(); /* Accessor Functions */ int GetHeight() {return m_nHeight;} int GetWidth() {return m_nWidth;} unsigned short *GetImagePointer() {return m_pImage;} void SetImageStartTime(time_t startTime){m_imageStartTime = startTime;} time_t GetImageStartTime(void) {return m_imageStartTime;} void SetCCDTemperature(double temp) {m_dCCDTemperature = temp;} double GetCCDTemperature(void) {return m_dCCDTemperature;} void SetExposureTime(double exp) {m_dExposureTime = exp;} double GetExposureTime(void) {return m_dExposureTime;} void SetEachExposure(double exp) {m_dEachExposure = exp;} double GetEachExposure(void) {return m_dEachExposure;} void SetFocalLength(double fl) {m_dFocalLength = fl;} double GetFocalLength(void) {return m_dFocalLength;} void SetApertureArea(double ap) {m_dApertureArea = ap;} double GetApertureArea(void) {return m_dApertureArea;} void SetResponseFactor(double resp) {m_dResponseFactor = resp;} double GetResponseFactor(void) {return m_dResponseFactor;} void SetPixelHeight(double ht) {m_dPixelHeight = ht;} double GetPixelHeight(void) {return m_dPixelHeight;} void SetPixelWidth(double wd) {m_dPixelWidth = wd;} double GetPixelWidth(void) {return m_dPixelWidth;} void SetEGain(double gn) {m_dEGain = gn;} double GetEGain(void) {return m_dEGain;} void SetBackground(unsigned short back) {m_uBackground = back;} unsigned short GetBackground(void) {return m_uBackground;} void SetRange(unsigned short range) {m_uRange = range;} unsigned short GetRange(void) {return m_uRange;} void SetSaturationLevel(unsigned short sat) {m_uSaturationLevel = sat;} unsigned short GetSaturationLevel(void) {return m_uSaturationLevel;} void SetNumberExposures(unsigned short no) {m_uNumberExposures = no;} unsigned short GetNumberExposures(void) {return m_uNumberExposures;} void SetTrackExposure(double exp) {m_dTrackExposure = exp;} double GetTrackExposure(void) {return m_dTrackExposure;} void SetReadoutMode(unsigned short rm) {m_uReadoutMode = rm;} unsigned short GetReadoutMode(void) {return m_uReadoutMode;} void SetPedestal(unsigned short ped) {m_uPedestal = ped;} unsigned short GetPedestal(void) {return m_uPedestal;} void SetExposureState(unsigned short es) {m_uExposureState = es;} unsigned short GetExposureState(void) {return m_uExposureState;} void SetImageNote(string str) {m_cImageNote = str;} string GetImageNote(void) {return m_cImageNote;} void SetObserver(string str) {m_cObserver = str;} string GetObserver(void) {return m_cObserver;} void SetHistory(string str) {m_cHistory = str;} string GetHistory(void) {return m_cHistory;} void SetCameraModel(string str) {m_cCameraModel = str;} string GetCameraModel(void) {return m_cCameraModel;} /* File IO Routines */ SBIG_FILE_ERROR SaveImage(const char *pFullPath, SBIG_IMAGE_FORMAT fmt); /* Utility Functions */ MY_LOGICAL AllocateImageBuffer(int height, int width); void CreateSBIGHeader(char *pHeader, MY_LOGICAL isCompressed); int CompressSBIGData(unsigned char *pCmpData, int imgRow); void IntelCopyBytes(unsigned char *pRevData, int imgRow); }; #endif /* #ifndef _CSBIGIMG_ */ Index: Makefile.am =================================================================== RCS file: /cvsroot/uts/uts/src/cam/camfits.st7/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile.am 24 Mar 2004 23:30:04 -0000 1.2 --- Makefile.am 31 Mar 2004 16:54:26 -0000 1.3 *************** *** 1,5 **** bin_PROGRAMS = camfits.st7 ! camfits_st7_SOURCES = csbigcam.cpp main.cpp camfits_st7_LDADD = -lm -lcfitsio -lsbigudrv --- 1,5 ---- bin_PROGRAMS = camfits.st7 ! camfits_st7_SOURCES = csbigimg.cpp csbigcam.cpp main.cpp camfits_st7_LDADD = -lm -lcfitsio -lsbigudrv --- NEW FILE: csbigimg.cpp --- /* csbigimg.cpp - SBIG Image Class 1. This software (c)2004 Santa Barbara Instrument Group. 2. This free software is provided as an example of how to communicate with SBIG cameras. It is provided AS-IS without any guarantees by SBIG of suitability for a particular purpose and without any guarantee to be bug-free. If you use it you agree to these terms and agree to do so at your own risk. 3. Any distribution of this source code to include these terms. Revision History Date Modification ========================================================= 1/26/04 Initial release */ #include "csbigimg.h" #include <stdio.h> #include <string.h> /* Local Constants */ #define FILE_VERSION 3 /* current header version written */ #define DATA_VERSION 1 /* current data version written */ #define HEADER_LEN 2048 #define VERSION_STR "1.0" /* version of this class */ #ifndef PI #define PI 3.1415926535 #endif /* CSBIGImg: Standard constructor. Init member variables. */ CSBIGImg::CSBIGImg() { Init(); } /* CSBIGImg: Alternate constructor. Try to allocate the image buffer. */ CSBIGImg::CSBIGImg(int height, int width) { Init(); AllocateImageBuffer(height, width); } /* ~CSBIGImg: Deallocate the image buffer. */ CSBIGImg::~CSBIGImg() { if ( m_pImage ) delete m_pImage; m_pImage = NULL; } /* Init: Initialize the member variables with reasonable default values. */ void CSBIGImg::Init() { string s1, s2; m_nHeight = m_nWidth = 0; m_pImage = NULL; m_imageStartTime = time(NULL); m_dCCDTemperature = 25.0; m_dExposureTime = m_dEachExposure = 1.0; m_dTrackExposure = 0.0; m_dFocalLength = 80.0; m_dApertureArea = PI * 4.0 * 4.0; m_dResponseFactor = 2000.0; m_dPixelHeight = m_dPixelWidth = 0.009; m_dEGain = 2.3; m_uBackground = 0; m_uRange = 65535; m_uNumberExposures = 1; m_uSaturationLevel = 65535; m_uPedestal = 0; m_uExposureState = ES_ABG_LOW | ES_ABG_RATE_FIXED | ES_DCS_ENABLED | ES_DCR_DISABLED | ES_AUTOBIAS_ENABLED; m_uReadoutMode = 0; m_cImageNote = "Image acquired with CSBIGImg"; m_cObserver = ""; m_cHistory = "0"; m_cFilter = "None"; s1 = "CSBIGImg Ver "; s2 = VERSION_STR; m_cSoftware = s1 + s2; m_cCameraModel = "ST-7"; } /* SaveImage: Save the image in passed path and format. Returns any file errors that occur. */ SBIG_FILE_ERROR CSBIGImg::SaveImage(const char *pFullPath, SBIG_IMAGE_FORMAT fmt) { char header[HEADER_LEN]; FILE *fp; SBIG_FILE_ERROR res; int i, cmpWidth; unsigned char *pCmpData, *pRevData; unsigned short byteTest = 0x1234; MY_LOGICAL reverseBytes; switch ( fmt ) { case SBIF_COMPRESSED: /* SBIG Commpressed Format - create and write the image header then compress and write each row of the image */ CreateSBIGHeader(header, TRUE); res = SBFE_MEMORY_ERROR; pCmpData = new unsigned char[m_nWidth*2 + 2]; if ( pCmpData ) { res = SBFE_OPEN_ERROR; if ( (fp = fopen(pFullPath, "wb")) != 0 ) { res = SBFE_WRITE_ERROR; if ( fwrite(header, HEADER_LEN, 1, fp) == 1 ) { for (i=0; i<m_nHeight; i++){ cmpWidth = CompressSBIGData(pCmpData, i); if ( fwrite(pCmpData, 1, cmpWidth, fp) != (size_t)cmpWidth ) break; } if ( i == m_nHeight ) res = SBFE_NO_ERROR; fclose(fp); } } delete pCmpData; } break; case SBIF_UNCOMPRESSED: /* SBIG Uncompressed Format - Create and write the header then save the image data using the Intel byte order (ls them ms) */ CreateSBIGHeader(header, FALSE); res = SBFE_OPEN_ERROR; if ( (fp = fopen(pFullPath, "wb")) != 0 ) { res = SBFE_WRITE_ERROR; if ( fwrite(header, HEADER_LEN, 1, fp) == 1 ) { reverseBytes = *((unsigned char*)&byteTest) != 0x34; if ( reverseBytes ) { pRevData = new unsigned char[m_nWidth*2]; if ( pRevData ) { for (i=0; i<m_nHeight; i++ ) { IntelCopyBytes(pRevData, i); if ( fwrite(pRevData, 2*m_nWidth, 1, fp) != 1 ) break; } delete pRevData; if ( i == m_nHeight ) res = SBFE_NO_ERROR; } else res = SBFE_MEMORY_ERROR; } else { if ( fwrite(m_pImage, 2*m_nWidth, m_nHeight, fp) == (size_t)m_nHeight ) res = SBFE_NO_ERROR; } } fclose(fp); } break; default: res = SBFE_FORMAT_ERROR; break; } return res; } /* AllocateImageBuffer: Delete any existing buffer then try to allocate one of the given size. Returns TRUE if successful. */ MY_LOGICAL CSBIGImg::AllocateImageBuffer(int height, int width) { if ( m_pImage ) delete m_pImage; m_nHeight = m_nWidth = 0; if ( height > 0 && width > 0 ) { m_pImage = new unsigned short[(long)height * width * sizeof(unsigned short)]; if ( m_pImage ) { m_nHeight = height; m_nWidth = width; } memset(m_pImage, 0, 2L * m_nHeight * m_nWidth); } return m_pImage != NULL; } void CSBIGImg::CreateSBIGHeader(char *pHeader, MY_LOGICAL isCompressed) { char *p; struct tm *plt; memset(pHeader, 0, HEADER_LEN); plt = gmtime(&m_imageStartTime); p = pHeader; p += sprintf(p,"SBIG %sImage\n\r", isCompressed ? "Compressed " : ""); p += sprintf(p,"File_version = %d\n\r",FILE_VERSION); p += sprintf(p,"Data_version = %d\n\r",DATA_VERSION); p += sprintf(p,"Exposure = %ld\n\r",m_dExposureTime < 0.01 ? 1 : (long)(m_dExposureTime * 100.0 + 0.5)); p += sprintf(p,"Focal_length = %1.3lf\n\r", m_dFocalLength); p += sprintf(p,"Aperture = %1.4lf\n\r", m_dApertureArea); p += sprintf(p,"Response_factor = %1.3lf\n\r",m_dResponseFactor); p += sprintf(p,"Note = %s\n\r", m_cImageNote.length() == 0 ? "-" : m_cImageNote.c_str()); p += sprintf(p,"Background = %u\n\r", m_uBackground); p += sprintf(p,"Range = %u\n\r", m_uRange); p += sprintf(p,"Height = %d\n\r", m_nHeight); p += sprintf(p,"Width = %d\n\r", m_nWidth); p += sprintf(p,"Date = %02d/%02d/%02d\n\r", plt->tm_mon+1, plt->tm_mday, plt->tm_year % 100); p += sprintf(p,"Time = %02d:%02d:%02d\n\r", plt->tm_hour, plt->tm_min, plt->tm_sec); p += sprintf(p,"Exposure_state = %u\n\r", m_uExposureState); p += sprintf(p,"Temperature = %1.2lf\n\r", m_dCCDTemperature); p += sprintf(p,"Number_exposures = %d\n\r", m_uNumberExposures); p += sprintf(p,"Each_exposure = %ld\n\r", m_dEachExposure < 0.01 ? 1 : (long)(m_dEachExposure * 100.0 + 0.5)); p += sprintf(p,"History = %s\n\r", m_cHistory.c_str()); p += sprintf(p,"Observer = %s\n\r", m_cObserver.length() == 0 ? "-" : m_cObserver.c_str()); p += sprintf(p,"X_pixel_size = %1.4lf\n\r", m_dPixelWidth); p += sprintf(p,"Y_pixel_size = %1.4lf\n\r", m_dPixelHeight); p += sprintf(p,"Pedestal = %u\n\r", m_uPedestal); p += sprintf(p,"E_gain = %1.2lf\n\r", m_dEGain); /* create user parameters */ p += sprintf(p,"User_1 = %s\n\r", m_cSoftware.length() == 0 ? "-" : m_cSoftware.c_str()); p += sprintf(p,"User_2 = %s\n\r", m_cCameraModel.length() == 0 ? "-" : m_cCameraModel.c_str()); p += sprintf(p,"User_3 = Exposure = %1.3lf, Each_exposure = %1.3lf\n\r", m_dExposureTime, m_dEachExposure); p += sprintf(p,"User_4 = %s%d\n\r", "Y2KYear = ", plt->tm_year + 1900); /* create filter string */ p += sprintf(p,"Filter = %s\n\r", m_cFilter.length() == 0 ? "-" : m_cFilter.c_str()); /* create readout mode */ p += sprintf(p,"Readout_mode = %u\n\r", m_uReadoutMode); /* create track time */ p += sprintf(p,"Track_time = %ld\n\r", m_dTrackExposure < 0.01 ? 0 : (long)(m_dTrackExposure * 100.0 + 0.5)); /* create saturation level */ p += sprintf(p,"Sat_level = %u\n\r", m_uSaturationLevel); p += sprintf(p,"End\n\r%c",0x1a); } /* CompressSBIGData: Compress the imgRow row of pixel data into the pCmpData buffer, returning the length of the combressed data in bytes. */ int CSBIGImg::CompressSBIGData(unsigned char *pCmpData, int imgRow) { unsigned short us, *pImg; unsigned char *puc; int cmpLen, i; long delta; pImg = m_pImage + (long)imgRow * m_nWidth; puc = pCmpData + 2; // offset passed length cmpLen = 0; // encode first pixel as is us = *pImg++; *puc++ = (unsigned char)(us & 0xFF); // ls byte first *puc++ = (unsigned char)(us >> 8); cmpLen += 2; // compress remaining pixels for (i=1; i<m_nWidth; i++ ) { delta = (long)(*pImg) - us; us = *pImg++; if ( delta >= -127 && delta <= 127 ) { // encode pixel as delta; *puc++ = (unsigned char)delta; cmpLen++; if ( cmpLen >= 2*m_nWidth ) // make syre don't overwrite buffer break; } else { // encode pixel directly if ( cmpLen+3 >= 2*m_nWidth ) break; *puc++ = 0x80; *puc++ = (unsigned char)(us & 0xFF); // ls byte first *puc++ = (unsigned char)(us >> 8); cmpLen += 3; } } if ( i < m_nWidth ) { // compressed data is longer, simply copy uncompressed data // note we don't use memcpy here because the the byte order // in memory may be different that ls then ms required by // the file IntelCopyBytes(pCmpData + 2, imgRow); cmpLen = 2 * m_nWidth; } // encode length at start of buffer pCmpData[0] = (unsigned char)(cmpLen & 0xFF); // ls byte of len pCmpData[1] = (unsigned char)(cmpLen >> 8); return cmpLen + 2; } /* IntelCopyBytes: Copy the imgRow row of pixels to the passed buffer preserving the Intel byte order (ls them ms). */ void CSBIGImg::IntelCopyBytes(unsigned char *pRevData, int imgRow) { int i; unsigned short us, *pImg; unsigned char *puc; pImg = m_pImage + (long)imgRow * m_nWidth; puc = pRevData; for (i=0; i<m_nWidth; i++) { us = *pImg++; *puc++ = (unsigned char)(us & 0xFF); // ls byte first *puc++ = (unsigned char)(us >> 8); } } |
From: Andr? L. A. <st...@us...> - 2004-03-31 17:06:18
|
Update of /cvsroot/uts/uts/src/www In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15992/src/www Modified Files: login.php Log Message: 1. camfits.st7 will now compile with includes and libs defined by --with-LALALA. 2. better variable names in camfits.fake and camfits.st4. 3. include includes in CXXFLAGS in configure.ac. Index: login.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/login.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** login.php 26 Mar 2004 02:09:03 -0000 1.2 --- login.php 31 Mar 2004 16:54:28 -0000 1.3 *************** *** 20,24 **** $_SESSION['filter'] = array(); ! $_SESSION['bf_dir'] = "/home/indus/andre/uts" . "/imagens"; $_SESSION['bf_name'] = "imagem-" . $_POST['user'] . "-" . strftime("%d%m%Y", time()); --- 20,24 ---- $_SESSION['filter'] = array(); ! $_SESSION['bf_dir'] = "/data1/indus/andre/uts" . "/imagens"; $_SESSION['bf_name'] = "imagem-" . $_POST['user'] . "-" . strftime("%d%m%Y", time()); |
From: Andr? L. A. <st...@us...> - 2004-03-31 17:06:18
|
Update of /cvsroot/uts/uts/src/tel/teld In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15992/src/tel/teld Modified Files: runchild.c Log Message: 1. camfits.st7 will now compile with includes and libs defined by --with-LALALA. 2. better variable names in camfits.fake and camfits.st4. 3. include includes in CXXFLAGS in configure.ac. Index: runchild.c =================================================================== RCS file: /cvsroot/uts/uts/src/tel/teld/runchild.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** runchild.c 11 Mar 2004 22:23:10 -0000 1.3 --- runchild.c 31 Mar 2004 16:54:27 -0000 1.4 *************** *** 37,46 **** { int chpid, res; ! chpid = vfork(); if (chpid == 0) { /* I am the child, load the code */ ! printf("%s\n", child_cmdline); res = system(child_cmdline); --- 37,46 ---- { int chpid, res; ! chpid = vfork(); if (chpid == 0) { /* I am the child, load the code */ ! printf("%s", child_cmdline); res = system(child_cmdline); |
From: Andr? L. A. <st...@us...> - 2004-03-31 17:06:18
|
Update of /cvsroot/uts/uts/src/tel/telgo.paramount In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15992/src/tel/telgo.paramount Modified Files: main.c Log Message: 1. camfits.st7 will now compile with includes and libs defined by --with-LALALA. 2. better variable names in camfits.fake and camfits.st4. 3. include includes in CXXFLAGS in configure.ac. Index: main.c =================================================================== RCS file: /cvsroot/uts/uts/src/tel/telgo.paramount/main.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** main.c 4 Mar 2004 20:56:20 -0000 1.1 --- main.c 31 Mar 2004 16:54:28 -0000 1.2 *************** *** 106,109 **** --- 106,111 ---- void move_tel(int argc, char **argv) { + char sktmode[10]; + if (argc < 5) usage(argv[0]); *************** *** 114,118 **** /* socket stuff */ - char sktmode[10]; snprintf(sktmode, 10, "c%d", targetport); --- 116,119 ---- |
From: Andr? L. A. <st...@us...> - 2004-03-31 17:06:18
|
Update of /cvsroot/uts/uts/src/tel/telgo.lx200 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15992/src/tel/telgo.lx200 Modified Files: Makefile.am Log Message: 1. camfits.st7 will now compile with includes and libs defined by --with-LALALA. 2. better variable names in camfits.fake and camfits.st4. 3. include includes in CXXFLAGS in configure.ac. Index: Makefile.am =================================================================== RCS file: /cvsroot/uts/uts/src/tel/telgo.lx200/Makefile.am,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Makefile.am 29 Jan 2004 03:03:22 -0000 1.1.1.1 --- Makefile.am 31 Mar 2004 16:54:27 -0000 1.2 *************** *** 3,5 **** telgo_lx200_SOURCES = errors.h fields.c fields.h main.c ser.c ser.h ! telgo_lx200_LDADD = -lm -lcfitsio \ No newline at end of file --- 3,5 ---- telgo_lx200_SOURCES = errors.h fields.c fields.h main.c ser.c ser.h ! telgo_lx200_LDADD = -lm |
From: Andr? L. A. <st...@us...> - 2004-03-31 17:06:16
|
Update of /cvsroot/uts/uts/src/cam/camfits.st4 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15992/src/cam/camfits.st4 Modified Files: main.c Log Message: 1. camfits.st7 will now compile with includes and libs defined by --with-LALALA. 2. better variable names in camfits.fake and camfits.st4. 3. include includes in CXXFLAGS in configure.ac. Index: main.c =================================================================== RCS file: /cvsroot/uts/uts/src/cam/camfits.st4/main.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** main.c 29 Jan 2004 03:02:40 -0000 1.1.1.1 --- main.c 31 Mar 2004 16:54:21 -0000 1.2 *************** *** 10,14 **** #define FALSE (0) ! int getimage(cam_info *camera, float texp, char *bfname, int index); int fileexists(char *fname); void usage(void); --- 10,14 ---- #define FALSE (0) ! int getimage(cam_info *camera, float texp, char *bfname, int imindex); int fileexists(char *fname); void usage(void); *************** *** 28,32 **** char *porta; /* Serial port */ char *bfname; /* Image base-file-name */ ! int index; /* index to bfname */ float texp; /* Exposure time */ fitsfile *fptr; /* Image file */ --- 28,32 ---- char *porta; /* Serial port */ char *bfname; /* Image base-file-name */ ! int imindex; /* index to bfname */ float texp; /* Exposure time */ fitsfile *fptr; /* Image file */ *************** *** 89,93 **** /* get index */ if (!output) { ! res = sscanf(argv[7], "%d", &index); if (res != 1) { fprintf(stderr, "\nError: \"%s\" is an invalid index.\n\n", argv[2]); --- 89,93 ---- /* get index */ if (!output) { ! res = sscanf(argv[7], "%d", &imindex); if (res != 1) { fprintf(stderr, "\nError: \"%s\" is an invalid index.\n\n", argv[2]); *************** *** 117,121 **** for (nimg = 0; nimg < nexp; nimg++) { fprintf(stderr, "\nTaking image #%d.\n", nimg); ! getimage(camera, texp, bfname, (nimg + index)); if (stop_imaging) break; } --- 117,121 ---- for (nimg = 0; nimg < nexp; nimg++) { fprintf(stderr, "\nTaking image #%d.\n", nimg); ! getimage(camera, texp, bfname, (nimg + imindex)); if (stop_imaging) break; } *************** *** 126,130 **** ! int getimage(cam_info *camera, float texp, char *bfname, int index) { char fname[128]; --- 126,130 ---- ! int getimage(cam_info *camera, float texp, char *bfname, int imindex) { char fname[128]; *************** *** 150,154 **** fprintf(stderr, "\nDone.\n"); } else { ! sprintf(fname, "%s%04d.fits", bfname, index); fprintf(stderr, "Saving image %s...", fname); if (fileexists(fname)) --- 150,154 ---- fprintf(stderr, "\nDone.\n"); } else { ! sprintf(fname, "%s%04d.fits", bfname, imindex); fprintf(stderr, "Saving image %s...", fname); if (fileexists(fname)) |
From: Paulo H. S. de S. <ph...@us...> - 2004-03-26 02:19:56
|
Update of /cvsroot/uts/uts/src/www In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv384/src/www Modified Files: apontar.php arquivo.php index.php login.php utils.php Added Files: ajuda.php default.png display.php download.php login.php.in Log Message: - display.php: display preview from FITS - download.php: put a FITS in HTTP response header to user download it - arquivo.php: now it display real archive from user images Index: utils.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/utils.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** utils.php 29 Jan 2004 03:03:23 -0000 1.1.1.1 --- utils.php 26 Mar 2004 02:09:03 -0000 1.2 *************** *** 21,25 **** $servers = array(); ! exec("spmtable $server", $spmout); if(count($spmout) < 4) { --- 21,25 ---- $servers = array(); ! exec("/home/indus/henrique/ssl/bin/spmtable $server", $spmout); if(count($spmout) < 4) { --- NEW FILE: login.php.in --- <? // log user and setup session variables if(($_POST['user'] != "henrique") || ($_POST['pass'] != "ovdemo")) { Header("Location: index.php?erro=1"); exit(-1); } session_start(); $_SESSION['user'] = $_POST['user']; $_SESSION['inicio'] = time(); $_SESSION['log'] = array(); $_SESSION['ra'] = array(); $_SESSION['dec'] = array(); $_SESSION['num_exp'] = array(); $_SESSION['exp_time'] = array(); $_SESSION['filter'] = array(); $_SESSION['bf_dir'] = "@prefix@" . "/imagens"; $_SESSION['bf_name'] = "imagem-" . $_POST['user'] . "-" . strftime("%d%m%Y", time()); $_SESSION['bf_fullpath'] = $_SESSION['bf_dir'] . "/" . $_SESSION['bf_name']; // create user image space //mkdir($_SESSION['bf_dir'], 0777); Header("Location: home.php"); ?> --- NEW FILE: display.php --- <? session_start(); if(!$_SESSION['user']) { session_destroy(); Header("Location: index.php"); } // tenta converter o arquivo caso nao exista um $fits_file = $_GET['filename']; $target_file = "imagens/" . basename($fits_file, ".fits") . ".jpg"; if(!file_exists($target_file)) { exec("convert $fits_file $target_file &> /dev/null", $tmp, $ret); } ?> <html> <head> <title>Observatórios Virtuais - Sessão - <?=$_SESSION['user']?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; text-decoration: none} .tabela { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; color: #000000} .tabelaH { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none ; background-color: #666666; color: #FFFFFF} .tabelaOn { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none ; background-color: #999999} .tabelaOff { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none ; background-color: #CCCCCC} --> </style> </head> <body bgcolor="#000000" text="#FFFFFF" link="#CCCCCC" vlink="#CCCCCC"> <center> <b><?=$fits_file?></b><p> <? if($ret) { ?> <img src="default.png"> <? } else { ?> <img src="<?=$target_file?>"> <? } ?> </center> <p align="center"><a href="arquivo.php">:: voltar :::</a></p> </body> </html> --- NEW FILE: ajuda.php --- Index: index.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.php 29 Jan 2004 03:03:23 -0000 1.1.1.1 --- index.php 26 Mar 2004 02:09:03 -0000 1.2 *************** *** 1,2 **** --- 1,12 ---- + <? + + session_start(); + + if($_SESSION['user']) + Header("Location: home.php"); + + + ?> + <html> Index: arquivo.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/arquivo.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** arquivo.php 29 Jan 2004 03:03:23 -0000 1.1.1.1 --- arquivo.php 26 Mar 2004 02:09:03 -0000 1.2 *************** *** 8,11 **** --- 8,12 ---- } + clearstatcache(); ?> *************** *** 18,25 **** <!-- body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; text-decoration: none} ! .tabela { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none } ! .tabelaH { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none ; background-color: #666666} .tabelaOn { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none ; background-color: #999999} .tabelaOff { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none ; background-color: #CCCCCC} --> </style> --- 19,27 ---- <!-- body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; text-decoration: none} ! .tabela { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; color: #000000 } ! .tabelaH { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none ; background-color: #666666; color: #FFFFFF} .tabelaOn { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none ; background-color: #999999} .tabelaOff { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none ; background-color: #CCCCCC} + a.ph { text-decoration: none; color: #000000 } --> </style> *************** *** 30,90 **** <p><img src="ovlogo.jpg" width="145" height="105"> </p> <p> </p> <table width="70%" border="0" class="tabela"> ! <tr bgcolor="#666666"> <td>Arquivo</td> <td>Tamanho</td> - <td>Ultima Modificação</td> <td>Visualizar</td> <td>Download</td> </tr> ! <tr bgcolor="#CCCCCC"> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> ! </tr> ! <tr bgcolor="#999999"> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> ! </tr> ! <tr bgcolor="#CCCCCC"> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> ! </tr> ! <tr bgcolor="#999999"> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> ! </tr> ! <tr bgcolor="#CCCCCC"> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> ! </tr> ! <tr bgcolor="#999999"> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> </tr> ! <tr bgcolor="#CCCCCC"> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> ! <td> </td> </tr> </table> <p> </p> --- 32,87 ---- <p><img src="ovlogo.jpg" width="145" height="105"> </p> <p> </p> + <table width="70%" border="0" class="tabela"> ! <tr bgcolor="#666666" class="tabelaH"> <td>Arquivo</td> <td>Tamanho</td> <td>Visualizar</td> <td>Download</td> </tr> ! <? ! ! $dir = 'imagens'; ! $dh = opendir($dir); ! ! while (false !== ($filename = readdir($dh))) { ! if((strstr($filename, ".fits")) && (strstr($filename, $_SESSION['bf_name']))) ! $files[] = $filename; ! } ! ! if(!count($files)) { ! ! ?> ! <tr class="tabelaOn"> ! <td colspan="5" align="center">Nenhum objeto na lista</td> </tr> ! <? ! ! } else { ! ! for ($i = 0; $i < count($files); $i++) { ! $stat = stat("imagens/" . $filename); ! ! if($i % 2) { ! ! ?> ! <tr class="tabelaOn"> ! <? ! } else { ! ?> ! <tr class="tabelaOff"> ! <? ! } ! ?> ! <td><?=$files[$i]?></td> ! <td><?=$stat['size']?> bytes</td> ! <td align="center"><a class="ph "href="display.php?filename=imagens/<?=$files[$i]?>">:: mostrar ::</a></td> ! <td align="center"><a class="ph "href="download.php?filename=imagens/<?=$files[$i]?>">:: download ::</a></td> </tr> + <? + } + } + ?> + </table> <p> </p> --- NEW FILE: default.png --- (This appears to be a binary file; contents omitted.) Index: apontar.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/apontar.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** apontar.php 29 Jan 2004 03:03:23 -0000 1.1.1.1 --- apontar.php 26 Mar 2004 02:09:03 -0000 1.2 *************** *** 11,15 **** ! $servers = getServers("grus.fsc.ufsc.br"); if(!$servers) { --- 11,15 ---- ! $servers = getServers("octans"); if(!$servers) { *************** *** 19,24 **** $sync = new Syncd(); ! $sync->setInteractive(FALSE); ! $sync->connect('localhost', $servers['SYNCcontrol']); $sync->setStatus("RA", $_GET['ra']); --- 19,24 ---- $sync = new Syncd(); ! $sync->setInteractive(TRUE); ! $sync->connect('octans', $servers['SYNCcontrol']); $sync->setStatus("RA", $_GET['ra']); *************** *** 28,33 **** $sync->setStatus("EXPTIME", $_GET['exp_time']); $sync->setStatus("NEXP", $_GET['num_exp']); ! $sync->setStatus("BFNAME", dirname($_SERVER['SCRIPT_FILENAME']) . "/" . "imagem"); ! $sync->setStatus("INDEX", 0000); $sync->setStatus("OBSERVER", "GUTS Team"); $sync->setStatus("START", "NOW"); --- 28,32 ---- $sync->setStatus("EXPTIME", $_GET['exp_time']); $sync->setStatus("NEXP", $_GET['num_exp']); ! $sync->setStatus("BFNAME", $_SESSION['bf_fullpath']); $sync->setStatus("OBSERVER", "GUTS Team"); $sync->setStatus("START", "NOW"); --- NEW FILE: download.php --- <? session_start(); if(!$_SESSION['user']) { session_destroy(); header("Location: index.php"); } $len = filesize($_GET['filename']); header("Content-type: image/fits"); header("Content-Length: $len"); header("Content-Disposition: inline; filename=" . $_GET['filename']); readfile($_GET['filename']); ?> Index: login.php =================================================================== RCS file: /cvsroot/uts/uts/src/www/login.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** login.php 29 Jan 2004 03:03:26 -0000 1.1.1.1 --- login.php 26 Mar 2004 02:09:03 -0000 1.2 *************** *** 20,26 **** $_SESSION['filter'] = array(); ! $_SESSION['bf_dir'] = dirname($_SERVER['SCRIPT_FILENAME']) . "/imagens/" . $_POST['user'] . "-".strftime("%d%m%Y", time()); - $_SESSION['bf_name'] = "imagem"; $_SESSION['bf_fullpath'] = $_SESSION['bf_dir'] . "/" . $_SESSION['bf_name']; --- 20,26 ---- $_SESSION['filter'] = array(); ! $_SESSION['bf_dir'] = "/home/indus/andre/uts" . "/imagens"; ! $_SESSION['bf_name'] = "imagem-" . $_POST['user'] . "-" . strftime("%d%m%Y", time()); $_SESSION['bf_fullpath'] = $_SESSION['bf_dir'] . "/" . $_SESSION['bf_name']; |
From: Paulo H. S. de S. <ph...@us...> - 2004-03-26 02:19:56
|
Update of /cvsroot/uts/uts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv384 Modified Files: configure.ac Log Message: - display.php: display preview from FITS - download.php: put a FITS in HTTP response header to user download it - arquivo.php: now it display real archive from user images Index: configure.ac =================================================================== RCS file: /cvsroot/uts/uts/configure.ac,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** configure.ac 24 Mar 2004 23:30:04 -0000 1.4 --- configure.ac 26 Mar 2004 02:09:03 -0000 1.5 *************** *** 34,37 **** --- 34,38 ---- LDFLAGS="$LDFLAGS -L$withval/lib" CFLAGS="$CFLAGS -I$withval/include" + CXXFLAGS="$CXXFLAGS -I$withval" fi fi *************** *** 49,52 **** --- 50,54 ---- [ if test $withval != "yes"; then CFLAGS="$CFLAGS -I$withval" + CXXFLAGS="$CXXFLAGS -I$withval" fi ]) *************** *** 58,61 **** --- 60,64 ---- LDFLAGS="$LDFLAGS -L$withval/lib" CFLAGS="$CFLAGS -I$withval/include" + CXXFLAGS="$CXXFLAGS -I$withval" fi fi *************** *** 73,76 **** --- 76,80 ---- [ if test $withval != "yes"; then CFLAGS="$CFLAGS -I$withval" + CXXFLAGS="$CXXFLAGS -I$withval" fi ]) *************** *** 82,85 **** --- 86,90 ---- LDFLAGS="$LDFLAGS -L$withval/lib" CFLAGS="$CFLAGS -I$withval/include" + CXXFLAGS="$CXXFLAGS -I$withval" fi fi *************** *** 97,100 **** --- 102,106 ---- [ if test $withval != "yes"; then CFLAGS="$CFLAGS -I$withval" + CXXFLAGS="$CXXFLAGS -I$withval" fi ]) *************** *** 139,143 **** src/tel/telgo.fake/Makefile src/tel/telgo.lx200/Makefile ! src/tel/telgo.paramount/Makefile]) AC_OUTPUT --- 145,150 ---- src/tel/telgo.fake/Makefile src/tel/telgo.lx200/Makefile ! src/tel/telgo.paramount/Makefile ! src/www/login.php]) AC_OUTPUT |
From: Andr? L. A. <st...@us...> - 2004-03-24 23:40:47
|
Update of /cvsroot/uts/uts/src/cam/camfits.st7 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29778/src/cam/camfits.st7 Modified Files: Makefile.am Log Message: Added camfits.st7. Added sbigudrv tests to configure scripts. PROBLEM: camfits.st7 uses CXX, and CFLAGS are not added to CXXFLAGS, i.e., sbigudrv.h can not be found in -I(...). camfits.st7 can't compile by now. Index: Makefile.am =================================================================== RCS file: /cvsroot/uts/uts/src/cam/camfits.st7/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile.am 18 Mar 2004 19:27:43 -0000 1.1 --- Makefile.am 24 Mar 2004 23:30:04 -0000 1.2 *************** *** 4,5 **** --- 4,6 ---- camfits_st7_LDADD = -lm -lcfitsio -lsbigudrv + |
From: Andr? L. A. <st...@us...> - 2004-03-24 23:40:46
|
Update of /cvsroot/uts/uts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29778 Modified Files: configure.ac Log Message: Added camfits.st7. Added sbigudrv tests to configure scripts. PROBLEM: camfits.st7 uses CXX, and CFLAGS are not added to CXXFLAGS, i.e., sbigudrv.h can not be found in -I(...). camfits.st7 can't compile by now. Index: configure.ac =================================================================== RCS file: /cvsroot/uts/uts/configure.ac,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** configure.ac 24 Mar 2004 22:26:25 -0000 1.3 --- configure.ac 24 Mar 2004 23:30:04 -0000 1.4 *************** *** 8,11 **** --- 8,12 ---- # Checks for programs. AC_PROG_CC + AC_PROG_CXX # Checks for header files. *************** *** 30,35 **** --- 31,38 ---- AC_HELP_STRING([--with-cfitsio[=DIR]],[Path to CFITSIO library]), [ if test $withval != "yes"; then + if test -f $withval/include/fitsio.h; then LDFLAGS="$LDFLAGS -L$withval/lib" CFLAGS="$CFLAGS -I$withval/include" + fi fi ]) *************** *** 73,76 **** --- 76,102 ---- ]) + AC_ARG_WITH(sbigudrv, + AC_HELP_STRING([--with-sbigudrv[=DIR]],[Path to sbigudrv (SBIG Universal driver) library]), + [ if test $withval != "yes"; then + if test -f $withval/include/sbigudrv.h; then + LDFLAGS="$LDFLAGS -L$withval/lib" + CFLAGS="$CFLAGS -I$withval/include" + fi + fi + ]) + + AC_ARG_WITH(sbigudrv-libdir, + AC_HELP_STRING([--with-sbigudrv-libdir[=DIR]],[Path to sbigudrv (SBIG Universal driver) library directory]), + [ if test $withval != "yes"; then + LDFLAGS="$LDFLAGS -L$withval" + fi + ]) + + AC_ARG_WITH(sbigudrv-incdir, + AC_HELP_STRING([--with-sbigudrv-incdir[=DIR]],[Path to sbigudrv (SBIG Universal driver) includes directory]), + [ if test $withval != "yes"; then + CFLAGS="$CFLAGS -I$withval" + fi + ]) # Checks for libraries. *************** *** 84,87 **** --- 110,116 ---- AC_MSG_ERROR(*** Cannot find simpleskts. Use --with-simpleskts=PATH.)) + AC_CHECK_LIB([sbigudrv], [SBIGUnivDrvCommand], [AC_DEFINE([HAVE_SBIGUDRV], [1], [Have SBIG Unversal Driver])], + AC_MSG_ERROR(*** Cannot find sbigudrv. Use --with-sbigudrv=PATH.)) + # better CFLAGS |
From: Andr? L. A. <st...@us...> - 2004-03-24 22:37:08
|
Update of /cvsroot/uts/uts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15540 Modified Files: configure.ac Log Message: Added camfits.st7 Index: configure.ac =================================================================== RCS file: /cvsroot/uts/uts/configure.ac,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** configure.ac 4 Mar 2004 20:55:24 -0000 1.2 --- configure.ac 24 Mar 2004 22:26:25 -0000 1.3 *************** *** 78,86 **** AC_CHECK_LIB([cfitsio], [ffopen], [AC_DEFINE([HAVE_CFITSIO], [1], [Have CFITSIO])], ! AC_MSG_ERROR(*** Cannot found cfitsio. Try use --with-cfitsio=PATH.), [-lm]) AC_CHECK_LIB([simpleskts], [Sopen], [AC_DEFINE([HAVE_SIMPLESKTS], [1], [Have Simple Sockets Library])], ! AC_MSG_ERROR(*** Cannot found simpleskts. Try use --with-simpleskts=PATH.)) --- 78,86 ---- AC_CHECK_LIB([cfitsio], [ffopen], [AC_DEFINE([HAVE_CFITSIO], [1], [Have CFITSIO])], ! AC_MSG_ERROR(*** Cannot find cfitsio. Use --with-cfitsio=PATH.), [-lm]) AC_CHECK_LIB([simpleskts], [Sopen], [AC_DEFINE([HAVE_SIMPLESKTS], [1], [Have Simple Sockets Library])], ! AC_MSG_ERROR(*** Cannot find simpleskts. Use --with-simpleskts=PATH.)) *************** *** 96,99 **** --- 96,100 ---- src/cam/camfits.fake/Makefile src/cam/camfits.st4/Makefile + src/cam/camfits.st7/Makefile src/cam/etc/Makefile src/client/Makefile |