Commit 76b34dde authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed an error in the documentation.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent b2b16c7c
Pipeline #15815 passed with stages
in 9 minutes and 52 seconds
......@@ -118,7 +118,7 @@ This is an example:
CPUs=20
)
PC = ProcessController(jobID=123456, **configuration)
PC = ProcessController(job_ID=123456, **configuration)
PC.run_all_processors()
Possible configuration arguments can be found `here <https://gitext.gfz-potsdam.de/geomultisens/gms_preprocessing/blob/master/gms_preprocessing/options/options_schema.py>`__.
......
......@@ -8,10 +8,11 @@ The following code snippet will exemplarily import two Landat-7 scenes into the
.. code-block:: python
from gms_preprocessing.options.config import get_conn_database
from gms_preprocessing.misc.database_tools import add_externally_downloaded_data_to_GMSDB
add_externally_downloaded_data_to_GMSDB(
conn_DB=get_conn_database('geoms'),
conn_DB=get_conn_database('localhost'),
src_folder='/path/to/your/downloaded_data_directory/',
filenames=['LE71510322000093SGS00.tar.gz',
'LE71910232012294ASN00.tar.gz'],
......@@ -30,6 +31,7 @@ In other cases, you have to:
.. code-block:: python
from gms_preprocessing.options.config import get_conn_database
from gms_preprocessing.misc.database_tools import update_records_in_postgreSQLdb
entityids = ["LE70450322008300EDC00",
......@@ -38,7 +40,7 @@ In other cases, you have to:
"LE07_L1TP_045032_20081010_20160918_01_T1.tar.gz"]
for eN, fN in zip(entityids, filenames):
update_records_in_postgreSQLdb(conn_params=get_conn_database('geoms'),
update_records_in_postgreSQLdb(conn_params=get_conn_database('localhost'),
tablename='scenes',
vals2update_dict={
'filename': fN,
......
......@@ -18,9 +18,10 @@ The list of filenames refers to the filenames of the previously downloaded provi
.. code-block:: python
from gms_preprocessing.options.config import get_conn_database
from gms_preprocessing.misc.database_tools import GMS_JOB
job = GMS_JOB(conn_db=get_conn_database('geoms'))
job = GMS_JOB(conn_db=get_conn_database('localhost'))
job.from_filenames(
list_filenames=['LE07_L1TP_045032_20081026_20160918_01_T1.tar.gz',
......
......@@ -12,7 +12,7 @@ Once a job is created (see :ref:`ref__create_new_jobs`), it can be executed as f
CPUs=20
)
PC = ProcessController(jobID=123456, **configuration)
PC = ProcessController(job_ID=123456, **configuration)
PC.run_all_processors()
This runs the job with the ID 123456 with the configuration parameters as given in the configuration dictionary.
......
......@@ -19,10 +19,11 @@ To **find out these scene IDs**, you can query the GeoMultiSens metadata databas
.. code-block:: python
from gms_preprocessing.options.config import get_conn_database
from gms_preprocessing.misc.database_tools import get_info_from_postgreSQLdb
get_info_from_postgreSQLdb(
conn_params=get_conn_database('geoms'),
conn_params=get_conn_database('localhost'),
tablename='scenes',
vals2return=['id'],
cond_dict={
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment