Changeset 39719
- Timestamp:
- Sep 24, 2016, 3:29:05 PM (10 years ago)
- Location:
- branches/czw_branch/20160809
- Files:
-
- 41 edited
- 9 copied
-
. (modified) (1 prop)
-
DataStoreServer/scripts/dsprodindex (modified) (1 diff)
-
DataStoreServer/scripts/dsrootindex (modified) (2 diffs)
-
DataStoreServer/web/cgi/dsgetindex (modified) (4 diffs)
-
DataStoreServer/web/cgi/findskycalcmf.pl (copied) (copied from trunk/DataStoreServer/web/cgi/findskycalcmf.pl )
-
DataStoreServer/web/cgi/findsmf.pl (modified) (2 diffs)
-
DataStoreServer/web/cgi/listsmfs.pl (copied) (copied from trunk/DataStoreServer/web/cgi/listsmfs.pl )
-
DataStoreServer/web/doc (copied) (copied from trunk/DataStoreServer/web/doc )
-
DataStoreServer/web/php/getskycalcmf.php (copied) (copied from trunk/DataStoreServer/web/php/getskycalcmf.php )
-
DataStoreServer/web/php/getsmf.php (modified) (5 diffs)
-
DataStoreServer/web/php/listsmfs.php (copied) (copied from trunk/DataStoreServer/web/php/listsmfs.php )
-
Nebulous-Server (modified) (1 prop)
-
Nebulous-Server/bin/neb-initdb (modified) (8 diffs)
-
Nebulous-Server/bin/neb-voladm (modified) (1 diff)
-
Nebulous-Server/bin/nebdiskd (modified) (1 diff)
-
Ohana (modified) (1 prop)
-
Ohana/src/delstar/Makefile (modified) (2 diffs)
-
Ohana/src/delstar/include/delstar.h (modified) (3 diffs)
-
Ohana/src/delstar/src/args.c (modified) (4 diffs)
-
Ohana/src/delstar/src/delete_duplicate_measures.c (modified) (3 diffs)
-
Ohana/src/delstar/src/delstar.c (modified) (1 diff)
-
Ohana/src/delstar/src/delstar_client.c (modified) (1 diff)
-
Ohana/src/kapa2/src/Graphs.c (modified) (1 diff)
-
Ohana/src/libdvo/include/dvo.h (modified) (1 diff)
-
Ohana/src/libdvo/src/dbExtractMeasures.c (modified) (1 diff)
-
Ohana/src/libdvo/src/dvo_photcode_ops.c (modified) (1 diff)
-
Ohana/src/libkapa/src/KapaWindow.c (modified) (2 diffs)
-
Ohana/src/relastro/Makefile (modified) (2 diffs)
-
Ohana/src/relastro/include/relastro.h (modified) (2 diffs)
-
Ohana/src/relastro/src (modified) (1 prop)
-
Ohana/src/relastro/src/RepairObjectIDs.c (copied) (copied from trunk/Ohana/src/relastro/src/RepairObjectIDs.c )
-
Ohana/src/relastro/src/RepairStacks.c (copied) (copied from trunk/Ohana/src/relastro/src/RepairStacks.c )
-
Ohana/src/relastro/src/StackImageMaps.c (modified) (2 diffs)
-
Ohana/src/relastro/src/UpdateObjectOffsets.c (modified) (2 diffs)
-
Ohana/src/relastro/src/args.c (modified) (4 diffs)
-
Ohana/src/relastro/src/relastro.c (modified) (1 diff)
-
Ohana/src/relastro/src/relastro_client.c (modified) (1 diff)
-
ippToPsps/jython/fits.py (modified) (3 diffs)
-
ippToPsps/jython/objectbatch.py (modified) (1 diff)
-
ippconfig/Makefile.am (modified) (1 diff)
-
ippconfig/configure.ac (modified) (1 diff)
-
ippconfig/dvo.photcodes (modified) (1 diff)
-
ippconfig/hsc/Makefile.am (copied) (copied from trunk/ippconfig/hsc/Makefile.am )
-
ippconfig/hsc/camera.config (modified) (1 diff)
-
ippconfig/hsc/format_mef.config (modified) (1 diff)
-
ippconfig/recipes/nightly_science.config (modified) (3 diffs)
-
ippconfig/tc3/Makefile.am (modified) (1 diff)
-
psconfig/tagsets/ipp-3.0.dist (modified) (1 diff)
-
tools/heather/pv3slicer/slicebatch_ST.py (modified) (3 diffs)
-
tools/heather/pv3slicer/st.txt (copied) (copied from trunk/tools/heather/pv3slicer/st.txt )
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20160809
-
branches/czw_branch/20160809/DataStoreServer/scripts/dsprodindex
r26926 r39719 75 75 # 76 76 # XXX: the spec doesn't say what should happen in this case. 77 # Here we follow the conductor implementation and return the whole list. 78 # This may not be the right thing to do. It might be better to throw an error 77 # We used to follow the conductor implementation and return the whole list. 78 # but that is definitely not the right thing to do in our context. 79 # Exit with an error 80 exit 404; 79 81 } 80 82 } -
branches/czw_branch/20160809/DataStoreServer/scripts/dsrootindex
r17381 r39719 14 14 my $PS_EXIT_CONFIG_ERROR = 3; 15 15 16 # set this variable to redirect listings of the root datastore directory 17 # to the password protected php page on the postage stamp server web site. 18 # Since the data store is restricted by IP address now this is no longer necessary 19 my $redirect_root_to_pstamp = 0; 20 if ($redirect_root_to_pstamp) { 21 22 print ' 23 <html> 24 <head> 25 <meta HTTP-EQUIV="REFRESH" content="0; url=http://pstamp.ipp.ifa.hawaii.edu/dsroot.php"> 26 </head> 27 </html> 28 '; 29 30 exit 0; 31 } 32 16 33 my $dbh = getDBHandle(); 17 34 18 my $stmt = $dbh->prepare("SELECT * FROM dsProduct ");35 my $stmt = $dbh->prepare("SELECT * FROM dsProduct ORDER BY type"); 19 36 $stmt->execute(); 20 37 … … 36 53 $row->{type}, $row->{description}; 37 54 55 # XXX EAM : security by obfuscation 38 56 print $line; 39 57 } -
branches/czw_branch/20160809/DataStoreServer/web/cgi/dsgetindex
r25366 r39719 20 20 my $PS_EXIT_CONFIG_ERROR = 3; 21 21 my $PS_EXIT_DATA_ERROR = 5; 22 23 my $redirect_root_to_pstamp = 0; 22 24 23 25 my $uri = shift; … … 132 134 print @$stdout_buf; 133 135 } 136 $error_code = 0 if !defined $error_code; 134 137 } else { 135 138 if (0 && $html_mode) { … … 199 202 200 203 # return link 201 print a({-href=>"./index.txt"}, "Text Version"); 204 if (!$redirect_root_to_pstamp || $program ne "dsrootindex") { 205 print a({-href=>"./index.txt"}, "Text Version"); 206 } 202 207 203 208 if ($#path >= 1) { 204 print "    \n"; 205 206 my $up = join('/', @path[0..$#path-1]); 207 print a({-href=>".."}, "Up to $up"); 208 209 # including the up links in the data store display causes 210 # wget -r to follow them up which makes a mess 211 # Turn them off if the user agent looks like wget 212 my $display_up_links = (lc($ENV{HTTP_USER_AGENT}) =~ /wget/) ? 0 : 1; 213 if ($display_up_links) { 214 print "    \n"; 215 my $up = join('/', @path[0..$#path-1]); 216 if ($redirect_root_to_pstamp and $program eq "dsprodindex") { 217 print a({-href=>"http://pstamp.ipp.ifa.hawaii.edu/dsroot.php"}, "Up to $up"); 218 } elsif ($program eq 'dsrootindex') { 219 # no up link in dsroot 220 } else { 221 print a({-href=>".."}, "Up to $up"); 222 } 223 } 209 224 } 210 225 print "</p>\n"; … … 244 259 if ($nolink) { 245 260 print $toks[0]; 246 } 247 248 else { 249 # assumes id is always first field 250 my $wpath = "./$toks[0]"; 251 252 # if this is a file request, use a download cgi 253 if ($wpath =~ /\.fits\s*$/) { 254 # This doesn't work through the proxy 255 # The /ds-cgi gets tried on alala 256 # $wpath = '/ds-cgi/dsfits.cgi?'.substr($wpath, 4); # strip' /ds/' 261 } else { 262 # First column is link to an entity down one level in data store (product, fileset, file) 263 # assumes id is always first field 264 my $wpath = "./$toks[0]"; 265 266 # if this is a file request, use a download cgi 267 my $fits = 0; 268 if ($wpath =~ /\.fits\s*$/) { 269 # This doesn't work through the proxy 270 # The /ds-cgi gets tried on alala 271 # $wpath = '/ds-cgi/dsfits.cgi?'.substr($wpath, 4); # strip' /ds/' 272 $fits = 1; 273 } 274 275 if ($fits) { 276 print a({-href=>$wpath, -type=>'image/x-fits'}, $toks[0]); 277 } else { 278 print a({-href=>$wpath}, $toks[0]); 279 } 280 281 if ($program eq 'dsrootindex') { 282 # for root listing make most recent fileset a link as well unless there are no filesets 283 my $fileset = $toks[1]; 284 $fileset =~ s/^\s+//; 285 $fileset =~ s/\s+$//; 286 if ($fileset ne 'none') { 287 print "</$celltag>"; 288 print "<$celltag>"; 289 # drop the product from the list of tokens 290 my $product = shift @toks; 291 # elmiminate any whitesapace 292 $product =~ s/^\s+//; 293 $product =~ s/\s+$//; 294 print a({-href=>"./$product/$fileset"}, $fileset); 257 295 } 258 259 print a({-href=>$wpath, -type=>'image/x-fits'}, $toks[0]);260 }296 } 297 } 298 shift @toks; 261 299 262 300 print "</$celltag>"; 263 301 264 foreach my $val (@toks[1..$#toks]) { 302 # foreach my $val (@toks[1..$#toks]) { 303 foreach my $val (@toks) { 265 304 print "<$celltag>"; 266 305 print $val; -
branches/czw_branch/20160809/DataStoreServer/web/cgi/findsmf.pl
r35241 r39719 35 35 36 36 # NOTE: We do not use the ipp configuration to simplify running from a CGI script 37 my $dbname = " XXX";38 my $dbserver = " XXX";39 my $dbuser = " XXX";40 my $dbpassword = " XXX";37 my $dbname = "gpc1"; 38 my $dbserver = "scidbm"; 39 my $dbuser = "ippuser"; 40 my $dbpassword = "ippuser"; 41 41 42 42 … … 77 77 exit 2 if (!$resolved) 78 78 } 79 # HERE IS THE OUTPUT FOR A SUCCESSFUL LOOKUP 79 80 print "$filename $resolved"; 80 81 } else { -
branches/czw_branch/20160809/DataStoreServer/web/php/getsmf.php
r35330 r39719 5 5 // To just list use wget 'http://ippc17/ipp-misc/getsmf.php?exp_name=o5732g0036o&list=1' 6 6 7 // Only configuration variable here, the location of the cgi script to find smf files8 $command = "/data/ippc17.0/datastore/ds-cgi/findsmf.pl";9 10 $rvar_exp_name = "";11 $rvar_cam_id = "";12 $rvar_data_group = "";13 $rvar_list = 0;14 7 15 8 $error_string = ""; 16 9 $debug = 0; 17 18 # import_request_variables("g", "rvar_");19 10 20 11 $rvar_exp_name = getVar('exp_name'); … … 24 15 $rvar_data_group = getVar('data_group'); 25 16 $rvar_list = getVar('list'); 17 18 $command = "/data/ippc17.0/datastore/ds-cgi/findsmf.pl"; 26 19 27 20 # cam_id takes priority … … 38 31 if ($command) { 39 32 if ($rvar_release) { 40 $command .= " --release $release"; 33 if ($rvar_release == "3PI.GR1") { 34 $rvar_release = "3PI.PV1"; 35 } 36 $command .= " --release $rvar_release"; 41 37 } 42 38 if ($rvar_data_group) { … … 69 65 } 70 66 } else { 71 echo " unexpected output from $command: $output[0] $output[1]\n";67 echo "<br>unexpected output from $command: $output[0] $output[1]\n"; 72 68 } 73 69 } else { 74 70 if ($debug) { 75 echo " command failed $command_status\n";71 echo "<br>command failed $command_status\n"; 76 72 } 77 73 } … … 92 88 readfile($pathname); 93 89 } else { 94 echo "smf file name is $filename<br>\nfile is $pathname\n"; 90 echo "smf : $filename\n"; 91 # echo "path: $pathname\n"; 95 92 } 96 97 93 } else { 98 94 // XXX: Figure out how to stop wget from redirecting these error -
branches/czw_branch/20160809/Nebulous-Server
- Property svn:mergeinfo deleted
-
branches/czw_branch/20160809/Nebulous-Server/bin/neb-initdb
r18386 r39719 18 18 19 19 my ($db, $dbhost, $dbuser, $dbpass); 20 21 $db = $ENV{'NEB_DB'} unless $db; 22 $dbhost = $ENV{'NEB_DBHOST'} || 'localhost'; 23 $dbuser = $ENV{'NEB_USER'} unless $dbuser; 24 $dbpass = $ENV{'NEB_PASS'} unless $dbpass; 20 my ($trap, $actually_do_it); 21 # Removed default options using environment variables because it's too dangerous. 25 22 26 23 GetOptions( … … 29 26 'user=s' => \$dbuser, 30 27 'pass=s' => \$dbpass, 28 'yes_i_know_what_im_doing' => \$trap, 29 'yes_i_know_what_im_doing_really=s' => \$actually_do_it, 31 30 ) || pod2usage( 2 ); 32 31 33 32 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 34 pod2usage( -msg => "Required options: --db --user --pass", -exitval => 2 ) 35 unless $db && $dbuser && $dbpass; 33 pod2usage( -msg => "Required options: --db --user --pass --host", -exitval => 2 ) 34 unless $db && $dbuser && $dbpass && $dbhost; 35 pod2usage( -msg => "Aborting due to mistake in options. Check code.", -exitval => 2) if ($trap); 36 pod2usage( -msg => "Aborting due to mistake in options. Check code.", -exitval => 2) unless (defined($actually_do_it)); 37 if ($actually_do_it ne 'this_is_intentionally_difficult') { 38 pod2usage( -msg => "Aborting due to mistake in options. Check code.", -exitval => 2); 39 } 36 40 37 41 my $dbh = DBI->connect( … … 48 52 my $sql = Nebulous::Server::SQL->new(); 49 53 50 print "Dropping any existing tables..."; 54 print "Not dropping any existing tables because that's dangerous..."; 55 # 56 #foreach my $statement (@{ $sql->get_db_clear }) { 57 # $dbh->do( $statement ); 58 #} 51 59 52 foreach my $statement (@{ $sql->get_db_clear }) { 53 $dbh->do( $statement ); 54 } 55 56 print " OK\nCreating new tables..."; 60 print " OK!\nCreating new tables..."; 57 61 58 62 foreach my $statement (@{ $sql->get_db_schema }) { 59 $dbh->do( $statement ); 63 eval { 64 $dbh->do( $statement ); 65 }; 66 if ($@) { 67 die "Error received: $@\n"; 68 } 60 69 } 61 70 … … 72 81 =head1 SYNOPSIS 73 82 74 neb-initdb [--db <database>] [--user <username>] [--pass <password>] 83 neb-initdb [--db <database>] [--user <username>] [--pass <password>] [--host <dbhost>] 75 84 76 85 =head1 DESCRIPTION … … 78 87 This program initialize a database for use by L<Nebulous::Server> by creating 79 88 the appropriate set of tables. Any pre-existing tables with conflicting names 80 are first removed. 89 are first removed. This help file intentionally does not tell you how to make 90 the program actually work. 81 91 82 92 =head1 OPTIONS … … 84 94 =over 4 85 95 86 =item * --db |-d<database>96 =item * --db <database> 87 97 88 98 Name of database (C<namespace>) to create tables in. 89 99 90 Optional if the appropriate environment variable is set.91 100 92 =item * --user |-u<username>101 =item * --user <username> 93 102 94 103 Username to authenticate with. 95 104 96 Optional if the appropriate environment variable is set.97 105 98 =item * --pass |-p<password>106 =item * --pass <password> 99 107 100 108 Password to authenticate with. 101 109 102 Optional if the appropriate environment variable is set. 110 =item * --host <dbhost> 111 112 Host to generate the database tables on. 103 113 104 114 =back … … 106 116 =head1 ENVIRONMENT 107 117 108 These environment variables may be used in place of the specified command line 109 options. All command line option will override the corresponding environment 110 value. 111 112 =over 4 113 114 =item * C<NEB_DB> 115 116 Equivalent to --db|-d 117 118 =item * C<NEB_USER> 119 120 Equivalent to --user|-u 121 122 =item * C<NEB_PASS> 123 124 Equivalent to --pass|-p 125 126 =back 127 128 =head1 CREDITS 129 130 Just me, myself, and I. 118 No environment variables interact with this program. 131 119 132 120 =head1 SUPPORT … … 134 122 Please contact the author directly via e-mail. 135 123 136 =head1 AUTHOR137 138 Joshua Hoblitt <jhoblitt@cpan.org>139 140 124 =head1 COPYRIGHT 141 125 142 Copyright (C) 2005-20 07 Joshua Hoblitt. All rights reserved.126 Copyright (C) 2005-2016 IPP. All rights reserved. 143 127 144 128 This program is free software; you can redistribute it and/or modify it under -
branches/czw_branch/20160809/Nebulous-Server/bin/neb-voladm
r34800 r39719 68 68 if (defined $allocate and $allocate !~ m/^[01]$/) 69 69 or (defined $available and $available !~ m/^[01]$/) 70 or (defined $xattr and $xattr !~ m/^[0123 ]$/);70 or (defined $xattr and $xattr !~ m/^[01235]$/); 71 71 } 72 72 -
branches/czw_branch/20160809/Nebulous-Server/bin/nebdiskd
r35130 r39719 198 198 # there may be multiple vol_ids per mountpoint but we only need to 199 199 # check each mountpoint once 200 my $query = $dbh->prepare_cached("SELECT DISTINCT host, mountpoint FROM volume ");200 my $query = $dbh->prepare_cached("SELECT DISTINCT host, mountpoint FROM volume WHERE xattr != 5"); 201 201 $query->execute; 202 202 while (my $row = $query->fetchrow_hashref) { -
branches/czw_branch/20160809/Ohana
- Property svn:mergeinfo changed
/trunk/Ohana (added) merged: 39652,39669-39671,39692-39693
- Property svn:mergeinfo changed
-
branches/czw_branch/20160809/Ohana/src/delstar/Makefile
r35758 r39719 31 31 $(SRC)/delete_duplicate_images.$(ARCH).o \ 32 32 $(SRC)/delete_duplicate_measures.$(ARCH).o \ 33 $(SRC)/delete_measures_by_match.$(ARCH).o \ 33 34 $(SRC)/delete_fix_LAP.$(ARCH).o \ 34 35 $(SRC)/delete_fix_LAP_edges.$(ARCH).o \ … … 56 57 $(SRC)/delete_duplicate_images.$(ARCH).o \ 57 58 $(SRC)/delete_duplicate_measures.$(ARCH).o \ 59 $(SRC)/delete_measures_by_match.$(ARCH).o \ 58 60 $(SRC)/delete_fix_LAP.$(ARCH).o \ 59 61 $(SRC)/delete_fix_LAP_edges.$(ARCH).o \ -
branches/czw_branch/20160809/Ohana/src/delstar/include/delstar.h
r39717 r39719 93 93 94 94 int SAVE_DUPLICATES; 95 int SAVE_DELETES; 95 96 int SKIP_IMAGES; 96 97 char *BACKUP_EXTNAME; … … 104 105 105 106 int MODE; 106 enum {MODE_NONE, MODE_IMAGENAME, MODE_IMAGEFILE, MODE_TIME, MODE_ORPHAN, MODE_MISSED, MODE_PHOTCODES, MODE_DUP_IMAGES, MODE_DUP_MEASURES, MODE_ FIX_LAP, MODE_FIX_LAP_STATS, MODE_FIX_LAP_EDGES, MODE_FIX_LAP_EDGES_DELETE};107 enum {MODE_NONE, MODE_IMAGENAME, MODE_IMAGEFILE, MODE_TIME, MODE_ORPHAN, MODE_MISSED, MODE_PHOTCODES, MODE_DUP_IMAGES, MODE_DUP_MEASURES, MODE_DELETE_MEASURES_BY_MATCH, MODE_FIX_LAP, MODE_FIX_LAP_STATS, MODE_FIX_LAP_EDGES, MODE_FIX_LAP_EDGES_DELETE}; 107 108 108 109 char DateKeyword[64], DateMode[64], UTKeyword[64], MJDKeyword[64], JDKeyword[64]; … … 185 186 int ImageIDSave(char *filename, IndexArray *imageID); 186 187 188 int delete_measures_by_match (); 189 int delete_measures_by_match_parallel (SkyList *sky); 190 DeleteMeasureResult delete_measures_by_match_catalog (Catalog *catalog); 191 187 192 int delete_duplicate_measures (); 188 193 int delete_duplicate_measures_parallel (SkyList *sky); -
branches/czw_branch/20160809/Ohana/src/delstar/src/args.c
r39717 r39719 12 12 fprintf (stderr, " delstar -dup-images : delete duplicate images (by externID)\n\n"); 13 13 fprintf (stderr, " delstar -dup-measures : delete duplicate measures (by imageID + detID)\n\n"); 14 fprintf (stderr, " delstar -delete-measures-by-match : delete duplicate measures by imageID, photcode, time constratins\n\n"); 14 15 fprintf (stderr, " optional flags:\n"); 15 16 fprintf (stderr, " -v : verbose mode\n"); … … 194 195 SKIP_IMAGES = TRUE; // we do not need to load the images for -dup-measures 195 196 } 197 if ((N = get_argument (argc, argv, "-delete-measures-by-match"))) { 198 if (MODE != MODE_NONE) usage(); 199 MODE = MODE_DELETE_MEASURES_BY_MATCH; 200 remove_argument (N, &argc, argv); 201 SKIP_IMAGES = TRUE; // we do not need to load the images for -dup-measures 202 } 196 203 197 204 DELETE_MIN_DET_ID = 0; … … 222 229 remove_argument (N, &argc, argv); 223 230 } 231 224 232 BACKUP_EXTNAME = NULL; 225 233 if ((N = get_argument (argc, argv, "-backup-extname"))) { … … 229 237 } 230 238 if (!BACKUP_EXTNAME) BACKUP_EXTNAME = strcreate (".bck"); 239 240 SAVE_DELETES = FALSE; 241 if ((N = get_argument (argc, argv, "-save-deletes"))) { 242 SAVE_DELETES = TRUE; 243 remove_argument (N, &argc, argv); 244 } 231 245 232 246 if ((N = get_argument (argc, argv, "-fix-LAP"))) { -
branches/czw_branch/20160809/Ohana/src/delstar/src/delete_duplicate_measures.c
r39717 r39719 373 373 } 374 374 375 # if ( 0)375 # if (1) 376 376 FILE *fsave = NULL; 377 377 if (SAVE_DUPLICATES) { … … 408 408 off_t N = measure[j].averef; 409 409 if (VERBOSE) fprintf (stderr, "0x%08x 0x%08x %8.4f %8.4f %5d\n", measure[j].imageID, measure[j].detID, average[N].R, average[N].D, measure[j].photcode); 410 //if (fsave) {411 //fprintf (fsave, "0x%08x 0x%08x %8.4f %8.4f %5d\n", measure[j].imageID, measure[j].detID, average[N].R, average[N].D, measure[j].photcode);412 //}410 if (fsave) { 411 fprintf (fsave, "0x%08x 0x%08x %8.4f %8.4f %5d\n", measure[j].imageID, measure[j].detID, average[N].R, average[N].D, measure[j].photcode); 412 } 413 413 if (isGPC1chip(measure[j].photcode)) { 414 414 result.NdelChip ++; … … 426 426 } 427 427 428 //if (fsave) fclose (fsave);428 if (fsave) fclose (fsave); 429 429 430 430 // set up the measure sequence lists -
branches/czw_branch/20160809/Ohana/src/delstar/src/delstar.c
r39579 r39719 27 27 case MODE_DUP_MEASURES: 28 28 if (!delete_duplicate_measures ()) exit (1); 29 delstar_args_free (); 30 ohana_memcheck (TRUE); 31 ohana_memdump (TRUE); 32 exit (0); 33 break; 34 case MODE_DELETE_MEASURES_BY_MATCH: 35 if (!delete_measures_by_match ()) exit (1); 29 36 delstar_args_free (); 30 37 ohana_memcheck (TRUE); -
branches/czw_branch/20160809/Ohana/src/delstar/src/delstar_client.c
r39579 r39719 31 31 if (!delete_duplicate_measures ()) exit (1); 32 32 delstar_client_args_free (); 33 ohana_memcheck (TRUE); 34 ohana_memdump (TRUE); 35 exit (0); 36 break; 37 case MODE_DELETE_MEASURES_BY_MATCH: 38 if (!delete_measures_by_match ()) exit (1); 39 delstar_args_free (); 33 40 ohana_memcheck (TRUE); 34 41 ohana_memdump (TRUE); -
branches/czw_branch/20160809/Ohana/src/kapa2/src/Graphs.c
r38986 r39719 26 26 graph[0].axis[i].fMinor = 5.0; 27 27 } 28 graph[0].data.ticktextPad = NAN;29 28 30 graph[0].data.labelPadXm = NAN; 31 graph[0].data.labelPadXp = NAN; 32 graph[0].data.labelPadYm = NAN; 33 graph[0].data.labelPadYp = NAN; 34 35 graph[0].data.padXm = NAN; 36 graph[0].data.padXp = NAN; 37 graph[0].data.padYm = NAN; 38 graph[0].data.padYp = NAN; 39 40 graph[0].data.fLabelRangeXm = 1.0; 41 graph[0].data.fLabelRangeXp = 1.0; 42 graph[0].data.fLabelRangeYm = 1.0; 43 graph[0].data.fLabelRangeYp = 1.0; 44 45 graph[0].data.fMinorXm = 5.0; 46 graph[0].data.fMinorXp = 5.0; 47 graph[0].data.fMinorYm = 5.0; 48 graph[0].data.fMinorYp = 5.0; 29 KapaInitGraph (&graph[0].data); 49 30 50 31 for (i = 0; i < 8; i++) { 51 32 strcpy (graph[0].label[i].text, ""); 52 33 } 53 54 graph[0].data.xmin = 0.0;55 graph[0].data.xmax = 1.0;56 graph[0].data.ymin = 0.0;57 graph[0].data.ymax = 1.0;58 59 graph[0].data.style = 2; // points60 graph[0].data.ptype = 2; // + for points61 graph[0].data.ltype = 0; // solid line62 graph[0].data.etype = 0; // no error bars63 graph[0].data.ebar = 0; // no cross bar64 graph[0].data.color = 0; // black65 graph[0].data.lweight = 0.5; // line weight of 0.566 graph[0].data.size = 1.0; // point size of 1.067 68 graph[0].data.flipeast = TRUE; // +East = -X by default69 graph[0].data.flipnorth = FALSE; // +North = +Y by default70 71 InitCoords (&graph[0].data.coords, "DEC--LIN");72 strcpy (graph[0].data.axis, "2222");73 strcpy (graph[0].data.ticks, "2222");74 strcpy (graph[0].data.labels, "2222");75 34 76 35 graph[0].Nobjects = 0; -
branches/czw_branch/20160809/Ohana/src/libdvo/include/dvo.h
r39637 r39719 921 921 float PhotFluxCatErr (Measure *measure, dvoMagClassType class); 922 922 float PhotFluxAveErr (PhotCode *code, Average *average, SecFilt *secfilt, dvoMagClassType class, dvoMagSourceType source); 923 float PhotFluxSysErr (Measure *measure, Average *average, SecFilt *secfilt, dvoMagClassType class); 924 float PhotFluxRelErr (Measure *measure, Average *average, SecFilt *secfilt, dvoMagClassType class); 923 925 924 926 float PhotXm (PhotCode *code, Average *average, SecFilt *secfilt); -
branches/czw_branch/20160809/Ohana/src/libdvo/src/dbExtractMeasures.c
r39633 r39719 228 228 break; 229 229 case MAG_LEVEL_SYS: 230 value.Flt = PhotFluxSysErr (measure, average, secfilt, field->magClass); 231 break; 230 232 case MAG_LEVEL_REL: 233 value.Flt = PhotFluxRelErr (measure, average, secfilt, field->magClass); 234 break; 231 235 case MAG_LEVEL_CAL: 232 // value.Flt = PhotFluxErr (measure, field->magClass);236 // XXX not defined 233 237 break; 234 238 case MAG_LEVEL_AVE: 239 value.Flt = PhotFluxAveErr (equiv, average, secfilt, field->magClass, field->magSource); 240 break; 235 241 case MAG_LEVEL_REF: 236 // value.Flt = PhotFluxAveErr (equiv, average, secfilt, field->magClass, field->magSource);242 // XXX not defined 237 243 break; 238 244 case MAG_LEVEL_NONE: -
branches/czw_branch/20160809/Ohana/src/libdvo/src/dvo_photcode_ops.c
r39633 r39719 1507 1507 } 1508 1508 return (dFcat); 1509 } 1510 1511 float PhotFluxSysErr (Measure *measure, Average *average, SecFilt *secfilt, dvoMagClassType class) { 1512 1513 int Np = photcodes[0].hashcode[measure[0].photcode]; 1514 if (Np == -1) return (NAN); 1515 PhotCode *code = &photcodes[0].code[Np]; 1516 1517 // measure.M has the static ZERO_POINT (25.0) applied, but not measure.Flux 1518 float Mcal = code[0].K*(measure[0].airmass - 1.000) + SCALE*code[0].C; 1519 float Moff = Mcal - ZERO_POINT + 8.9; 1520 float Foff = 3630.8 * MagToFlux(Mcal); 1521 1522 // use dFlux if we can, but use dMag if we must: 1523 // dFlux = Flux * dMag 1524 1525 float dFcat = NAN; 1526 switch (class) { 1527 case MAG_CLASS_PSF: 1528 if (isnan (measure[0].dFluxPSF)) { 1529 float Finst = MagToFlux(measure[0].M + Moff); 1530 dFcat = measure[0].dM * Finst; 1531 } else { 1532 dFcat = measure[0].dFluxPSF * Foff; 1533 } 1534 break; 1535 case MAG_CLASS_KRON: 1536 if (isnan (measure[0].dFluxKron)) { 1537 float Finst = MagToFlux(measure[0].Mkron + Moff); 1538 dFcat = measure[0].dMkron * Finst; 1539 } else { 1540 dFcat = measure[0].dFluxKron * Foff; 1541 } 1542 break; 1543 case MAG_CLASS_APER: 1544 if (isnan (measure[0].dFluxAp)) { 1545 float Finst = MagToFlux(measure[0].Map + Moff); 1546 dFcat = measure[0].dMap * Finst; 1547 } else { 1548 dFcat = measure[0].dFluxAp * Foff; 1549 } 1550 break; 1551 default: 1552 break; 1553 } 1554 1555 /* color correction */ 1556 float mc = PhotColorForCode (average, secfilt, NULL, code); 1557 if (isnan(mc)) return (dFcat); 1558 mc -= SCALE*code[0].dX; 1559 1560 double Mc = mc; 1561 float Mcol = 0; 1562 int i = 0; 1563 for (i = 0; i < code[0].Nc; i++) { 1564 Mcol += code[0].X[i]*Mc; 1565 Mc *= mc; 1566 } 1567 float Fcol = MagToFlux (Mcol); 1568 1569 float dFsys = dFcat * Fcol; 1570 1571 return (dFsys); 1572 } 1573 1574 float PhotFluxRelErr (Measure *measure, Average *average, SecFilt *secfilt, dvoMagClassType class) { 1575 1576 int Np = photcodes[0].hashcode[measure[0].photcode]; 1577 if (Np == -1) return (NAN); 1578 PhotCode *code = &photcodes[0].code[Np]; 1579 1580 // measure.M has the static ZERO_POINT (25.0) applied, but not measure.Flux 1581 float Mflat = isfinite(measure[0].Mflat) ? measure[0].Mflat : 0.0; 1582 float Mcal = code[0].K*(measure[0].airmass - 1.000) + SCALE*code[0].C - measure[0].Mcal - Mflat; 1583 float Moff = Mcal - ZERO_POINT + 8.9; 1584 float Foff = 3630.8 * MagToFlux(Mcal); 1585 1586 // use dFlux if we can, but use dMag if we must: 1587 // dFlux = Flux * dMag 1588 1589 float dFcat = NAN; 1590 switch (class) { 1591 case MAG_CLASS_PSF: 1592 if (isnan (measure[0].dFluxPSF)) { 1593 float Finst = MagToFlux(measure[0].M + Moff); 1594 dFcat = measure[0].dM * Finst; 1595 } else { 1596 dFcat = measure[0].dFluxPSF * Foff; 1597 } 1598 break; 1599 case MAG_CLASS_KRON: 1600 if (isnan (measure[0].dFluxKron)) { 1601 float Finst = MagToFlux(measure[0].Mkron + Moff); 1602 dFcat = measure[0].dMkron * Finst; 1603 } else { 1604 dFcat = measure[0].dFluxKron * Foff; 1605 } 1606 break; 1607 case MAG_CLASS_APER: 1608 if (isnan (measure[0].dFluxAp)) { 1609 float Finst = MagToFlux(measure[0].Map + Moff); 1610 dFcat = measure[0].dMap * Finst; 1611 } else { 1612 dFcat = measure[0].dFluxAp * Foff; 1613 } 1614 break; 1615 default: 1616 break; 1617 } 1618 1619 /* color correction */ 1620 float mc = PhotColorForCode (average, secfilt, NULL, code); 1621 if (isnan(mc)) return (dFcat); 1622 mc -= SCALE*code[0].dX; 1623 1624 double Mc = mc; 1625 float Mcol = 0; 1626 int i = 0; 1627 for (i = 0; i < code[0].Nc; i++) { 1628 Mcol += code[0].X[i]*Mc; 1629 Mc *= mc; 1630 } 1631 float Fcol = MagToFlux (Mcol); 1632 1633 float dFrel = dFcat * Fcol; 1634 1635 return (dFrel); 1509 1636 } 1510 1637 -
branches/czw_branch/20160809/Ohana/src/libkapa/src/KapaWindow.c
r38986 r39719 93 93 graphdata[0].xmin = graphdata[0].ymin = 0.0; 94 94 graphdata[0].xmax = graphdata[0].ymax = 1.0; 95 graphdata[0].style = graphdata[0].ptype = 0; 95 96 graphdata[0].style = graphdata[0].ptype = 2; 96 97 graphdata[0].ltype = graphdata[0].color = 0; 97 98 graphdata[0].etype = graphdata[0].ebar = 0; … … 117 118 graphdata[0].padYm = NAN; 118 119 graphdata[0].padYp = NAN; 120 121 graphdata[0].fLabelRangeXm = 1.0; 122 graphdata[0].fLabelRangeXp = 1.0; 123 graphdata[0].fLabelRangeYm = 1.0; 124 graphdata[0].fLabelRangeYp = 1.0; 125 126 graphdata[0].fMinorXm = 5.0; 127 graphdata[0].fMinorXp = 5.0; 128 graphdata[0].fMinorYm = 5.0; 129 graphdata[0].fMinorYp = 5.0; 119 130 120 131 return (TRUE); -
branches/czw_branch/20160809/Ohana/src/relastro/Makefile
r39619 r39719 26 26 RELASTRO = \ 27 27 $(SRC)/CheckMeasureToImage.$(ARCH).o \ 28 $(SRC)/RepairObjectIDs.$(ARCH).o \ 29 $(SRC)/RepairStacks.$(ARCH).o \ 28 30 $(SRC)/RepairStackMeasures.$(ARCH).o \ 29 31 $(SRC)/StackImageMaps.$(ARCH).o \ … … 114 116 RELASTRO_CLIENT = \ 115 117 $(SRC)/CheckMeasureToImage.$(ARCH).o \ 118 $(SRC)/RepairObjectIDs.$(ARCH).o \ 119 $(SRC)/RepairStacks.$(ARCH).o \ 116 120 $(SRC)/RepairStackMeasures.$(ARCH).o \ 117 121 $(SRC)/StackImageMaps.$(ARCH).o \ -
branches/czw_branch/20160809/Ohana/src/relastro/include/relastro.h
r39619 r39719 31 31 typedef enum {FIT_NONE, FIT_AVERAGE, FIT_PM_ONLY, FIT_PAR_ONLY, FIT_PM_AND_PAR} FitMode; 32 32 33 typedef enum {OP_NONE, OP_IMAGES, OP_HIGH_SPEED, OP_MERGE_SOURCE, OP_UPDATE_OBJECTS, OP_UPDATE_OFFSETS, OP_LOAD_OBJECTS, OP_HPM, OP_PARALLEL_REGIONS, OP_PARALLEL_IMAGES, OP_REPAIR_ WARPS} RelastroOp;33 typedef enum {OP_NONE, OP_IMAGES, OP_HIGH_SPEED, OP_MERGE_SOURCE, OP_UPDATE_OBJECTS, OP_UPDATE_OFFSETS, OP_LOAD_OBJECTS, OP_HPM, OP_PARALLEL_REGIONS, OP_PARALLEL_IMAGES, OP_REPAIR_STACKS, OP_REPAIR_WARPS, OP_REPAIR_OBJECT_ID} RelastroOp; 34 34 35 35 typedef enum {TARGET_NONE, TARGET_SIMPLE, TARGET_CHIPS, TARGET_MOSAICS} FitTarget; … … 864 864 uint64_t CreatePSPSDetectionID(double tobs, int ccdid, int detID); 865 865 866 int RepairStacks (SkyList *skylist, int hostID, char *hostpath); 867 868 int RepairObjectIDs (SkyList *skylist, int hostID, char *hostpath); 869 866 870 void sort_by_ra (double *R, double *D, int *I, int *S, int N); 867 871 void FreeStackGroups (void); -
branches/czw_branch/20160809/Ohana/src/relastro/src
- Property svn:mergeinfo changed
/trunk/Ohana/src/relastro/src (added) merged: 39669,39693
- Property svn:mergeinfo changed
-
branches/czw_branch/20160809/Ohana/src/relastro/src/StackImageMaps.c
r39619 r39719 87 87 // we have the stack centers; find all stacks within 0.3 degrees of this point 88 88 Rstk = ohana_normalize_angle (Rstk); 89 double dD = 0. 3;89 double dD = 0.4; 90 90 double dR = dD / cos(RAD_DEG*Dstk); 91 91 double Rmin = Rstk - dR; … … 93 93 double Dmin = Dstk - dD; 94 94 double Dmax = Dstk + dD; 95 96 // for the north pole, just test the whole circle 97 if (Dstk > 88) { 98 Rmin = 0.0; 99 Rmax = 360.0; 100 } 95 101 96 102 double dPosMin = NAN; -
branches/czw_branch/20160809/Ohana/src/relastro/src/UpdateObjectOffsets.c
r39623 r39719 194 194 if (USE_FIXED_PIXCOORDS) strextend (&command, "-D USE_FIXED_PIXCOORDS 1"); 195 195 196 if (REPAIR_STACKS) strextend (&command, "-repair-stacks ");196 if (REPAIR_STACKS) strextend (&command, "-repair-stacks-on-update"); 197 197 if (CHECK_MEASURE_TO_IMAGE) strextend (&command, "-check-measures"); 198 198 … … 324 324 if (ExcludeBogus) strextend (&command, "-exclude-bogus %f", ExcludeBogusRadius); 325 325 326 if (USE_ALL_IMAGES) strextend (&command, "-use-all-images"); 326 327 if (USE_FIXED_PIXCOORDS) strextend (&command, "-D USE_FIXED_PIXCOORDS 1"); 327 328 328 if (REPAIR_STACKS) strextend (&command, "-repair-stacks ");329 if (REPAIR_STACKS) strextend (&command, "-repair-stacks-on-update"); 329 330 if (CHECK_MEASURE_TO_IMAGE) strextend (&command, "-check-measures"); 330 331 -
branches/czw_branch/20160809/Ohana/src/relastro/src/args.c
r39619 r39719 53 53 } 54 54 55 if ((N = get_argument (argc, argv, "-repair-stacks"))) { 56 remove_argument (N, &argc, argv); 57 RELASTRO_OP = OP_REPAIR_STACKS; 58 } 59 if ((N = get_argument (argc, argv, "-repair-object-id"))) { 60 remove_argument (N, &argc, argv); 61 RELASTRO_OP = OP_REPAIR_OBJECT_ID; 62 } 63 55 64 if ((N = get_argument (argc, argv, "-repair-warps"))) { 56 65 remove_argument (N, &argc, argv); … … 59 68 60 69 REPAIR_STACKS = FALSE; 61 if ((N = get_argument (argc, argv, "-repair-stacks "))) {70 if ((N = get_argument (argc, argv, "-repair-stacks-on-update"))) { 62 71 remove_argument (N, &argc, argv); 63 72 REPAIR_STACKS = TRUE; … … 691 700 } 692 701 702 if ((N = get_argument (argc, argv, "-repair-stacks"))) { 703 remove_argument (N, &argc, argv); 704 RELASTRO_OP = OP_REPAIR_STACKS; 705 } 706 707 if ((N = get_argument (argc, argv, "-repair-object-id"))) { 708 remove_argument (N, &argc, argv); 709 RELASTRO_OP = OP_REPAIR_OBJECT_ID; 710 } 711 693 712 if ((N = get_argument (argc, argv, "-repair-warps"))) { 694 713 remove_argument (N, &argc, argv); … … 697 716 698 717 REPAIR_STACKS = FALSE; 699 if ((N = get_argument (argc, argv, "-repair-stacks "))) {718 if ((N = get_argument (argc, argv, "-repair-stacks-on-update"))) { 700 719 remove_argument (N, &argc, argv); 701 720 REPAIR_STACKS = TRUE; -
branches/czw_branch/20160809/Ohana/src/relastro/src/relastro.c
r39619 r39719 104 104 } 105 105 106 case OP_REPAIR_STACKS: { 107 FITS_DB db; 108 if (!PARALLEL) { 109 110 set_db (&db); 111 gfits_db_init (&db); 112 113 /* lock and load the image db table */ 114 int status = dvo_image_lock (&db, ImageCat, 60.0, LCK_SOFT); 115 if (!status) Shutdown ("ERROR: failure to lock image catalog %s", db.filename); 116 if (db.dbstate == LCK_EMPTY) Shutdown ("ERROR: No images in catalog %s (1)", db.filename); 117 if (!dvo_image_load (&db, VERBOSE, FALSE)) Shutdown ("can't read image catalog %s", db.filename); 118 // the raw FITS data is freed by dvo_image_load, leaving only the Image structure data 119 120 /* load regions and images based on specified sky patch (default depth) */ 121 load_images (&db, skylist, FALSE, USE_ALL_IMAGES); 122 } 123 124 // iterate over catalogs to make detection coordinates consistant 125 RepairStacks (skylist, 0, NULL); 126 127 if (!PARALLEL) { 128 freeImages (db.ftable.buffer); 129 gfits_db_free (&db); 130 freeMosaics (); 131 } 132 133 relastro_free (sky, skylist); 134 exit (0); 135 } 136 137 case OP_REPAIR_OBJECT_ID: { 138 139 // iterate over catalogs to make detection coordinates consistant 140 RepairObjectIDs (skylist, 0, NULL); 141 142 relastro_free (sky, skylist); 143 exit (0); 144 } 145 106 146 case OP_HIGH_SPEED: 107 147 /* high-speed is a 2pt cross-correlation process for linking moving objects (high PM) */ -
branches/czw_branch/20160809/Ohana/src/relastro/src/relastro_client.c
r39619 r39719 104 104 } 105 105 106 case OP_REPAIR_OBJECT_ID: { 107 108 // iterate over catalogs to make detection coordinates consistant 109 RepairObjectIDs (skylist, HOST_ID, HOSTDIR); 110 111 relastro_free (sky, skylist); 112 exit (0); 113 } 114 115 // XXX loading the images is fairly costly -- see if we can do an image subset? 116 case OP_REPAIR_STACKS: { 117 FITS_DB db; 118 119 set_db (&db); 120 gfits_db_init (&db); 121 122 /* lock and load the image db table */ 123 int status = dvo_image_lock (&db, ImageCat, 60.0, LCK_SOFT); 124 if (!status) Shutdown ("ERROR: failure to lock image catalog %s", db.filename); 125 if (db.dbstate == LCK_EMPTY) Shutdown ("ERROR: No images in catalog %s (1)", db.filename); 126 if (!dvo_image_load (&db, VERBOSE, FALSE)) Shutdown ("can't read image catalog %s", db.filename); 127 // the raw FITS data is freed by dvo_image_load, leaving only the Image structure data 128 129 /* load regions and images based on specified sky patch (default depth) */ 130 load_images (&db, skylist, FALSE, USE_ALL_IMAGES); 131 132 RepairStacks (skylist, HOST_ID, HOSTDIR); 133 134 freeImages (db.ftable.buffer); 135 gfits_db_free (&db); 136 freeMosaics (); 137 138 relastro_client_free (sky, skylist); 139 break; 140 } 141 106 142 // XXX loading the images is fairly costly -- see if we can do an image subset? 107 143 case OP_REPAIR_WARPS: { -
branches/czw_branch/20160809/ippToPsps/jython/fits.py
r39303 r39719 5 5 import shutil 6 6 import hashlib 7 import time 7 8 from subprocess import call, PIPE, Popen 8 9 … … 20 21 ''' 21 22 def __init__(self, logger, config, originalPath): 22 23 23 # set class variables 24 24 self.originalPath = originalPath … … 27 27 self.header = None 28 28 29 numtries = 0 30 success = 0 31 time_wait=30 32 while (numtries < 5 and success == 0): 33 numtries = numtries +1 34 self.logger.infoPair("Attempting to read file, attempt #",str(numtries)) 35 if os.path.isfile(self.originalPath): 36 success = 1 37 self.logger.infoPair("success to read file", self.originalPath) 38 else: #if it fails, wait 30 seconds before looping 39 time.sleep(time_wait) 40 time_wait= 120 #(first time, wait 30 seconds) 41 42 if success == 0: 43 self.logger.errorPair("Cannot read file", self.originalPath) 44 return 45 29 46 # does this file even exist? 30 if not os.path.isfile(self.originalPath): 31 self.logger.errorPair("Cannot read file", self.originalPath) 32 return 47 #if not os.path.isfile(self.originalPath): 48 # self.logger.errorPair("Cannot read file", self.originalPath) 49 # return 50 51 33 52 34 53 # ok, we have a file, now copy it locally to save on NFS overhead -
branches/czw_branch/20160809/ippToPsps/jython/objectbatch.py
r39565 r39719 318 318 sqlLine.group("decMeanErr", "DEC_ERR") 319 319 sqlLine.group("posMeanChisq", "CHISQ_POS") 320 sqlLine.group("nStackObjectRows", "' 0'") # XXX I need to add / define this in dvopsps320 sqlLine.group("nStackObjectRows", "'-999'") # XXX I need to add / define this in dvopsps # HAF set to -999 as required for pv3 321 321 sqlLine.group("nStackDetections", "'0'") 322 322 sqlLine.group("nDetections", "'0'") -
branches/czw_branch/20160809/ippconfig/Makefile.am
r37415 r39719 22 22 ssp \ 23 23 uh8k \ 24 suprime 24 suprime \ 25 hsc 25 26 26 27 install_files = \ -
branches/czw_branch/20160809/ippconfig/configure.ac
r37418 r39719 34 34 uh8k/Makefile 35 35 suprime/Makefile 36 hsc/Makefile 36 37 ]) 37 38 AC_OUTPUT -
branches/czw_branch/20160809/ippconfig/dvo.photcodes
r39716 r39719 1551 1551 24110 HSC.y.110 dep 25.000 0.000 0.000 - - 0.0000 0 5 0.000 0.000 0.000 0.000 0x0000 0x0000 0x0000 0x0000 1552 1552 24111 HSC.y.111 dep 25.000 0.000 0.000 - - 0.0000 0 5 0.000 0.000 0.000 0.000 0x0000 0x0000 0x0000 0x0000 1553 -
branches/czw_branch/20160809/ippconfig/hsc/camera.config
r39704 r39719 132 132 FILTER.ID METADATA 133 133 g STR HSC-g 134 r MULTI 134 135 r STR HSC-r 136 r STR HSC-r2 135 137 i MULTI 136 138 i STR HSC-i 137 139 i STR HSC-i2 138 140 z STR HSC-z 141 y STR HSC-Y 139 142 END 140 143 -
branches/czw_branch/20160809/ippconfig/hsc/format_mef.config
r39702 r39719 148 148 CELL.BIASSEC.SOURCE STR VALUE 149 149 CELL.TRIMSEC.SOURCE STR VALUE 150 CELL.BIASSEC STR [5 12:536,50:4225]150 CELL.BIASSEC STR [521:536,50:4225] 151 151 CELL.TRIMSEC STR [9:520,50:4225] 152 152 CELL.GAIN.SOURCE STR HEADER -
branches/czw_branch/20160809/ippconfig/recipes/nightly_science.config
r39490 r39719 129 129 TARGETS METADATA 130 130 NAME STR QUB 131 DISTRIBUTION STR QUBtests131 DISTRIBUTION STR NODIST 132 132 TESS STR RINGS.V3 133 133 OBSMODE STR QUB … … 137 137 REDUCTION STR QUB_DEFAULT 138 138 DIST S16 15 139 CHIP S16 3140 WARP S16 3141 DIFF S16 3139 CHIP S16 5 140 WARP S16 5 141 DIFF S16 5 142 142 END 143 143 TARGETS METADATA … … 349 349 ADDITIONAL_STACK_LABEL STR ecliptic.rp 350 350 # REDUCTION STR SSTF_4SIG 351 END 352 TARGETS METADATA 353 NAME STR FSS 354 DISTRIBUTION STR SweetSpot 355 TESS STR RINGS.V3 356 OBSMODE STR FSS 357 STACKABLE BOOL FALSE 358 DIFFABLE BOOL FALSE 359 OFFNIGHT_DIFFS BOOL FALSE 360 REDUCTION STR SWEETSPOT 361 CHIP S16 5 362 WARP S16 5 363 DIFF S16 5 351 364 END 352 365 TARGETS METADATA -
branches/czw_branch/20160809/ippconfig/tc3/Makefile.am
r37414 r39719 7 7 format.config \ 8 8 format_ps2.config \ 9 format_tc1.config \ 9 10 ppImage.config \ 10 11 ppMerge.config -
branches/czw_branch/20160809/psconfig/tagsets/ipp-3.0.dist
r38043 r39719 66 66 YYYYY ippScripts ipp-2-9 -0 67 67 YYYYY ippTasks ipp-2-9 -0 68 NNYYNippToPsps ipp-2-9 -068 YYYYY ippToPsps ipp-2-9 -0 69 69 70 70 YYYYY ippconfig ipp-2-9 -0 -
branches/czw_branch/20160809/tools/heather/pv3slicer/slicebatch_ST.py
r39571 r39719 40 40 image_data [:] = image_data_decfix 41 41 42 decmin = - 5542 decmin = -35 43 43 xmin = decmin + 90 44 44 #print "full total", np.nansum(image_data,dtype='double') … … 63 63 decmin = dec 64 64 sumtotal = sumtotal + sumcheck 65 segsize = sumcheck/ 2.65 segsize = sumcheck/4. 66 66 jj =0 67 67 sumtotalra = 0 … … 87 87 decccmin=imin-90 88 88 decccmax = i-90 89 PSPS = "PSPS_PV3_OB_ra"+str(360-armax)+"to"+str(360-armin)+"dec"+str(imin-90)+"to"+str(i-90)90 PSPS2 = "PSPS_PV3_ OB_SLICE_"+str(slicecnt)89 #PSPS = "PSPS_PV3_OB_ra"+str(360-armax)+"to"+str(360-armin)+"dec"+str(imin-90)+"to"+str(i-90) 90 PSPS2 = "PSPS_PV3_ST_SLICE_"+str(slicecnt) 91 91 92 92 print str(ramin).ljust(5), str(ramax).ljust(5),str(decccmin).ljust(5), str(decccmax).ljust(5),PSPS2,newsumcheckra, datamachines[dmcnt]
Note:
See TracChangeset
for help on using the changeset viewer.
