How to test upload images with your own sandbox » History » Revision 2
Revision 1 (Amber Herold, 10/01/2010 03:05 PM) → Revision 2/8 (Amber Herold, 10/01/2010 03:19 PM)
h1. How to test upload images with your own sandbox Just had to do this so taking some notes: h2. the objective I have images that I want to upload loacted in my home directory. I want to use my sandbox on the web side of appion. I want to use the wrapper/appion snapshot/beta appion for the python parts. However you want to call it, I just need a recent version. I want to upload the images to my own private database that is located on the fly server. When the images are uploaded, I want them stored in my home directory rather than on /ami/data00. h2. setup h3. sinedon.cfg in home directory Make sure sinedon.cfg is in your home directory and the host, user and password correspond to your database. Make sure the projectdata and leginondata settings are set to the name of your db. h3. leginon.cfg in home directory Make sure leginon.cfg is in your home directory and the images path is set to a folder in your home directory. h2. create the command * open myamiweb Go to fly/~your_username/myamiweb which has been set up per the following instructions... * Go to or create a project for your images to be uploaded into. * make sure there is a database set for the project (ex. ap123) * click on [upload images to new session] * Under the _directory containing images_ field copy the path to the images on your home directory ex. /home/your_username/dir1/dir2 * Select _just show command_ h2. execute the command Fly does not have the python parts installed. Guppy does not have access to your home directory to get he images. # ssh into amibox02 or amibox03 to run uploadimage.py # Copy and past the command that was provided by the web page into the terminal # Add the path to the wrapper installation to make sure you are executing the most recent version of the python code. This is probably /opt/myamisnap/bin/appion and it should be pre-pended to the command. example: <pre> /opt/myamisnap/bin/appion uploadImages.py --projectid=268 --image-dir=/home/amber/uploadedimages/pairedimages --mpix=1E-09 --type=defocalseries --images-per-series=2 --defocus-list=-1E-10,-2E-10 --mag=50000 --kv=120 --description="defocal test" --jobtype=uploadimage </pre>