...
 
Commits (24)
# Prerequisites
*.d
# Object files
*.o
*.ko
*.obj
*.elf
# Linker output
*.ilk
*.map
*.exp
# Precompiled Headers
*.gch
*.pch
# Libraries
*.lib
*.a
*.la
*.lo
# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib
# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex
# Debug files
*.dSYM/
*.su
*.idb
*.pdb
# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf
# autoconf files/directories
Makefile.in
aclocal.m4
autom4te.cache
build
build-aux/ar-lib
build-aux/compile
build-aux/config.guess
build-aux/config.sub
build-aux/depcomp
build-aux/install-sh
build-aux/ltmain.sh
build-aux/missing
config.h.in
config.h.in~
configure
m4/libtool.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4
dsproc_test.log
SUBDIRS = src conf
MAINTAINERCLEANFILES = \
aclocal.m4 \
build-aux/ar-lib \
build-aux/config.guess \
build-aux/config.sub \
build-aux/depcomp \
build-aux/install-sh \
build-aux/ltmain.sh \
build-aux/missing \
config.h.in \
config.h.in~ \
configure \
m4/libtool.m4 \
m4/lt~obsolete.m4 \
m4/ltoptions.m4 \
m4/ltsugar.m4 \
m4/ltversion.m4 \
Makefile.in
#!/bin/sh
set -e
autoreconf --install --force --verbose
rm -rf autom4te.cache
#!/bin/sh
# Check for BUILD_PACKAGE_NAME environment variable
name=$BUILD_PACKAGE_NAME
if [ -z "$name" ]; then
# Get 'group-project' from git repo URL
name=`git config --get remote.origin.url | \
sed 's/.*://;s/.git$//;s/\//-/'`
if [ -z "$name" ]; then
# Get group name from path to project
path=`pwd`
path=${path%/*}
group=$(basename $path)
# Use directory name for project name
project=$(basename `pwd`)
name="$group-$project"
fi
fi
printf $name
exit 0
#!/bin/sh
# Check for BUILD_PACKAGE_VERSION environment variable
version=$BUILD_PACKAGE_VERSION
if [ -z "$version" ]; then
# Check for most recent package specific tag
package=$BUILD_PACKAGE_NAME
if [ -z "$package" ]; then
# Use git project name for package name
package=`git config --get remote.origin.url | \
sed 's/.*://;s/.git$//;s/^.*\///'`
fi
tag=`git describe --tags --long --dirty --match="${package}-v[0-9]*" 2>/dev/null`
if [ -z "$tag" ]; then
# Check for most recent tag
tag=`git describe --tags --long --dirty 2>/dev/null`
fi
if [ -z "$tag" ]; then
version="0.0-0-0-g0000000-dirty"
else
version=`echo $tag | \
sed -E "s/.*v([0-9]+)\.([0-9]+)\.([0-9]+.*)$/\1.\2-\3/"`
fi
parts=(${version//-/ })
# ${parts[0]} = major.minor
# ${parts[1]} = build number
# ${parts[2]} = number of commits since last tag
# ${parts[3]} = git hash of last commit
# ${parts[4]} = 'dirty' if local changes since last commit
# major.minor-build
version="${parts[0]}-${parts[1]}"
# development version
if [ ${parts[2]} != 0 ] || [ ${parts[4]} ]; then
# add .dev<commit number>
version+=".dev${parts[2]}"
fi
# uncommitted changes in code
if [ ${parts[4]} ]; then
# add .dirty
version+=".${parts[4]}"
fi
# platform
system=`uname`
if [ $system == "Linux" ]; then
# use 'el#'
platform=`uname -r | sed 's/.*\(el[0-9]\).*/\1/'`
else
# use system name
platform=$system
fi
version="$version.$platform"
fi
printf $version
exit 0
#!/bin/sh
# Print usage
script_name=$0
usage()
{
cat <<EOM
DESCRIPTION
Build script to configure, make, and install this package.
SYNOPSIS
$script_name [--prefix=path [--destdir=path]] [--clean] [--conf]
OPTIONS
--prefix=path absolute path to installation directory
default: \$VAP_HOME
--destdir=path absolute path prepended to prefix
used to perform a staged installation
--clean cleanup build directory and regenerate
build system files
--conf only install conf files
--strip strip debugging symbols
--purify build with purify
-h, --help display this help message
EOM
}
# Parse command line
install="install"
for i in "$@"
do
case $i in
--clean) clean=1
;;
--conf) install="install-data"
;;
--destdir=*) destdir="${i#*=}"
;;
--prefix=*) prefix="${i#*=}"
;;
--purify) purify="true"
;;
--strip) install="install-strip"
;;
-h | --help) usage
exit
;;
*) usage
exit 1
;;
esac
done
if [ $destdir ] && [ ! $prefix ]; then
usage
exit 1
fi
# Get prefix from environemnt variables if necessary
if [ ! $prefix ]; then
if [ $VAP_HOME ]; then
prefix=$VAP_HOME
else
usage
exit 1
fi
fi
# Function to echo and run commands
run() {
echo "> $1"
$1 || exit 1
}
# autogen.sh
if [ $clean ] || [ ! -f ./configure ]; then
echo "------------------------------------------------------------------"
echo "prefix: $prefix"
if [ $destdir ]; then
echo "destdir: $destdir"
fi
echo "------------------------------------------------------------------"
run "./autogen.sh"
fi
# mkdir build; cd build
echo "------------------------------------------------------------------"
if [ $clean ] || [ ! -d ./build ]; then
if [ -d build ]; then
run "rm -rf build"
fi
run "mkdir -p build"
fi
run "cd build"
# configure
if [ $clean ] || [ ! -f ./Makefile ]; then
echo "------------------------------------------------------------------"
export CFLAGS='-g -O0'
run "../configure --prefix=$prefix"
fi
# make install
if [ $purify ]; then
export CC="purify -cache-dir=$HOME/.purecache -windows=no gcc"
install="-e $install"
echo "------------------------------------------------------------------"
run "make clean"
fi
echo "------------------------------------------------------------------"
if [ $destdir ]; then
run "make DESTDIR=$destdir $install"
else
run "make $install"
fi
exit
langley_mfrsrdir = $(prefix)/conf/vap/langley_mfrsr
langley_mfrsr_DATA = \
langley_mfrsr/langley_mfrsr.process \
langley_mfrsr/mfrsrlangley.c1-2.1.dod \
langley_mfrsr/mfrsrlangplot.c1-2.1.dod
langley_nimfrdir = $(prefix)/conf/vap/langley_nimfr
langley_nimfr_DATA = \
langley_nimfr/langley_nimfr.process \
langley_nimfr/nimfrlangley.c1-2.1.dod \
langley_nimfr/nimfrlangplot.c1-2.1.dod
MAINTAINERCLEANFILES = \
Makefile.in
...@@ -631,6 +631,10 @@ ...@@ -631,6 +631,10 @@
} }
}, },
'locations' => [ 'locations' => [
{
'site' => 'awr',
'fac' => 'M1'
},
{ {
'site' => 'fkb', 'site' => 'fkb',
'fac' => 'M1' 'fac' => 'M1'
...@@ -811,6 +815,7 @@ ...@@ -811,6 +815,7 @@
'name' => 'langley_mfrsr', 'name' => 'langley_mfrsr',
'cdesc' => 'MFRSR LANGLEY VAP Process Class', 'cdesc' => 'MFRSR LANGLEY VAP Process Class',
'props' => {}, 'props' => {},
'desc' => '',
'type' => 'VAP', 'type' => 'VAP',
'class' => 'langley_mfrsr', 'class' => 'langley_mfrsr',
'category' => 'VAP' 'category' => 'VAP'
......
...@@ -655,6 +655,7 @@ ...@@ -655,6 +655,7 @@
'name' => 'langley_nimfr', 'name' => 'langley_nimfr',
'cdesc' => 'NIMFR LANGLEY VAP Process Class', 'cdesc' => 'NIMFR LANGLEY VAP Process Class',
'props' => {}, 'props' => {},
'desc' => '',
'type' => 'VAP', 'type' => 'VAP',
'class' => 'langley_nimfr', 'class' => 'langley_nimfr',
'category' => 'VAP' 'category' => 'VAP'
......
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT(
m4_esyscmd([./build-aux/get_package_name.sh]),
m4_esyscmd([./build-aux/get_package_version.sh]),
[])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
#AM_MAINTAINER_MODE
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
LT_INIT(disable-static)
AC_CONFIG_HEADERS([config.h])
AC_SUBST(PACKAGE_VERSION)
# Checks for programs.
AM_PROG_CC_C_O
# Checks for libraries.
PKG_CHECK_MODULES([BWADI], [bwadi], [],
[AC_MSG_ERROR([bwadi not found in PKG_CONFIG_PATH])])
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile
conf/Makefile
src/Makefile])
AC_OUTPUT
#!/bin/sh
if [ "$1" = "--conf" ]; then
conf_package=1
fi
prefix=$APR_PREFIX
destdir=$APR_TOPDIR/package
export BUILD_PACKAGE_NAME="$APR_COMPONENT-$APR_PACKAGE"
export BUILD_PACKAGE_VERSION="$APR_VERSION.$APR_OS"
export PKG_CONFIG_PATH="/apps/ds/lib64/pkgconfig"
if [ $conf_package ]; then
$APR_TOPDIR/build.sh --clean --prefix=$prefix --destdir=$destdir --conf
else
$APR_TOPDIR/build.sh --clean --prefix=$prefix --destdir=$destdir --strip
fi
#------------------------------------------------------------------------------
# APR Configuration File
#
# Detailed APR documentation can be found here:
# https://code.arm.gov/distrib/release/blob/master/README.md
#------------------------------------------------------------------------------
comp: vap
package-name: langley
default-prefix: /apps/process
build-script: package/apr_build.sh
test-script: test/test.sh
include-items:
- (package/apps/process)/bin
author:
name:
organization: ''
email:
phone: ''
service-now:
# - ENG
# - EWO
special-instructions: >
None
synopsis: >
LANGLEY VAP process.
description: >
LANGLEY VAP process.
syntactical-example: >
langley -s site -f facility -b YYYYMMDD -e YYYYMMDD
instructions: >
Run 'langley -h' for usage instructions.
input-requirements: >
See the langley VAP process definition in the PCM
for the list of input datastream(s).
output-requirements: >
See the langley VAP process definition in the PCM
for the list of output datastream(s).
log-files:
- ${LOGS_DATA}/${site}/proc_logs/${site}langley${facility}
error-messages: >
Error and warning messages are written to the log file,
and also emailed to the address specified in the database.
information-messages: >
Informational messages are written to the log file.
debug-messages: >
Debug messages are written to the terminal when running in debug mode.
sites-facilities: >
See the langley VAP process definition in the PCM
for the list of sites and facilities.
environment-variables:
- ${DATASTREAM_DATA} top level datastream directory
- ${LOGS_DATA} top level logs directory
- ${VAP_HOME} prefix of VAP installation location
notification-list:
- N/A
notes: >
None.
related-urls:
- N/A
#------------------------------------------------------------------------------
# Required fields that do not need to be set for this release
build-target: ''
privileged: ''
exclude-items: []
package-dependency: []
file-dependency: []
#!/bin/csh
#
# Post install script for the langley VAP.
#
/bin/csh -c "/apps/ds/bin/db_import_process /apps/process/conf/vap/langley_mfrsr/langley_mfrsr.process"
/bin/csh -c "/apps/ds/bin/db_load_dod -q /apps/process/conf/vap/langley_mfrsr/mfrsrlangley.c1-2.1.dod"
/bin/csh -c "/apps/ds/bin/db_load_dod -q /apps/process/conf/vap/langley_mfrsr/mfrsrlangplot.c1-2.1.dod"
/bin/csh -c "/apps/ds/bin/db_import_process /apps/process/conf/vap/langley_nimfr/langley_nimfr.process"
/bin/csh -c "/apps/ds/bin/db_load_dod -q /apps/process/conf/vap/langley_nimfr/nimfrlangley.c1-2.1.dod"
/bin/csh -c "/apps/ds/bin/db_load_dod -q /apps/process/conf/vap/langley_nimfr/nimfrlangplot.c1-2.1.dod"
#------------------------------------------------------------------------------
# APR Configuration File
#
# Detailed APR documentation can be found here:
# https://code.arm.gov/distrib/release/blob/master/README.md
#------------------------------------------------------------------------------
comp: vap
package-name: langley_conf
default-prefix: /apps/process
architecture: noarch
build-target: noos
build-script: package/apr_build.sh --conf
package-script-dir: package
include-items:
- (package/apps/process)/conf
author:
name:
organization: ''
email:
phone: ''
service-now:
# - ENG
# - EWO
special-instructions: >
None
synopsis: >
Configuration files for the langley VAP.
description: >
This package loads the process and DOD definitions required by the
langley VAP into the database.
notification-list:
- N/A
notes: >
None.
#------------------------------------------------------------------------------
# Required fields that do not need to be set for this release
privileged: ''
exclude-items: []
package-dependency: []
file-dependency: []
bin_PROGRAMS = langley
langley_SOURCES = \
barnard_langley.c \
jim-plot.c \
jim-plot.h \
la.c \
la.h \
langley.c \
langley.h \
langley_retriever.h \
lfit.c \
michalsky_analysis.c \
michalsky_langley.c \
michalsky_langley.h \
solarpos.c \
sunae.c \
sunae.h \
time_of.c \
util.c \
util.h
langley_CFLAGS = -Wall -Wextra $(BWADI_CFLAGS)
langley_LDFLAGS = $(BWADI_LIBS)
MAINTAINERCLEANFILES = \
Makefile.in
...@@ -756,29 +756,29 @@ pro langley, ch, to = to, date = td, $ ...@@ -756,29 +756,29 @@ pro langley, ch, to = to, date = td, $
endelse endelse
!p.charsize = 1.5 !p.charsize = 1.5
xyouts, 0.89, 0.95, f_tau + ":", $ xyouts, 0.84, 0.95, f_tau + ":", $
alignment = 1, /normal alignment = 1, /normal
xyouts, 0.90, 0.95, string(format='(F6.4)', -slope), $ xyouts, 0.85, 0.95, string(format='(F10.4)', -slope), $
alignment = 0, /normal alignment = 0, /normal
xyouts, 0.89, 0.925, f_sigma + "!D" + f_tau + "!X!N:", $ xyouts, 0.84, 0.925, f_sigma + "!D" + f_tau + "!X!N:", $
alignment = 1, /normal alignment = 1, /normal
xyouts, 0.90, 0.925, string(format='(F6.4)', error_slope), $ xyouts, 0.85, 0.925, string(format='(F10.4)', error_slope), $
alignment = 0, /normal alignment = 0, /normal
!p.charsize = 1.2 !p.charsize = 1.2
if (algor eq MICHALSKY) then begin if (algor eq MICHALSKY) then begin
xyouts, 5.9, imin+(imax-imin)*.95,"standard deviation = " + $ xyouts, 5.9, imin+(imax-imin)*.95,"standard deviation = " + $
string(format='(F8.5)', sdp), alignment=1 string(format='(F11.5)', sdp), alignment=1
endif else begin endif else begin
xyouts, 0.85, 0.85, "error in fit:", alignment = 1, /normal xyouts, 0.80, 0.85, "error in fit:", alignment = 1, /normal
xyouts, 0.86, 0.85, string(format='(F7.5)', sdp), $ xyouts, 0.81, 0.85, string(format='(F11.5)', sdp), $
alignment = 0, /normal alignment = 0, /normal
endelse endelse
xyouts, 0.85, 0.82, "I!D0!N:", alignment=1, /normal xyouts, 0.83, 0.82, "I!D0!N:", alignment=1, /normal
xyouts, 0.86, 0.82, string(format='(F7.5)', I0(channel, k)), $ xyouts, 0.84, 0.82, string(format='(F11.5)', I0(channel, k)), $
alignment=0, /normal alignment=0, /normal
xyouts, 0.85, 0.79,"fraction good:", alignment = 1, /normal xyouts, 0.83, 0.79,"fraction good:", alignment = 1, /normal
xyouts, 0.86, 0.79, string(format='(F7.5)', good_fraction), $ xyouts, 0.84, 0.79, string(format='(F11.5)', good_fraction), $
alignment = 0, /normal alignment = 0, /normal
xyouts, 0.85, 0.73, "# of points:", alignment = 1, /normal xyouts, 0.85, 0.73, "# of points:", alignment = 1, /normal
xyouts, 0.86, 0.73, string(format='(I4)', num), $ xyouts, 0.86, 0.73, string(format='(I4)', num), $
...@@ -786,18 +786,18 @@ pro langley, ch, to = to, date = td, $ ...@@ -786,18 +786,18 @@ pro langley, ch, to = to, date = td, $
; print out algorithm info ; print out algorithm info
!p.charsize = 1.0 !p.charsize = 1.0
xyouts, 0.91, 0.07, "Algorithm:", alignment = 1, /normal xyouts, 0.86, 0.07, "Algorithm:", alignment = 1, /normal
xyouts, 0.92, 0.07, algorithm, alignment = 0, /normal xyouts, 0.87, 0.07, algorithm, alignment = 0, /normal
xyouts, 0.91, 0.05, "Location:", alignment = 1, /normal xyouts, 0.86, 0.05, "Location:", alignment = 1, /normal
xyouts, 0.92, 0.05, site + ' ' + facility, alignment = 0, /normal xyouts, 0.87, 0.05, site + ' ' + facility, alignment = 0, /normal
xyouts, 0.91, 0.03, "DataType:", alignment = 1, /normal xyouts, 0.86, 0.03, "DataType:", alignment = 1, /normal
if (not keyword_set (uncalibrated)) then begin if (not keyword_set (uncalibrated)) then begin
xyouts, 0.92, 0.03, "Calibrated", alignment = 0, /normal xyouts, 0.87, 0.03, "Calibrated", alignment = 0, /normal
endif else begin endif else begin
xyouts, 0.92, 0.03, "Uncalibrated", alignment = 0, /normal xyouts, 0.87, 0.03, "Uncalibrated", alignment = 0, /normal
endelse endelse
xyouts, 0.91, 0.01, "Instrument", alignment = 1, /normal xyouts, 0.86, 0.01, "Instrument", alignment = 1, /normal
xyouts, 0.92, 0.01, platform, alignment = 0, /normal xyouts, 0.87, 0.01, platform, alignment = 0, /normal
; print out version information ; print out version information
xyouts, 0.14, 0.01, "IDL Version:", alignment = 1, /normal xyouts, 0.14, 0.01, "IDL Version:", alignment = 1, /normal
......
suppress UMR ...;__mktime_internal
suppress UMR ...;regcomp
suppress IPR ...;ut_parse
suppress UMR ...;PQconnectStart
suppress UMR ...;getaddrinfo
suppress UMR ...;compress2
#-----------------------------------------------------------------------------
# Configuration file for dsproc_test.
#
# Please run `dsproc_test -h` to read the usage message.
#
#-----------------------------------------------------------------------------
# Configuration Settings
#-----------------------------------------------------------------------------
#
# DATA_ROOT specified in this configuration file (see below)
# DATA_HOME $(DATA_ROOT)/data
#
# DSPROCTEST_OUT_DIR $(DATA_ROOT)/out
# DSPROCTEST_REF_DIR $(DATA_ROOT)/ref
#
# DSPROCTEST_LOG_DIR .
# DSPROCTEST_LOG_FILE dsproc_test.log
#
# STAGE_DIR collecting
#
# DIFF_COMMAND diff
# GDB_COMMAND gdb
# DBX_COMMAND dbx
#
# NETCDF_BIN /usr/bin
#
#-----------------------------------------------------------------------------
# HOME Environment Variables
#-----------------------------------------------------------------------------
#
# DSDB_HOME
# INGEST_HOME
# VAP_HOME
#
#-----------------------------------------------------------------------------
# DATA Environment Variables
#-----------------------------------------------------------------------------
#
# COLLECTION_DATA $(DATA_HOME)/collection
# CONF_DATA $(DATA_HOME)/conf
# DATASTREAM_DATA $(DATA_HOME)/datastream
# LOGS_DATA $(DATA_HOME)/logs
# QUICKLOOK_DATA $(DATA_HOME)/www/process
# TMP_DATA $(DATA_HOME)/tmp
#
# DATASTREAM_DATA_IN $(DATASTREAM_DATA)
# DATASTREAM_DATA_OUT $(DATASTREAM_DATA)
#
#-----------------------------------------------------------------------------
DATA_ROOT /data/home/dev/vap/langley/DATA
#-----------------------------------------------------------------------------
PROCESS langley_mfrsr vap
COMMAND $(GDB) $(VAP_BIN)/langley -n langley_mfrsr -s $(SITE) -f $(FAC) -b $(BEGIN) -e $(END) $(DEBUG) $(DBALIAS)
RUN sgp C1 20010502 20010503
RUN sgp C1 20010610 20010611
RUN sgp C1 20010704 20010705
RUN nsa C1 20010704 20010705
RUN nsa C1 20010604 20010605
RUN nsa C1 20060706 20060707
RUN twp C1 20120101 20120102
RUN oli M1 20160722 20160723
#-----------------------------------------------------------------------------
PROCESS langley_nimfr vap
COMMAND $(GDB) $(VAP_BIN)/langley -n langley_nimfr -s $(SITE) -f $(FAC) -b $(BEGIN) -e $(END) $(DEBUG) $(DBALIAS)
RUN sgp C1 20010704 20010705
RUN nsa C1 20040604 20040605
RUN nsa C1 20040704 20040705
#!/bin/sh
# Check if the test is being run by APR
if [ "$APR_TOPDIR" ]; then
export VAP_BIN="$APR_TOPDIR/package/$APR_PREFIX/bin"
cd $APR_TOPDIR/test
fi
/apps/ds/bin/dsproc_test
if [ $? != 0 ]; then
echo "***** FAILED TEST *****"
exit 1
fi
echo "***** PASSED TEST *****"
exit