README.rst

changeset 29
3e3e5bda6b77
parent 12
9cc8d8d69af7
child 30
4669876326d4
equal deleted inserted replaced
14:c2020b2fdd05 29:3e3e5bda6b77
34 directory. 34 directory.
35 35
36 36
37 Settings 37 Settings
38 -------- 38 --------
39 You will need to change some user-defined settings in a settings.py file. You 39 You will need to change some user-defined settings in a settings.yaml file. You
40 can rename the settings.sample.py file to settings.py and follow the instructions 40 can copy the settings_sample.yaml file to settings.py and follow the instructions
41 there. 41 there. You can copy the resulting file to your home directory as `.scc_access.yaml`.
42 This is the default location, `scc_access` will search there if no other location was
43 specified.
42 44
43 Specifically, you will need to: 45 Specifically, you will need to:
44 46
45 1. Change the BASIC_LOGIN and DJANGO_LOGIN to your credentials. 47 1. Change the `basic_credentials` and `website_credentials` to your credentials.
46 2. Change the OUTPUT_DIR to the location were the results will be stored. 48 2. Change the `output_dir` to the location were the results will be stored.
47 49
48 Please not that it's not a good idea to store your own credentials in the settings 50 Please not that it's not a good idea to store your own credentials in the settings
49 file. The standard user has "Station Management" privileges and if the credentials 51 file. The standard user has "Station Management" privileges and if the credentials
50 are stolen, someone could change/delete the stations settings from the SCC database. 52 are stolen, someone could change/delete the stations settings from the SCC database.
51 For this, it is better to use a used account with minimum access settings, that 53 For this, it is better to use a used account with minimum access settings, that
55 Usage 57 Usage
56 ----- 58 -----
57 59
58 You can upload a file specifying the username and the system id:: 60 You can upload a file specifying the username and the system id::
59 61
60 scc_access 20110101po01.nc 125 62 scc_access upload-file 20110101po01.nc 125
61 63
62 If you want to wait for the processing to finish and download the resulting files 64 If you want to wait for the processing to finish and download the resulting files
63 you need to define the -p flag:: 65 you need to define the `process-file` command. Use the `-p` flag to wait for the
66 result::
64 67
65 scc_access 20110101po01.nc 125 -p 68 scc_access process-file 20110101po01.nc 125 -p
66 69
67 If you want to delete an existing measurement id from the database use the -d flag and 70 If you want to delete an existing measurement id from the database use the `delete`
68 the measurement id:: 71 command and the measurement id::
69 72
70 scc_access -d 20110101po01 73 scc_access delete 20110101po01
74
75 You can list available measurements with the `list` command::
76
77 scc_access list
71 78
72 For more information on the syntax type:: 79 For more information on the syntax type::
73 80
74 scc_access -h 81 scc_access -h

mercurial