How to test upload images with your own sandbox » History » Version 3
Amber Herold, 10/01/2010 03:19 PM
| 1 | 1 | Amber Herold | h1. How to test upload images with your own sandbox |
|---|---|---|---|
| 2 | |||
| 3 | |||
| 4 | Just had to do this so taking some notes: |
||
| 5 | |||
| 6 | h2. the objective |
||
| 7 | |||
| 8 | I have images that I want to upload loacted in my home directory. |
||
| 9 | I want to use my sandbox on the web side of appion. |
||
| 10 | 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. |
||
| 11 | I want to upload the images to my own private database that is located on the fly server. |
||
| 12 | When the images are uploaded, I want them stored in my home directory rather than on /ami/data00. |
||
| 13 | |||
| 14 | |||
| 15 | h2. setup |
||
| 16 | |||
| 17 | h3. sinedon.cfg in home directory |
||
| 18 | |||
| 19 | Make sure sinedon.cfg is in your home directory and the host, user and password correspond to your database. |
||
| 20 | Make sure the projectdata and leginondata settings are set to the name of your db. |
||
| 21 | |||
| 22 | h3. leginon.cfg in home directory |
||
| 23 | |||
| 24 | Make sure leginon.cfg is in your home directory and the images path is set to a folder in your home directory. |
||
| 25 | |||
| 26 | h2. create the command |
||
| 27 | |||
| 28 | * open myamiweb |
||
| 29 | Go to fly/~your_username/myamiweb which has been set up per the following instructions... |
||
| 30 | |||
| 31 | * Go to or create a project for your images to be uploaded into. |
||
| 32 | * make sure there is a database set for the project (ex. ap123) |
||
| 33 | * click on [upload images to new session] |
||
| 34 | * Under the _directory containing images_ field copy the path to the images on your home directory ex. /home/your_username/dir1/dir2 |
||
| 35 | * Select _just show command_ |
||
| 36 | |||
| 37 | h2. execute the command |
||
| 38 | 2 | Amber Herold | |
| 39 | Fly does not have the python parts installed. |
||
| 40 | 3 | Amber Herold | Guppy does not have access to your home directory to get the images. |
| 41 | 2 | Amber Herold | |
| 42 | # ssh into amibox02 or amibox03 to run uploadimage.py |
||
| 43 | # Copy and past the command that was provided by the web page into the terminal |
||
| 44 | # Add the path to the wrapper installation to make sure you are executing the most recent version of the python code. |
||
| 45 | This is probably /opt/myamisnap/bin/appion and it should be pre-pended to the command. |
||
| 46 | |||
| 47 | example: |
||
| 48 | <pre> |
||
| 49 | /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 |
||
| 50 | </pre> |