IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35202


Ignore:
Timestamp:
Feb 24, 2013, 4:28:39 PM (13 years ago)
Author:
eugene
Message:

adding entries for the photladder public release pages

Location:
branches/eam_branches/ipp-20130207/dvodist
Files:
11 added
8 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130207/dvodist/INSTALL

    r34748 r35202  
    77
    88pikake test examples:
    9 psconfigure --htdocs /var/www/ --rootdir /ippdata
     9psconfigure --htdocs /var/www/ --rootdir /ippdata --rootwww http://pikake.ifa.hawaii.edu/ippdata
    1010make ippdata
    1111
    12 psconfigure --htdocs /var/www/ --rootdir /dvodist
     12psconfigure --htdocs /var/www/ --rootdir /dvodist --rootwww http://pikake.ifa.hawaii.edu/ippdata
    1313make dvodist
  • branches/eam_branches/ipp-20130207/dvodist/Makefile.in

    r34748 r35202  
    44        @echo "  (website) = dvodist or ippdata"
    55
    6 GENERATE = src/generate
     6GENERATE = src/generate --htdocs @HTDOCS@ --rootdir @ROOTDIR@ --rootwww @ROOTWWW@
    77
    88# we have 2 sites (or more?) controlled by this build directory
     
    4444$(TGT-IPPDATA)/PScolorlogo2.jpg \
    4545$(TGT-IPPDATA)/index.php \
     46$(TGT-IPPDATA)/photladder.20130107.subset/index.php \
     47$(TGT-IPPDATA)/photladder.20130107.subset/relphot-fits/index.php \
     48$(TGT-IPPDATA)/photladder.20130107.subset/relphot-csv/index.php \
     49$(TGT-IPPDATA)/photladder.20130107.subset/ubercal-fits/index.php \
     50$(TGT-IPPDATA)/photladder.20130107.subset/ubercal-csv/index.php \
    4651$(TGT-IPPDATA)/test.php \
    4752$(TGT-IPPDATA)/docs.php \
     
    7378        @if [ ! -d $(TGT-UTIL) ]; then mkdir -p $(TGT-UTIL) || exit; fi
    7479        rm -f $(TGT-UTIL)/$*.php || exit
    75         $(GENERATE) --htdocs @HTDOCS@ --rootdir @ROOTDIR@ $(SRC-UTIL)/$*.mkd $(TGT-UTIL)/$*.php || exit
     80        $(GENERATE) $(SRC-UTIL)/$*.mkd $(TGT-UTIL)/$*.php || exit
    7681
    7782$(TGT-UTIL)/%: $(SRC-UTIL)/%
     
    8489        @if [ ! -d $(@D) ]; then mkdir -p $(@D) || exit; fi
    8590        rm -f $(TGT-DVODIST)/$*.php || exit
    86         $(GENERATE) --htdocs @HTDOCS@ --rootdir @ROOTDIR@ $(SRC-DVODIST)/$*.mkd $(TGT-DVODIST)/$*.php || exit
     91        $(GENERATE) $(SRC-DVODIST)/$*.mkd $(TGT-DVODIST)/$*.php || exit
    8792
    8893# non-generated php code is copied directly
     
    96101        @if [ ! -d $(@D) ]; then mkdir -p $(@D) || exit; fi
    97102        rm -f $(TGT-IPPDATA)/$*.php || exit
    98         $(GENERATE) --htdocs @HTDOCS@ --rootdir @ROOTDIR@ $(SRC-IPPDATA)/$*.mkd $(TGT-IPPDATA)/$*.php || exit
     103        $(GENERATE) $(SRC-IPPDATA)/$*.mkd $(TGT-IPPDATA)/$*.php || exit
    99104
    100105# non-generated php code is copied directly
     
    127132$(SRC-PROG)/mkdist.testcat.sh \
    128133$(SRC-PROG)/mkindex.sh
    129 
  • branches/eam_branches/ipp-20130207/dvodist/configure.tcsh

    r34748 r35202  
    1111set htdocs  = ""
    1212set rootdir = ""
     13set rootwww = ""
    1314set dbhost  = ""
    1415set dbuser  = ""
     
    6162   endif
    6263   breaksw;
     64  case --rootwww*
     65   if ("$1" == "--rootwww") then
     66     shift
     67     set rootwww = $1
     68   else
     69     set rootwww = `echo $1 | tr = ' ' | awk '{print $2}'`
     70   endif
     71   breaksw;
    6372  case --dbhost*
    6473   if ("$1" == "--dbhost") then
     
    153162echo "htdocs:  $htdocs"
    154163echo "rootdir: $rootdir"
     164echo "rootwww: $rootwww"
    155165# echo "dbhost:  $dbhost"
    156166# echo "dbuser:  $dbuser"
     
    161171if ("$htdocs" == "") goto usage
    162172if ("$rootdir" == "") goto usage
     173if ("$rootwww" == "") goto usage
    163174
    164175# unless we need a db interface, skip this
     
    197208cat Makefile.in | sed "s|@HTDOCS@|$htdocs|" > tmp.1
    198209cat tmp.1       | sed "s|@ROOTDIR@|$rootdir|" > tmp.2
    199 cat tmp.2       | sed "s|@BINDIR@|$bindir|" > Makefile
     210cat tmp.2       | sed "s|@BINDIR@|$bindir|" > tmp.1
     211cat tmp.1       | sed "s|@ROOTWWW@|$rootwww|" > Makefile
    200212rm -f tmp.1 tmp.2
     213
     214# convert mkindex.sizes.sh.in to mkindex.sizes.sh
     215#cat scripts/mkindex.sizes.sh.in | sed "s|@HTDOCS@|$htdocs|" > scripts/mkindex.sizes.sh
     216chmod +x scripts/mkindex.sizes.sh
    201217
    202218## # convert raw/site.php.in to raw/site.php
  • branches/eam_branches/ipp-20130207/dvodist/ippdata/index.mkd

    r34748 r35202  
    11<?php include "@HTDOCS@/www-util/ippdata.page.php"; ?>
    22
    3 # PS1 Public Data Distribution
     3# PS1 / IPP Public Data Distribution
    44
    5 This is the PS1 public data distribution server. 
     5Pan-STARRS 1 (PS1) is an astronomical observatory dedicated to
     6surveying the sky in optical wavelengths.  The telescope is located at
     7the summit of Haleakala on the Hawaiian island of Maui.  Data
     8collected by the telescope are automatically processed by the PS1
     9Image Processing Pipeline (IPP).
    610
    7 Data is distributed in several forms
     11The PS1 telescope has been in full survey operations since May 2010.
     12In the intervening period, it is surveyed the 3/4 of the sky visible
     13from Hawaii repeatedly in 5 bands.  This "3pi" survey gets the major
     14portion of the telescope time (56%), with the remaining time going to
     15a variety of deep survey fields and dedicated asteroid search time.
    816
    9 @ Data Product             : none                       : plain : title : Comment
    10 @ PS1 Photometry Ladder v0 : photladder.20120604.subset : dir   : dir1  : Photometry Ladder released 2012.06.07 (EAM UPDATE)
    11 @ Synthetic Photometry DVO : catdir.syn.test            : dir   : dir1  : Demonstration DVO Database
     17One of the major goals of the 3pi survey is the construction of a
     18high-quality photometric reference catalog covering the 3pi region
     19(Dec > -30 deg). 
     20
     21This web site provides the public access to data products related to
     22the PS1 surveys, with particular emphasis on the bulk photometry (and
     23eventually astrometry) datasets. 
     24
     25@ Data Product                : none                       : plain : title : Comment
     26@ PS1 Photladder, 12.01       : photladder.20130107.subset : dir   : dir1  : Photometric Reference Ladder, Release 12.01
     27@ Synthetic Photometry DVO    : catdir.syn.test            : dir   : dir2  : Demonstration DVO Database
     28
     29Public release of transient events and asteroid discoveries are
     30provided via the links below.
     31
     32* [Transient public server](http://ifa.transients.hawaii.edu)
     33* [Moving objects](http://ifa.objects.hawaii.edu)
     34
  • branches/eam_branches/ipp-20130207/dvodist/scripts/mkindex.sh

    r33986 r35202  
    88set topdir = $argv[1]
    99
    10 # this is weak: depends on root location
    11 ln -s /data/ippc17.0/www/dvodist/www-root/index.php $topdir/
     10set file = `basename $topdir`
    1211
    13 set file = `basename $topdir`
    14 echo "$file : plain : title  : Title" > $topdir/index.txt
    15 echo "..             : dir   : dir2  : parent directory" >> $topdir/index.txt
     12echo '<?php include "@HTDOCS@/www-util/dvodist.page.php"; ?>' >  $topdir/index.mkd
     13
     14echo "$file : plain : title  : Title" >> $topdir/index.mkd
     15echo "..             : dir   : dir2  : parent directory" >> $topdir/index.mkd
    1616
    1717set N = 1
    1818foreach entry ($topdir/*)
    1919  set file = `basename $entry`
    20   if ("$file" == "index.php") continue
    21   if ("$file" == "index.txt") continue
     20  if ("$file" == "index.mkd") continue
    2221
    2322  if (-d $entry) then
    24     echo "$file : dir : dir$N : directory" >> $topdir/index.txt
     23    echo "@ $file : dir : dir$N : directory" >> $topdir/index.mkd
    2524  endif
    2625
    2726  if (-f $entry) then
    28     echo "$file : file : file$N : database file" >> $topdir/index.txt
     27    echo "@ $file : file : file$N : database file" >> $topdir/index.mkd
    2928  endif
    3029
  • branches/eam_branches/ipp-20130207/dvodist/src/generate

    r34748 r35202  
    66set htdocs  = ""
    77set rootdir  = ""
     8set rootwww  = ""
    89set args    = ""
    910set VERBOSE = 0
     
    2526   else
    2627     set rootdir = `echo $1 | tr = ' ' | awk '{print $2}'`
     28   endif
     29   breaksw;
     30  case --rootwww*
     31   if ("$1" == "--rootwww") then
     32     shift
     33     set rootwww = $1
     34   else
     35     set rootwww = `echo $1 | tr = ' ' | awk '{print $2}'`
    2736   endif
    2837   breaksw;
     
    4756  echo "htdocs : $htdocs"
    4857  echo "rootdir: $rootdir"
     58  echo "rootwww: $rootwww"
    4959  echo "input  : $args[1]"
    5060  echo "output : $args[2]"
     
    5363if ("$htdocs" == "") goto usage
    5464if ("$rootdir" == "") goto usage
     65if ("$rootwww" == "") goto usage
    5566
    56 cat $args[1] | sed "s|@HTDOCS@|$htdocs|" | sed "s|@ROOTDIR@|$rootdir|" > $args[2]
     67cat $args[1] | sed "s|@HTDOCS@|$htdocs|" | sed "s|@ROOTDIR@|$rootdir|" | sed "s|@ROOTWWW@|$rootwww|" > $args[2]
    5768exit 0
    5869
  • branches/eam_branches/ipp-20130207/dvodist/www-util/ipp.php

    r34748 r35202  
    147147
    148148    if (count($line) == 4) {
    149       echo "count = 4<br>\n";
    150149      $name  = trim($line[0]);
    151150      $type  = trim($line[1]);
     
    155154    }
    156155    if (count($line) == 5) {
    157       echo "count = 5<br>\n";
    158156      $name  = trim($line[0]);
    159157      $link  = trim($line[1]);
     
    216214      break;
    217215    case 'dir':
    218       echo "<tr class=\"$style\"><td><a class=\"$style\" href=\"$name\">$name</a></td><td>$info</td></tr>\n";
     216      echo "<tr class=\"$style\"><td><a class=\"$style\" href=\"$link\">$name</a></td><td>$info</td></tr>\n";
    219217      break;
    220218    default:
    221       echo "<tr class=\"$style\"><td><a class=\"$style\" href=\"$name\">$name</a></td><td>$info</td></tr>\n";
     219      echo "<tr class=\"$style\"><td><a class=\"$style\" href=\"$link\">$name</a></td><td>$info</td></tr>\n";
    222220      break;
    223221    }
  • branches/eam_branches/ipp-20130207/dvodist/www-util/ippdata.menu.dat

    r34748 r35202  
    88
    99menutop   | menutop      | plain   | &nbsp;                       |
    10 menutop   | menuselect   | link    | DVO Releases                 | /index.php
     10menutop   | menuselect   | link    | PS1 Data Release             | /index.php
    1111menutop   | menuselect   | link    | Documentation                | /docs.php
    1212menutop   | menuselect   | link    | Help                         | /help.php
Note: See TracChangeset for help on using the changeset viewer.