开源软件名称(OpenSource Name):cgaustin/mastodon开源软件地址(OpenSource Url):https://github.com/cgaustin/mastodon开源编程语言(OpenSource Language):Shell 73.9%开源软件介绍(OpenSource Introduction):MastodonTools for facilitating LCMAP data curation. Features
RunningThe LCMAP Mastodon application is deployed as a Docker container. All interactions are handled over HTTP. docker run \
-v /workspace/data:/data \
-e "ARD_PATH=${ARD_PATH}" \
-e "ARD_HOST=${ARD_HOST}"\
-e "CHIPMUNK_HOST=${CHIPMUNK_HOST}" \
-e "DATA_TYPE=${DATA_TYPE}" \
-e "PARTITION_LEVEL=${PARTITION_LEVEL}" \
usgseros/lcmap-mastodon ConfigurationYou need to mount a volume to your container at /data. This should be the base dir to where the ARD tarballs can be found -v /localardpath/data:/data And the following environment variables: ${ARD_PATH} - is used by a glob function to determine what ARD tarballs are available for a given Tile ID. The value is determined by the directory structure where the ARD is kept Analysis Ready Data (ARD) are expected to be organized by Landsat Mission. From the mounted dir, the directory structure should mirror this: <mission>/ARD_Tile/<year acquired>/<region>/<HHH>/<VVV>/ HHH and VVV constituting the 3 digit tile-id. The H and V values DO NOT need to be included in your ${ARD_PATH} definition. export ARD_PATH=/data/\{tm,etm,oli_tirs\}/ARD_Tile/*/CU/ ${ARD_HOST} - is the host or IP address for the deployed lcmap-mastodon instance ${CHIPMUNK_HOST} - is the url to the deployed lcmap-chipmunk instance ${DATA_TYPE} - tells the lcmap-mastodon instance what kind of data it is working with. Valid values are "ard" and "aux". ${PARTITION_LEVEL} - determines the level of parallelization applied to the ingest process. For instance, setting this to 10 results in 10 simultaneous data ingest requests. Optionally, you can define the following: ${INVENTORY_TIMEOUT} - defines, in milliseconds, the HTTP request timeout for inventory queries against lcmap-chipmunk Defaults to 120000 (2 minutes). ${INGEST_TIMEOUT} - defines, in milliseconds, the HTTP request timeout for ingest requests against lcmap-chipmunk. Defaults to 120000 (2 minutes). CLI InteractionBuild an uberjar with leiningen, and export environment variables for the If you want to ingest Auxiliary data instead of ARD, you'll need to set the DATA_TYPE accordingly, and also define ${AUX_HOST}. Optionally, you can export FROM_DATE and TO_DATE environment variables, to filter by year the ARD you're concerned with. Format is: YYYY. To build the standalone jar file: lein uberjar With your jar built, and your environment setup java -jar target/lcmap-mastodon-0.1.13-standalone.jar <6 digit tile id> And follow the prompts. If you want to automatically ingest any previously uningested data, add -y after the tile id. Development ClojureTo get a repl: lein repl To run the main function: lein run Testingmake runtests DockerBefore building a new docker image, you'll need to create a new uberjar and transpile the clojurescript lein uberjar docker build -t < your tag here > . ContributingBefore committing to this repository, run the following command. git config --local commit.template .gitmessage This will add the LCMAP commit template to git commit. jira/lcmap-xxxx: Title
Description: LicenseUnlicense Mastodon, it'll probably be extinct soon |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论