Commit 78995967 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added documentation on how to create jobs from job IDs.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 2b5ea868
Pipeline #16744 passed with stages
in 22 minutes and 2 seconds
...@@ -9,6 +9,7 @@ History ...@@ -9,6 +9,7 @@ History
* Added URL checker and corresponding CI job. * Added URL checker and corresponding CI job.
* Removed travis related files. * Removed travis related files.
* Fixed dead URLs. * Fixed dead URLs.
* Added documentation on how to create jobs from job IDs.
0.19.3 (2020-12-03) 0.19.3 (2020-12-03)
......
...@@ -30,7 +30,8 @@ There are multiple ways to create new jobs depending on what you have. The secti ...@@ -30,7 +30,8 @@ There are multiple ways to create new jobs depending on what you have. The secti
Create a job from a list of filenames Create a job from a list of filenames
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The list of filenames refers to the filenames of the previously downloaded provider archive data. The list of filenames refers to the filenames of the previously downloaded provider archive data
(see :meth:`gms_preprocessing.misc.database_tools.GMS_JOB.from_filenames` for details).
.. code-block:: python .. code-block:: python
...@@ -60,16 +61,38 @@ The list of filenames refers to the filenames of the previously downloaded provi ...@@ -60,16 +61,38 @@ The list of filenames refers to the filenames of the previously downloaded provi
Create a job from a list of entity IDs Create a job from a list of entity IDs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- TODO - TODO (see :meth:`gms_preprocessing.misc.database_tools.GMS_JOB.from_entityIDlist` for details)
Create a job from a list of scene IDs Create a job from a list of scene IDs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- TODO If you have a list of GeoMultiSens scene IDs, you can also create a new processing job for them
(see :meth:`gms_preprocessing.misc.database_tools.GMS_JOB.from_sceneIDlist` for details):
.. 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('localhost'))
job.from_sceneIDlist(list_sceneIDs=[9390928,],
virtual_sensor_id=1
comment='Example job for only one scene with the ID 9390928.')
# write the job into the GeoMultiSens metadata database
job.create()
.. code-block:: bash
OUT:
New job created successfully. job-ID: 26193458
The job contains:
- 1 Landsat-5 TM scene
Create a job from a dictionary Create a job from a dictionary
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- TODO - TODO (see :meth:`gms_preprocessing.misc.database_tools.GMS_JOB.from_dictlist` for details)
...@@ -24,5 +24,5 @@ ...@@ -24,5 +24,5 @@
# You should have received a copy of the GNU Lesser General Public License along # You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>. # with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '0.19.3' __version__ = '0.19.4'
__versionalias__ = '20201203.01' __versionalias__ = '20201210.01'
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