Skip to content

Commit

Permalink
EOS expose looks input for LAR jobs (#9)
Browse files Browse the repository at this point in the history
* test if lar looks change is right

* make sure looks for lar is exposed

* change slcp version so we can do away with looks

* revert looks change, slcp job cannot live without it

* revert SLCP change

* slcp2pm updates in master
  • Loading branch information
shitong01 authored Jun 24, 2019
1 parent 7e6d0bb commit 8dfd777
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
18 changes: 17 additions & 1 deletion docker/hysds-io.json.s1-lar
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,26 @@
"from": "dataset_jpath:_source",
"lambda": "lambda ds: filter(lambda x: x.startswith('s3://'), ds['urls'])[0]"
},
{
{
"name": "path",
"from": "dataset_jpath:_source",
"lambda": "lambda ds: __import__('os').path.basename(filter(lambda x: x.startswith('s3://'), ds['urls'])[0])"
},
{
"name": "lar_range_looks",
"from": "submitter",
"type": "number",
"lambda": "lambda x: int(x)",
"placeholder": "(optional) range looks to override SLCP",
"default": "7"
},
{
"name": "lar_azimuth_looks",
"from": "submitter",
"type": "number",
"lambda": "lambda x: int(x)",
"placeholder": "(optional) azimuth looks to override SLCP",
"default": "2"
}
]
}
2 changes: 1 addition & 1 deletion docker/hysds-io.json.sciflo-s1-slcp-mrpe
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"lambda": "lambda x: int(x)",
"default": "3"
},
{
{
"name": "range_looks",
"from": "submitter",
"type": "number",
Expand Down
8 changes: 8 additions & 0 deletions docker/job-spec.json.s1-lar
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
{
"name": "path",
"destination": "positional"
},
{
"name": "lar_range_looks",
"destination": "context"
},
{
"name": "lar_azimuth_looks",
"destination": "context"
}
]
}
2 changes: 1 addition & 1 deletion docker/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
git clone https://github.com/hysds/spyddder-man.git

# clone slcp2pm to be moved to its final location by docker builder
git clone https://github.com/hysds/slcp2pm.git
git clone https://github.com/earthobservatory/slcp2pm.git

# clone slcp2cor to be moved to its final location by docker builder
git clone https://github.com/hysds/slcp2cor.git

0 comments on commit 8dfd777

Please sign in to comment.