Project

General

Profile

How to test upload images with your own sandbox » History » Version 8

Amber Herold, 10/01/2010 03:28 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 6 Amber Herold
h2. +the objective+
7 1 Amber Herold
8 4 Amber Herold
I have images that I want to upload located in my home directory.
9 1 Amber Herold
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 6 Amber Herold
h2. +setup+
16 1 Amber Herold
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 5 Amber Herold
h3. config.php located in your sandbox under myamiweb
27 1 Amber Herold
28 5 Amber Herold
Make sure the database information matches what is found in sinedon.cfg.
29
30 6 Amber Herold
h2. +create the command+
31 5 Amber Herold
32 1 Amber Herold
* open myamiweb
33 8 Amber Herold
 Go to fly/~your_username/myamiweb which has been set up per the instructions found under _Use Cronus3 or Fly to view your web app_ in the [[AMI Eclipse Quick Start Guide]].
34 1 Amber Herold
35
* Go to or create a project for your images to be uploaded into.
36
* make sure there is a database set for the project (ex. ap123)
37
* click on [upload images to new session]
38
* Under the _directory containing images_ field copy the path to the images on your home directory ex. /home/your_username/dir1/dir2
39
* Select _just show command_
40
41 6 Amber Herold
h2. +execute the command+
42 2 Amber Herold
43
Fly does not have the python parts installed.
44 3 Amber Herold
Guppy does not have access to your home directory to get the images.
45 2 Amber Herold
46
# ssh into amibox02 or amibox03 to run uploadimage.py
47
# Copy and past the command that was provided by the web page into the terminal
48
# Add the path to the wrapper installation to make sure you are executing the most recent version of the python code. 
49
 This is probably /opt/myamisnap/bin/appion and it should be pre-pended to the command. 
50
51
example:
52
<pre>
53
/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
54
</pre>