Changeset 19043 for trunk/DataCheck


Ignore:
Timestamp:
06/29/18 18:33:52 (6 years ago)
Author:
Daniela Dorner
Message:
added data usage policy
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Tools/get_data.sh

    r19042 r19043  
    3737# must-have
    3838# - fix bug for timeunit=timestamp (min-binning)
    39 # - add policy
    4039# - add email sending and return values
    4140# - update function for zd/th-correction
     
    7877#
    7978
     79
     80function print_policy()
     81{
     82    echo "# Data Usage Policy: "
     83    if [ "$expert" == "no" ]
     84    then
     85       echo "#   Using data from the FACT Quick Look Analysis, you agree to cite the FACT design"
     86       echo "#   paper and the quick look analysis website. "
     87       echo "# References: "
     88       echo "#   FACT design paper: http://adsabs.harvard.edu/abs/2013JInst...8P6008A"
     89       echo "#                      http://iopscience.iop.org/1748-0221/8/06/P06008 "
     90       echo "#   FACT Performance Paper: href='http://adsabs.harvard.edu/abs/2014JInst...9P0012B"
     91       echo "#                           href='http://iopscience.iop.org/1748-0221/9/10/P10012"
     92       echo "#   FACT quick look analysis: https://fact-project.org/monitoring"
     93       echo "#                             http://adsabs.harvard.edu/abs/2015arXiv150202582D"
     94       echo "# If you intend to use data or information from this website, please let us know for reference."
     95    else
     96       echo "#   As a member or associated member of the FACT Collaboration, you have access to internal information."
     97       echo "#   Any publication using FACT internal information has to have the full FACT author list."
     98    fi
     99}
     100   
    80101
    81102
     
    325346         echo "creating "$fileext" ..."
    326347         echo "# This file was created at "`date` > $fileext
    327          # add policy here
     348         print_policy >> $fileext
    328349      fi
    329350      headerext="# "$num" time["$timeunit"] start["$timeunit"] stop["$timeunit"] excrate[evts/h] delta_time["$timeunit"] excrate_err[evts/h] "
     
    343364      echo "creating "$fileint" ..."
    344365      echo "# This file was created at "`date` > $fileint
     366      echo "#" >> $fileint
     367      print_policy >> $fileint
     368      echo "#" >> $fileint
    345369      echo "# The following query was used: " >> $fileint
    346370      echo "# "$queryint >> $fileint
    347       # add policy here
     371      echo "#" >> $fileint
    348372   fi
    349373   headerint="# "$num" time["$timeunit"] start["$timeunit"] stop["$timeunit"] excrate[evts/h] corr.excrate[evts/h] flux[CU] flux[e-11/cm2/s] delta_time["$timeunit"] ontime[min]"
     
    364388      echo "creating "$filecol" ..."
    365389      echo "# This file was created at "`date` > $filecol
     390      echo "#" >> $filecol
     391      print_policy >> $filecol
     392      echo "#" >> $filecol
    366393      echo "# The following query was used: " >> $filecol
    367394      echo "# "$querycol >> $filecol
    368       # add policy here
     395      echo "#" >> $filecol
    369396   fi
    370397   headercol="# "$num" time["$timeunit"] start["$timeunit"] stop["$timeunit"] excrate[evts/h] corr.excrate[evts/h] flux[CU] flux[e-11/cm2/s] delta_time["$timeunit"] ontime[min]"
     
    383410   #get_data.sh $start $stop $source $timebin $email $table $time $expert $dch $zd $th $light $dust
    384411   mode="auto"
     412   overwrite="yes"
    385413   # setup
    386414   path=`dirname $0`
Note: See TracChangeset for help on using the changeset viewer.