Script zum Upload von Medokads Daten in die CERA (von wizard)

#!/bin/bash # # create list wirh 'ls' command from input directory (with processed files in it) # use ls 'dir' | tail 120 > 'out' # and # head ls 'dir' | head 132 >> 'out' # because of not correct time sort of lists #

# fill list for container # /pf/k/k202062/FileBlobPutList -ds MEDOKADS_00w_31n_i -list /cera_in/projects/medokads/container_lists/MEDOKADS_00w_31n_i.lst -records_type netCDF

# create container # /pf/k/k202062/create-container 1 MEDOKADS_00w_31n_i

DIR_PROG=/pf/k/k202062/

export RECORD_TYPE_LIST=${DIR_PROG}"record-types.tbl" export COMPRESSION_TYPE_LIST=${DIR_PROG}"compressions.tbl" export CONTAINER_BIN=${DIR_PROG}"src/cera-containers/src"

DIR_PROJ=/cera_in/projects/medokads/ PROG_FILL=FileBlobPutList PROG_CR_CONT=create-container DIR_CONT_LIST=$DIR_PROJ"container_lists/" #DIR_DATA=$DIR_PROJ"FILL/"

#DIR_DATA=$DIR_PROJ"COMPLETE/" DIR_DATA=$DIR_PROJ"PROZ/COMPLETE/" #LIST_DIR=$DIR_PROJ"HR/LIST/" #TILELST=$DIR_PROJ"kacheln_pur.liste" #TILELST="kacheln_pur.liste"

#TILELST="kacheln_test_20121128.liste" #TILELST=$LIST_DIR"kacheln_pur.txt" CONFIRM=$DIR_PROJ"CONFIRM"

echo "Create CERA Container" echo #echo "Used input list: "${TILELST} echo "Output list to: "${DIR_CONT_LIST} echo

upload_data() {

# for k in 1 2 3 4 5 6 ; do # for k in 1 2 6 7 8 9 n ; do # for VAR in 1 2 3 4 5 6 7 8 9 a i n p s t ; do # for VAR in a i n p s t ; do

# for VAR in s t ; do # for k in t ; do

# echo ${ds_dir} # echo ${lst_file}

# exit

# echo "find ${ds_dir} -type f -print > ${tmp_file}"

# ${DIR_PROG}${PROG_FILL} -ds ${ds_name} -list ${lst_file} -records_type netCDF

# exit 1

# exit 2

}

create_all_east() {

}

create_all_west() {

}

create_west_part() {

# for n in 31 35 39 43 47 51 55 ; do

}

create_east_part() {

}

echo "Start..."

create_west_part

echo "Done..."

exit

MadWiki: Medokads CERA Upload (last edited 2014-04-16 12:36:06 by HansRamthun)