next up previous
Next: Loading spectro data (plates) Up: Loading a database Previous: Loading a database

Loading photo data (chunks)

1.
If the .fits files in the chunk directory are gzipped, you must gunzip them before running the loader.
2.
Then, create log directories:
mkdir $SX_CLIENT_DIR/log/loader/
mkdir $SX_CLIENT_DIR/log/save/.
3.
Then change to the loader directory and run the loader:
cd $SXLOADER_DIR/
./bin/sxLoad (-n) datapath chunknumber
The -n option stands for norun and shows only the output but doesn't actually run the loader. datapath is the actual datapath, e.g. /d001/chunk2007. chunknumber is the number of the observed chunk, which is the last digit in the chunkname, e.g. 7.
Since output on stdout of the progress slows down the loading, you had better redirect the output to a file, e.g.:
./bin/sxLoad /d001/chunk2007 7 > & load.out &
and have a look at it with:
tail load.out
The log files you will find in the directory $SX_CLIENT_DIR/log/loader/.
You may want to create a shell script for loading multiple chunks.






© The Johns Hopkins University 2000
Generated by Ani Thakar at 2002-01-18