hexsha stringlengths 40 40 | repo stringlengths 7 114 | path stringlengths 4 124 | license listlengths 1 9 | language stringclasses 1
value | identifier stringlengths 1 71 | return_type stringlengths 1 749 ⌀ | original_string stringlengths 76 22.7k | original_docstring stringlengths 16 7.61k | docstring stringlengths 16 2.47k | docstring_tokens listlengths 6 477 | code stringlengths 14 10.2k | code_tokens listlengths 6 996 | short_docstring stringlengths 2 644 | short_docstring_tokens listlengths 1 116 | comment listlengths 1 89 | parameters listlengths 0 64 | docstring_params dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
63561054ea72af0e7e579bfe3757622f2b478250 | Fed03/fashion-compatibility | Resnet_18.py | [
"BSD-3-Clause"
] | Python | resnet18 | <not_specific> | def resnet18(pretrained=False, **kwargs):
"""Constructs a ResNet-18 model.
Args:
pretrained (bool): If True, returns a model pre-trained on ImageNet
"""
model = ResNet(BasicBlock, [2, 2, 2], **kwargs)
if pretrained:
state = model.state_dict()
loaded_state_dict = model_zoo.lo... | Constructs a ResNet-18 model.
Args:
pretrained (bool): If True, returns a model pre-trained on ImageNet
| Constructs a ResNet-18 model. | [
"Constructs",
"a",
"ResNet",
"-",
"18",
"model",
"."
] | def resnet18(pretrained=False, **kwargs):
model = ResNet(BasicBlock, [2, 2, 2], **kwargs)
if pretrained:
state = model.state_dict()
loaded_state_dict = model_zoo.load_url(model_urls['resnet18'])
for k in loaded_state_dict:
if k in state:
state[k] = loaded_stat... | [
"def",
"resnet18",
"(",
"pretrained",
"=",
"False",
",",
"**",
"kwargs",
")",
":",
"model",
"=",
"ResNet",
"(",
"BasicBlock",
",",
"[",
"2",
",",
"2",
",",
"2",
"]",
",",
"**",
"kwargs",
")",
"if",
"pretrained",
":",
"state",
"=",
"model",
".",
"... | Constructs a ResNet-18 model. | [
"Constructs",
"a",
"ResNet",
"-",
"18",
"model",
"."
] | [
"\"\"\"Constructs a ResNet-18 model.\n\n Args:\n pretrained (bool): If True, returns a model pre-trained on ImageNet\n \"\"\""
] | [
{
"param": "pretrained",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "pretrained",
"type": null,
"docstring": "If True, returns a model pre-trained on ImageNet",
"docstring_tokens": [
"If",
"True",
"returns",
"a",
"model",
"pre",
"-",
... |
71e5ef9fe56015f8f3fc1faaa46b2de04e171495 | Fed03/fashion-compatibility | polyvore_outfits.py | [
"BSD-3-Clause"
] | Python | parse_iminfo | <not_specific> | def parse_iminfo(question, im2index, id2im, gt = None):
""" Maps the questions from the FITB and compatibility tasks back to
their index in the precomputed matrix of features
question: List of images to measure compatibility between
im2index: Dictionary mapping an image name to its location... | Maps the questions from the FITB and compatibility tasks back to
their index in the precomputed matrix of features
question: List of images to measure compatibility between
im2index: Dictionary mapping an image name to its location in a
precomputed matrix of features
... | Maps the questions from the FITB and compatibility tasks back to
their index in the precomputed matrix of features
List of images to measure compatibility between
im2index: Dictionary mapping an image name to its location in a
precomputed matrix of features
gt: optional, the ground truth outfit set this item belongs t... | [
"Maps",
"the",
"questions",
"from",
"the",
"FITB",
"and",
"compatibility",
"tasks",
"back",
"to",
"their",
"index",
"in",
"the",
"precomputed",
"matrix",
"of",
"features",
"List",
"of",
"images",
"to",
"measure",
"compatibility",
"between",
"im2index",
":",
"D... | def parse_iminfo(question, im2index, id2im, gt = None):
questions = []
is_correct = np.zeros(len(question), np.bool)
for index, im_id in enumerate(question):
set_id = im_id.split('_')[0]
if gt is None:
gt = set_id
im = id2im[im_id]
questions.append((im2index[im], ... | [
"def",
"parse_iminfo",
"(",
"question",
",",
"im2index",
",",
"id2im",
",",
"gt",
"=",
"None",
")",
":",
"questions",
"=",
"[",
"]",
"is_correct",
"=",
"np",
".",
"zeros",
"(",
"len",
"(",
"question",
")",
",",
"np",
".",
"bool",
")",
"for",
"index... | Maps the questions from the FITB and compatibility tasks back to
their index in the precomputed matrix of features | [
"Maps",
"the",
"questions",
"from",
"the",
"FITB",
"and",
"compatibility",
"tasks",
"back",
"to",
"their",
"index",
"in",
"the",
"precomputed",
"matrix",
"of",
"features"
] | [
"\"\"\" Maps the questions from the FITB and compatibility tasks back to\n their index in the precomputed matrix of features\n\n question: List of images to measure compatibility between\n im2index: Dictionary mapping an image name to its location in a\n precomputed matrix of f... | [
{
"param": "question",
"type": null
},
{
"param": "im2index",
"type": null
},
{
"param": "id2im",
"type": null
},
{
"param": "gt",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "question",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "im2index",
"type": null,
"docstring": null,
"docstring_to... |
71e5ef9fe56015f8f3fc1faaa46b2de04e171495 | Fed03/fashion-compatibility | polyvore_outfits.py | [
"BSD-3-Clause"
] | Python | load_typespaces | <not_specific> | def load_typespaces(rootdir, rand_typespaces, num_rand_embed):
""" loads a mapping of pairs of types to the embedding used to
compare them
rand_typespaces: Boolean indicator of randomly assigning type
specific spaces to their embedding
num_rand_embed: number of embe... | loads a mapping of pairs of types to the embedding used to
compare them
rand_typespaces: Boolean indicator of randomly assigning type
specific spaces to their embedding
num_rand_embed: number of embeddings to use when
rand_typespaces is true
... | loads a mapping of pairs of types to the embedding used to
compare them
Boolean indicator of randomly assigning type
specific spaces to their embedding
num_rand_embed: number of embeddings to use when
rand_typespaces is true | [
"loads",
"a",
"mapping",
"of",
"pairs",
"of",
"types",
"to",
"the",
"embedding",
"used",
"to",
"compare",
"them",
"Boolean",
"indicator",
"of",
"randomly",
"assigning",
"type",
"specific",
"spaces",
"to",
"their",
"embedding",
"num_rand_embed",
":",
"number",
... | def load_typespaces(rootdir, rand_typespaces, num_rand_embed):
typespace_fn = os.path.join(rootdir, 'typespaces.p')
typespaces = pickle.load(open(typespace_fn,'rb'))
if not rand_typespaces:
ts = {}
for index, t in enumerate(typespaces):
ts[t] = index
typespaces = ts
... | [
"def",
"load_typespaces",
"(",
"rootdir",
",",
"rand_typespaces",
",",
"num_rand_embed",
")",
":",
"typespace_fn",
"=",
"os",
".",
"path",
".",
"join",
"(",
"rootdir",
",",
"'typespaces.p'",
")",
"typespaces",
"=",
"pickle",
".",
"load",
"(",
"open",
"(",
... | loads a mapping of pairs of types to the embedding used to
compare them | [
"loads",
"a",
"mapping",
"of",
"pairs",
"of",
"types",
"to",
"the",
"embedding",
"used",
"to",
"compare",
"them"
] | [
"\"\"\" loads a mapping of pairs of types to the embedding used to\n compare them\n\n rand_typespaces: Boolean indicator of randomly assigning type\n specific spaces to their embedding\n num_rand_embed: number of embeddings to use when\n rand_types... | [
{
"param": "rootdir",
"type": null
},
{
"param": "rand_typespaces",
"type": null
},
{
"param": "num_rand_embed",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "rootdir",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "rand_typespaces",
"type": null,
"docstring": null,
"docstr... |
71e5ef9fe56015f8f3fc1faaa46b2de04e171495 | Fed03/fashion-compatibility | polyvore_outfits.py | [
"BSD-3-Clause"
] | Python | load_compatibility_questions | <not_specific> | def load_compatibility_questions(fn, im2index, id2im):
""" Returns the list of compatibility questions for the
split """
with open(fn, 'r') as f:
lines = f.readlines()
compatibility_questions = []
for line in lines:
data = line.strip().split()
compat_question, _, _ = par... | Returns the list of compatibility questions for the
split | Returns the list of compatibility questions for the
split | [
"Returns",
"the",
"list",
"of",
"compatibility",
"questions",
"for",
"the",
"split"
] | def load_compatibility_questions(fn, im2index, id2im):
with open(fn, 'r') as f:
lines = f.readlines()
compatibility_questions = []
for line in lines:
data = line.strip().split()
compat_question, _, _ = parse_iminfo(data[1:], im2index, id2im)
compatibility_questions.append((co... | [
"def",
"load_compatibility_questions",
"(",
"fn",
",",
"im2index",
",",
"id2im",
")",
":",
"with",
"open",
"(",
"fn",
",",
"'r'",
")",
"as",
"f",
":",
"lines",
"=",
"f",
".",
"readlines",
"(",
")",
"compatibility_questions",
"=",
"[",
"]",
"for",
"line... | Returns the list of compatibility questions for the
split | [
"Returns",
"the",
"list",
"of",
"compatibility",
"questions",
"for",
"the",
"split"
] | [
"\"\"\" Returns the list of compatibility questions for the\n split \"\"\""
] | [
{
"param": "fn",
"type": null
},
{
"param": "im2index",
"type": null
},
{
"param": "id2im",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "fn",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "im2index",
"type": null,
"docstring": null,
"docstring_tokens":... |
71e5ef9fe56015f8f3fc1faaa46b2de04e171495 | Fed03/fashion-compatibility | polyvore_outfits.py | [
"BSD-3-Clause"
] | Python | load_fitb_questions | <not_specific> | def load_fitb_questions(fn, im2index, id2im):
""" Returns the list of fill in the blank questions for the
split """
data = json.load(open(fn, 'r'))
questions = []
for item in data:
question = item['question']
q_index, _, gt = parse_iminfo(question, im2index, id2im)
answer... | Returns the list of fill in the blank questions for the
split | Returns the list of fill in the blank questions for the
split | [
"Returns",
"the",
"list",
"of",
"fill",
"in",
"the",
"blank",
"questions",
"for",
"the",
"split"
] | def load_fitb_questions(fn, im2index, id2im):
data = json.load(open(fn, 'r'))
questions = []
for item in data:
question = item['question']
q_index, _, gt = parse_iminfo(question, im2index, id2im)
answer = item['answers']
a_index, is_correct, _ = parse_iminfo(answer, im2index,... | [
"def",
"load_fitb_questions",
"(",
"fn",
",",
"im2index",
",",
"id2im",
")",
":",
"data",
"=",
"json",
".",
"load",
"(",
"open",
"(",
"fn",
",",
"'r'",
")",
")",
"questions",
"=",
"[",
"]",
"for",
"item",
"in",
"data",
":",
"question",
"=",
"item",... | Returns the list of fill in the blank questions for the
split | [
"Returns",
"the",
"list",
"of",
"fill",
"in",
"the",
"blank",
"questions",
"for",
"the",
"split"
] | [
"\"\"\" Returns the list of fill in the blank questions for the\n split \"\"\""
] | [
{
"param": "fn",
"type": null
},
{
"param": "im2index",
"type": null
},
{
"param": "id2im",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "fn",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "im2index",
"type": null,
"docstring": null,
"docstring_tokens":... |
71e5ef9fe56015f8f3fc1faaa46b2de04e171495 | Fed03/fashion-compatibility | polyvore_outfits.py | [
"BSD-3-Clause"
] | Python | load_train_item | <not_specific> | def load_train_item(self, image_id):
""" Returns a single item in the triplet and its data
"""
imfn = os.path.join(self.impath, '%s.jpg' % image_id)
img = self.loader(imfn)
if self.transform is not None:
img = self.transform(img)
if image_id in self.im2desc:
... | Returns a single item in the triplet and its data
| Returns a single item in the triplet and its data | [
"Returns",
"a",
"single",
"item",
"in",
"the",
"triplet",
"and",
"its",
"data"
] | def load_train_item(self, image_id):
imfn = os.path.join(self.impath, '%s.jpg' % image_id)
img = self.loader(imfn)
if self.transform is not None:
img = self.transform(img)
if image_id in self.im2desc:
text = self.im2desc[image_id]
text_features = self.... | [
"def",
"load_train_item",
"(",
"self",
",",
"image_id",
")",
":",
"imfn",
"=",
"os",
".",
"path",
".",
"join",
"(",
"self",
".",
"impath",
",",
"'%s.jpg'",
"%",
"image_id",
")",
"img",
"=",
"self",
".",
"loader",
"(",
"imfn",
")",
"if",
"self",
"."... | Returns a single item in the triplet and its data | [
"Returns",
"a",
"single",
"item",
"in",
"the",
"triplet",
"and",
"its",
"data"
] | [
"\"\"\" Returns a single item in the triplet and its data\n \"\"\""
] | [
{
"param": "self",
"type": null
},
{
"param": "image_id",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "image_id",
"type": null,
"docstring": null,
"docstring_tokens... |
71e5ef9fe56015f8f3fc1faaa46b2de04e171495 | Fed03/fashion-compatibility | polyvore_outfits.py | [
"BSD-3-Clause"
] | Python | sample_negative | <not_specific> | def sample_negative(self, outfit_id, item_id, item_type):
""" Returns a randomly sampled item from a different set
than the outfit at data_index, but of the same type as
item_type
data_index: index in self.data where the positive pair
of items... | Returns a randomly sampled item from a different set
than the outfit at data_index, but of the same type as
item_type
data_index: index in self.data where the positive pair
of items was pulled from
item_type: the coarse type of the item t... | Returns a randomly sampled item from a different set
than the outfit at data_index, but of the same type as
item_type
index in self.data where the positive pair
of items was pulled from
item_type: the coarse type of the item that the item
that was paired with the anchor | [
"Returns",
"a",
"randomly",
"sampled",
"item",
"from",
"a",
"different",
"set",
"than",
"the",
"outfit",
"at",
"data_index",
"but",
"of",
"the",
"same",
"type",
"as",
"item_type",
"index",
"in",
"self",
".",
"data",
"where",
"the",
"positive",
"pair",
"of"... | def sample_negative(self, outfit_id, item_id, item_type):
item_out = item_id
candidate_sets = self.category2ims[item_type].keys()
attempts = 0
while item_out == item_id and attempts < 100:
choice = np.random.choice(candidate_sets)
items = self.category2ims[item_ty... | [
"def",
"sample_negative",
"(",
"self",
",",
"outfit_id",
",",
"item_id",
",",
"item_type",
")",
":",
"item_out",
"=",
"item_id",
"candidate_sets",
"=",
"self",
".",
"category2ims",
"[",
"item_type",
"]",
".",
"keys",
"(",
")",
"attempts",
"=",
"0",
"while"... | Returns a randomly sampled item from a different set
than the outfit at data_index, but of the same type as
item_type | [
"Returns",
"a",
"randomly",
"sampled",
"item",
"from",
"a",
"different",
"set",
"than",
"the",
"outfit",
"at",
"data_index",
"but",
"of",
"the",
"same",
"type",
"as",
"item_type"
] | [
"\"\"\" Returns a randomly sampled item from a different set\n than the outfit at data_index, but of the same type as\n item_type\n \n data_index: index in self.data where the positive pair\n of items was pulled from\n item_type: the coarse t... | [
{
"param": "self",
"type": null
},
{
"param": "outfit_id",
"type": null
},
{
"param": "item_id",
"type": null
},
{
"param": "item_type",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "outfit_id",
"type": null,
"docstring": null,
"docstring_token... |
3fed67b59563e8fb059fb89d4aaeb986f8e0c3d8 | Fed03/fashion-compatibility | tripletnet.py | [
"BSD-3-Clause"
] | Python | selective_margin_loss | <not_specific> | def selective_margin_loss(pos_samples, neg_samples, margin, has_sample):
""" pos_samples: Distance between positive pair
neg_samples: Distance between negative pair
margin: minimum desired margin between pos and neg samples
has_sample: Indicates if the sample should be used to calcuate the l... | pos_samples: Distance between positive pair
neg_samples: Distance between negative pair
margin: minimum desired margin between pos and neg samples
has_sample: Indicates if the sample should be used to calcuate the loss
| Distance between positive pair
neg_samples: Distance between negative pair
margin: minimum desired margin between pos and neg samples
has_sample: Indicates if the sample should be used to calcuate the loss | [
"Distance",
"between",
"positive",
"pair",
"neg_samples",
":",
"Distance",
"between",
"negative",
"pair",
"margin",
":",
"minimum",
"desired",
"margin",
"between",
"pos",
"and",
"neg",
"samples",
"has_sample",
":",
"Indicates",
"if",
"the",
"sample",
"should",
"... | def selective_margin_loss(pos_samples, neg_samples, margin, has_sample):
margin_diff = torch.clamp((pos_samples - neg_samples) + margin, min=0, max=1e6)
num_sample = max(torch.sum(has_sample), 1)
return torch.sum(margin_diff * has_sample) / num_sample | [
"def",
"selective_margin_loss",
"(",
"pos_samples",
",",
"neg_samples",
",",
"margin",
",",
"has_sample",
")",
":",
"margin_diff",
"=",
"torch",
".",
"clamp",
"(",
"(",
"pos_samples",
"-",
"neg_samples",
")",
"+",
"margin",
",",
"min",
"=",
"0",
",",
"max"... | pos_samples: Distance between positive pair
neg_samples: Distance between negative pair
margin: minimum desired margin between pos and neg samples
has_sample: Indicates if the sample should be used to calcuate the loss | [
"pos_samples",
":",
"Distance",
"between",
"positive",
"pair",
"neg_samples",
":",
"Distance",
"between",
"negative",
"pair",
"margin",
":",
"minimum",
"desired",
"margin",
"between",
"pos",
"and",
"neg",
"samples",
"has_sample",
":",
"Indicates",
"if",
"the",
"... | [
"\"\"\" pos_samples: Distance between positive pair\n neg_samples: Distance between negative pair\n margin: minimum desired margin between pos and neg samples\n has_sample: Indicates if the sample should be used to calcuate the loss\n \"\"\""
] | [
{
"param": "pos_samples",
"type": null
},
{
"param": "neg_samples",
"type": null
},
{
"param": "margin",
"type": null
},
{
"param": "has_sample",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "pos_samples",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "neg_samples",
"type": null,
"docstring": null,
"docstr... |
3fed67b59563e8fb059fb89d4aaeb986f8e0c3d8 | Fed03/fashion-compatibility | tripletnet.py | [
"BSD-3-Clause"
] | Python | accuracy | <not_specific> | def accuracy(pos_samples, neg_samples):
""" pos_samples: Distance between positive pair
neg_samples: Distance between negative pair
"""
is_cuda = pos_samples.is_cuda
margin = 0
pred = (pos_samples - neg_samples - margin).cpu().data
acc = (pred > 0).sum()*1.0/pos_samples.size()[0]
acc... | pos_samples: Distance between positive pair
neg_samples: Distance between negative pair
| Distance between positive pair
neg_samples: Distance between negative pair | [
"Distance",
"between",
"positive",
"pair",
"neg_samples",
":",
"Distance",
"between",
"negative",
"pair"
] | def accuracy(pos_samples, neg_samples):
is_cuda = pos_samples.is_cuda
margin = 0
pred = (pos_samples - neg_samples - margin).cpu().data
acc = (pred > 0).sum()*1.0/pos_samples.size()[0]
acc = torch.from_numpy(np.array([acc], np.float32))
if is_cuda:
acc = acc.cuda()
return Variable(ac... | [
"def",
"accuracy",
"(",
"pos_samples",
",",
"neg_samples",
")",
":",
"is_cuda",
"=",
"pos_samples",
".",
"is_cuda",
"margin",
"=",
"0",
"pred",
"=",
"(",
"pos_samples",
"-",
"neg_samples",
"-",
"margin",
")",
".",
"cpu",
"(",
")",
".",
"data",
"acc",
"... | pos_samples: Distance between positive pair
neg_samples: Distance between negative pair | [
"pos_samples",
":",
"Distance",
"between",
"positive",
"pair",
"neg_samples",
":",
"Distance",
"between",
"negative",
"pair"
] | [
"\"\"\" pos_samples: Distance between positive pair\n neg_samples: Distance between negative pair\n \"\"\""
] | [
{
"param": "pos_samples",
"type": null
},
{
"param": "neg_samples",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "pos_samples",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "neg_samples",
"type": null,
"docstring": null,
"docstr... |
3fed67b59563e8fb059fb89d4aaeb986f8e0c3d8 | Fed03/fashion-compatibility | tripletnet.py | [
"BSD-3-Clause"
] | Python | calc_vse_loss | <not_specific> | def calc_vse_loss(self, desc_x, general_x, general_y, general_z, has_text):
""" Both y and z are assumed to be negatives because they are not from the same
item as x
desc_x: Anchor language embedding
general_x: Anchor visual embedding
general_y: Visual embedding... | Both y and z are assumed to be negatives because they are not from the same
item as x
desc_x: Anchor language embedding
general_x: Anchor visual embedding
general_y: Visual embedding from another item from input triplet
general_z: Visual embedding from anot... | Both y and z are assumed to be negatives because they are not from the same
item as x
Anchor language embedding
general_x: Anchor visual embedding
general_y: Visual embedding from another item from input triplet
general_z: Visual embedding from another item from input triplet
has_text: Binary indicator of whether x ha... | [
"Both",
"y",
"and",
"z",
"are",
"assumed",
"to",
"be",
"negatives",
"because",
"they",
"are",
"not",
"from",
"the",
"same",
"item",
"as",
"x",
"Anchor",
"language",
"embedding",
"general_x",
":",
"Anchor",
"visual",
"embedding",
"general_y",
":",
"Visual",
... | def calc_vse_loss(self, desc_x, general_x, general_y, general_z, has_text):
distd1_p = F.pairwise_distance(general_x, desc_x, 2)
distd1_n1 = F.pairwise_distance(general_y, desc_x, 2)
distd1_n2 = F.pairwise_distance(general_z, desc_x, 2)
loss_vse_1 = selective_margin_loss(distd1_p, distd1... | [
"def",
"calc_vse_loss",
"(",
"self",
",",
"desc_x",
",",
"general_x",
",",
"general_y",
",",
"general_z",
",",
"has_text",
")",
":",
"distd1_p",
"=",
"F",
".",
"pairwise_distance",
"(",
"general_x",
",",
"desc_x",
",",
"2",
")",
"distd1_n1",
"=",
"F",
".... | Both y and z are assumed to be negatives because they are not from the same
item as x | [
"Both",
"y",
"and",
"z",
"are",
"assumed",
"to",
"be",
"negatives",
"because",
"they",
"are",
"not",
"from",
"the",
"same",
"item",
"as",
"x"
] | [
"\"\"\" Both y and z are assumed to be negatives because they are not from the same \n item as x\n\n desc_x: Anchor language embedding\n general_x: Anchor visual embedding\n general_y: Visual embedding from another item from input triplet\n general_z: Visual em... | [
{
"param": "self",
"type": null
},
{
"param": "desc_x",
"type": null
},
{
"param": "general_x",
"type": null
},
{
"param": "general_y",
"type": null
},
{
"param": "general_z",
"type": null
},
{
"param": "has_text",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "desc_x",
"type": null,
"docstring": null,
"docstring_tokens":... |
041b2701592046eeb4774f288665d1d0720355a3 | Fed03/fashion-compatibility | type_specific_network.py | [
"BSD-3-Clause"
] | Python | forward | <not_specific> | def forward(self, x, c = None):
""" x: input image data
c: type specific embedding to compute for the images, returns all embeddings
when None including the general embedding concatenated onto the end
"""
embedded_x = self.embeddingnet(x)
if c is None:
... | x: input image data
c: type specific embedding to compute for the images, returns all embeddings
when None including the general embedding concatenated onto the end
| input image data
c: type specific embedding to compute for the images, returns all embeddings
when None including the general embedding concatenated onto the end | [
"input",
"image",
"data",
"c",
":",
"type",
"specific",
"embedding",
"to",
"compute",
"for",
"the",
"images",
"returns",
"all",
"embeddings",
"when",
"None",
"including",
"the",
"general",
"embedding",
"concatenated",
"onto",
"the",
"end"
] | def forward(self, x, c = None):
embedded_x = self.embeddingnet(x)
if c is None:
if self.fc_masks:
masked_embedding = []
for mask in self.masks:
masked_embedding.append(mask(embedded_x).unsqueeze(1))
masked_embedding = torch.... | [
"def",
"forward",
"(",
"self",
",",
"x",
",",
"c",
"=",
"None",
")",
":",
"embedded_x",
"=",
"self",
".",
"embeddingnet",
"(",
"x",
")",
"if",
"c",
"is",
"None",
":",
"if",
"self",
".",
"fc_masks",
":",
"masked_embedding",
"=",
"[",
"]",
"for",
"... | x: input image data
c: type specific embedding to compute for the images, returns all embeddings
when None including the general embedding concatenated onto the end | [
"x",
":",
"input",
"image",
"data",
"c",
":",
"type",
"specific",
"embedding",
"to",
"compute",
"for",
"the",
"images",
"returns",
"all",
"embeddings",
"when",
"None",
"including",
"the",
"general",
"embedding",
"concatenated",
"onto",
"the",
"end"
] | [
"\"\"\" x: input image data\n c: type specific embedding to compute for the images, returns all embeddings\n when None including the general embedding concatenated onto the end\n \"\"\"",
"# used during testing, wants all type specific embeddings returned for an image"
] | [
{
"param": "self",
"type": null
},
{
"param": "x",
"type": null
},
{
"param": "c",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "x",
"type": null,
"docstring": null,
"docstring_tokens": [],
... |
4fd8a990c90d2a4b8f8ee3128c4856c21b21e4d2 | awwong1/topic-traceability | load_and_preprocess.py | [
"MIT"
] | Python | parse_and_load_course_branch_item | null | def parse_and_load_course_branch_item(course_data_path, conn, course_zip_name):
"""take all of the course branch item content and create vocabulary
"""
content_path = os.path.join(course_data_path, "course_branch_item_content")
course_slug = course_zip_name.replace("_", "-")
sql_select_course_id = ... | take all of the course branch item content and create vocabulary
| take all of the course branch item content and create vocabulary | [
"take",
"all",
"of",
"the",
"course",
"branch",
"item",
"content",
"and",
"create",
"vocabulary"
] | def parse_and_load_course_branch_item(course_data_path, conn, course_zip_name):
content_path = os.path.join(course_data_path, "course_branch_item_content")
course_slug = course_zip_name.replace("_", "-")
sql_select_course_id = (
"SELECT DISTINCT course_branch_items.course_branch_id, " +
"cou... | [
"def",
"parse_and_load_course_branch_item",
"(",
"course_data_path",
",",
"conn",
",",
"course_zip_name",
")",
":",
"content_path",
"=",
"os",
".",
"path",
".",
"join",
"(",
"course_data_path",
",",
"\"course_branch_item_content\"",
")",
"course_slug",
"=",
"course_zi... | take all of the course branch item content and create vocabulary | [
"take",
"all",
"of",
"the",
"course",
"branch",
"item",
"content",
"and",
"create",
"vocabulary"
] | [
"\"\"\"take all of the course branch item content and create vocabulary\n \"\"\"",
"# module name > lesson name > item name > to processed vocabulary (list of words)",
"# load the raw json file for branch item",
"# attempt to load the json file, otherwise continue",
"# try to get the definition value of ... | [
{
"param": "course_data_path",
"type": null
},
{
"param": "conn",
"type": null
},
{
"param": "course_zip_name",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "course_data_path",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "conn",
"type": null,
"docstring": null,
"docstrin... |
1a7558d6751187249c6a2c0eeaa8d3940fa76f5f | m3rik/nn | CNTK/GeneralizedHoughTransform/generalized_ht.py | [
"Apache-2.0"
] | Python | gradient_orientation | <not_specific> | def gradient_orientation(image):
'''
Calculate the gradient orientation for edge point in the image
'''
dx = sobel(image, axis=0, mode='constant')
dy = sobel(image, axis=1, mode='constant')
gradient = np.arctan2(dy,dx) * 180 / np.pi
return gradient |
Calculate the gradient orientation for edge point in the image
| Calculate the gradient orientation for edge point in the image | [
"Calculate",
"the",
"gradient",
"orientation",
"for",
"edge",
"point",
"in",
"the",
"image"
] | def gradient_orientation(image):
dx = sobel(image, axis=0, mode='constant')
dy = sobel(image, axis=1, mode='constant')
gradient = np.arctan2(dy,dx) * 180 / np.pi
return gradient | [
"def",
"gradient_orientation",
"(",
"image",
")",
":",
"dx",
"=",
"sobel",
"(",
"image",
",",
"axis",
"=",
"0",
",",
"mode",
"=",
"'constant'",
")",
"dy",
"=",
"sobel",
"(",
"image",
",",
"axis",
"=",
"1",
",",
"mode",
"=",
"'constant'",
")",
"grad... | Calculate the gradient orientation for edge point in the image | [
"Calculate",
"the",
"gradient",
"orientation",
"for",
"edge",
"point",
"in",
"the",
"image"
] | [
"'''\n Calculate the gradient orientation for edge point in the image\n '''"
] | [
{
"param": "image",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "image",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
1a7558d6751187249c6a2c0eeaa8d3940fa76f5f | m3rik/nn | CNTK/GeneralizedHoughTransform/generalized_ht.py | [
"Apache-2.0"
] | Python | build_r_table | <not_specific> | def build_r_table(image, origin):
'''
Build the R-table from the given shape image and a reference point
'''
edges = canny(image, low_threshold=MIN_CANNY_THRESHOLD,
high_threshold=MAX_CANNY_THRESHOLD)
gradient = gradient_orientation(edges)
r_table = defaultdict(list)
for (... |
Build the R-table from the given shape image and a reference point
| Build the R-table from the given shape image and a reference point | [
"Build",
"the",
"R",
"-",
"table",
"from",
"the",
"given",
"shape",
"image",
"and",
"a",
"reference",
"point"
] | def build_r_table(image, origin):
edges = canny(image, low_threshold=MIN_CANNY_THRESHOLD,
high_threshold=MAX_CANNY_THRESHOLD)
gradient = gradient_orientation(edges)
r_table = defaultdict(list)
for (i,j),value in np.ndenumerate(edges):
if value:
r_table[gradient[i,j]... | [
"def",
"build_r_table",
"(",
"image",
",",
"origin",
")",
":",
"edges",
"=",
"canny",
"(",
"image",
",",
"low_threshold",
"=",
"MIN_CANNY_THRESHOLD",
",",
"high_threshold",
"=",
"MAX_CANNY_THRESHOLD",
")",
"gradient",
"=",
"gradient_orientation",
"(",
"edges",
"... | Build the R-table from the given shape image and a reference point | [
"Build",
"the",
"R",
"-",
"table",
"from",
"the",
"given",
"shape",
"image",
"and",
"a",
"reference",
"point"
] | [
"'''\n Build the R-table from the given shape image and a reference point\n '''"
] | [
{
"param": "image",
"type": null
},
{
"param": "origin",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "image",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "origin",
"type": null,
"docstring": null,
"docstring_tokens"... |
1a7558d6751187249c6a2c0eeaa8d3940fa76f5f | m3rik/nn | CNTK/GeneralizedHoughTransform/generalized_ht.py | [
"Apache-2.0"
] | Python | accumulate_gradients | <not_specific> | def accumulate_gradients(r_table, grayImage):
'''
Perform a General Hough Transform with the given image and R-table
'''
edges = canny(grayImage, low_threshold=MIN_CANNY_THRESHOLD,
high_threshold=MAX_CANNY_THRESHOLD)
plt.matshow(edges)
plt.show()
gradient = gradient_orie... |
Perform a General Hough Transform with the given image and R-table
| Perform a General Hough Transform with the given image and R-table | [
"Perform",
"a",
"General",
"Hough",
"Transform",
"with",
"the",
"given",
"image",
"and",
"R",
"-",
"table"
] | def accumulate_gradients(r_table, grayImage):
edges = canny(grayImage, low_threshold=MIN_CANNY_THRESHOLD,
high_threshold=MAX_CANNY_THRESHOLD)
plt.matshow(edges)
plt.show()
gradient = gradient_orientation(edges)
accumulator = np.zeros(grayImage.shape)
for (i,j),value in np.ndenu... | [
"def",
"accumulate_gradients",
"(",
"r_table",
",",
"grayImage",
")",
":",
"edges",
"=",
"canny",
"(",
"grayImage",
",",
"low_threshold",
"=",
"MIN_CANNY_THRESHOLD",
",",
"high_threshold",
"=",
"MAX_CANNY_THRESHOLD",
")",
"plt",
".",
"matshow",
"(",
"edges",
")"... | Perform a General Hough Transform with the given image and R-table | [
"Perform",
"a",
"General",
"Hough",
"Transform",
"with",
"the",
"given",
"image",
"and",
"R",
"-",
"table"
] | [
"'''\n Perform a General Hough Transform with the given image and R-table\n '''"
] | [
{
"param": "r_table",
"type": null
},
{
"param": "grayImage",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "r_table",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "grayImage",
"type": null,
"docstring": null,
"docstring_to... |
1a7558d6751187249c6a2c0eeaa8d3940fa76f5f | m3rik/nn | CNTK/GeneralizedHoughTransform/generalized_ht.py | [
"Apache-2.0"
] | Python | general_hough_closure | <not_specific> | def general_hough_closure(reference_image):
'''
Generator function to create a closure with the reference image and origin
at the center of the reference image
Returns a function f, which takes a query image and returns the accumulator
'''
referencePoint = (reference_image.shape[0]/2, reference... |
Generator function to create a closure with the reference image and origin
at the center of the reference image
Returns a function f, which takes a query image and returns the accumulator
| Generator function to create a closure with the reference image and origin
at the center of the reference image
Returns a function f, which takes a query image and returns the accumulator | [
"Generator",
"function",
"to",
"create",
"a",
"closure",
"with",
"the",
"reference",
"image",
"and",
"origin",
"at",
"the",
"center",
"of",
"the",
"reference",
"image",
"Returns",
"a",
"function",
"f",
"which",
"takes",
"a",
"query",
"image",
"and",
"returns... | def general_hough_closure(reference_image):
referencePoint = (reference_image.shape[0]/2, reference_image.shape[1]/2)
r_table = build_r_table(reference_image, referencePoint)
def f(query_image):
return accumulate_gradients(r_table, query_image)
return f | [
"def",
"general_hough_closure",
"(",
"reference_image",
")",
":",
"referencePoint",
"=",
"(",
"reference_image",
".",
"shape",
"[",
"0",
"]",
"/",
"2",
",",
"reference_image",
".",
"shape",
"[",
"1",
"]",
"/",
"2",
")",
"r_table",
"=",
"build_r_table",
"("... | Generator function to create a closure with the reference image and origin
at the center of the reference image | [
"Generator",
"function",
"to",
"create",
"a",
"closure",
"with",
"the",
"reference",
"image",
"and",
"origin",
"at",
"the",
"center",
"of",
"the",
"reference",
"image"
] | [
"'''\n Generator function to create a closure with the reference image and origin\n at the center of the reference image\n\n Returns a function f, which takes a query image and returns the accumulator\n '''"
] | [
{
"param": "reference_image",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "reference_image",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
1a7558d6751187249c6a2c0eeaa8d3940fa76f5f | m3rik/nn | CNTK/GeneralizedHoughTransform/generalized_ht.py | [
"Apache-2.0"
] | Python | n_max | <not_specific> | def n_max(a, n):
'''
Return the N max elements and indices in a
'''
indices = a.ravel().argsort()[-n:]
indices = (np.unravel_index(i, a.shape) for i in indices)
return [(a[i], i) for i in indices] |
Return the N max elements and indices in a
| Return the N max elements and indices in a | [
"Return",
"the",
"N",
"max",
"elements",
"and",
"indices",
"in",
"a"
] | def n_max(a, n):
indices = a.ravel().argsort()[-n:]
indices = (np.unravel_index(i, a.shape) for i in indices)
return [(a[i], i) for i in indices] | [
"def",
"n_max",
"(",
"a",
",",
"n",
")",
":",
"indices",
"=",
"a",
".",
"ravel",
"(",
")",
".",
"argsort",
"(",
")",
"[",
"-",
"n",
":",
"]",
"indices",
"=",
"(",
"np",
".",
"unravel_index",
"(",
"i",
",",
"a",
".",
"shape",
")",
"for",
"i"... | Return the N max elements and indices in a | [
"Return",
"the",
"N",
"max",
"elements",
"and",
"indices",
"in",
"a"
] | [
"'''\n Return the N max elements and indices in a\n '''"
] | [
{
"param": "a",
"type": null
},
{
"param": "n",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "a",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "n",
"type": null,
"docstring": null,
"docstring_tokens": [],
... |
1a7558d6751187249c6a2c0eeaa8d3940fa76f5f | m3rik/nn | CNTK/GeneralizedHoughTransform/generalized_ht.py | [
"Apache-2.0"
] | Python | general_hough | <not_specific> | def general_hough(gh, reference_image, query):
'''
Uses a GH closure to detect shapes in an image and create nice output
'''
query_image = imread(query, flatten=True)
query_image = imresize(query_image, 0.25)
accumulator = gh(query_image)
plt.clf()
plt.gray()
fig = plt.figure()
... |
Uses a GH closure to detect shapes in an image and create nice output
| Uses a GH closure to detect shapes in an image and create nice output | [
"Uses",
"a",
"GH",
"closure",
"to",
"detect",
"shapes",
"in",
"an",
"image",
"and",
"create",
"nice",
"output"
] | def general_hough(gh, reference_image, query):
query_image = imread(query, flatten=True)
query_image = imresize(query_image, 0.25)
accumulator = gh(query_image)
plt.clf()
plt.gray()
fig = plt.figure()
fig.add_subplot(2,2,1)
plt.title('Reference image')
plt.imshow(reference_image)
... | [
"def",
"general_hough",
"(",
"gh",
",",
"reference_image",
",",
"query",
")",
":",
"query_image",
"=",
"imread",
"(",
"query",
",",
"flatten",
"=",
"True",
")",
"query_image",
"=",
"imresize",
"(",
"query_image",
",",
"0.25",
")",
"accumulator",
"=",
"gh",... | Uses a GH closure to detect shapes in an image and create nice output | [
"Uses",
"a",
"GH",
"closure",
"to",
"detect",
"shapes",
"in",
"an",
"image",
"and",
"create",
"nice",
"output"
] | [
"'''\n Uses a GH closure to detect shapes in an image and create nice output\n '''",
"# top 5 results in red",
"# top result in yellow"
] | [
{
"param": "gh",
"type": null
},
{
"param": "reference_image",
"type": null
},
{
"param": "query",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "gh",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "reference_image",
"type": null,
"docstring": null,
"docstring_t... |
3a50520aa87fc3cbcc18a0cb97e0a4822d59a8b1 | francisod/Ising-spin-model | spin.py | [
"MIT"
] | Python | parse_data | <not_specific> | def parse_data(lines):
"""
Seperates and organizes raw data extracted from data file.
Args:
lines: list of system data from get_data function.
Returns:
node_qty: an integer denoting quantity of nodes in the system.
weights: list of tuples of nodes, edges and respective weights fo... |
Seperates and organizes raw data extracted from data file.
Args:
lines: list of system data from get_data function.
Returns:
node_qty: an integer denoting quantity of nodes in the system.
weights: list of tuples of nodes, edges and respective weights for the system.
| Seperates and organizes raw data extracted from data file. | [
"Seperates",
"and",
"organizes",
"raw",
"data",
"extracted",
"from",
"data",
"file",
"."
] | def parse_data(lines):
weights = []
for l in lines:
if l[0] == str('c'):
continue
elif l[0] == str('p'):
p = l.split(' ')
node_qty = int(p[2])
else:
weights.append(tuple(map(int, l.split())))
return (node_qty, weights) | [
"def",
"parse_data",
"(",
"lines",
")",
":",
"weights",
"=",
"[",
"]",
"for",
"l",
"in",
"lines",
":",
"if",
"l",
"[",
"0",
"]",
"==",
"str",
"(",
"'c'",
")",
":",
"continue",
"elif",
"l",
"[",
"0",
"]",
"==",
"str",
"(",
"'p'",
")",
":",
"... | Seperates and organizes raw data extracted from data file. | [
"Seperates",
"and",
"organizes",
"raw",
"data",
"extracted",
"from",
"data",
"file",
"."
] | [
"\"\"\"\n Seperates and organizes raw data extracted from data file.\n Args:\n lines: list of system data from get_data function.\n Returns:\n node_qty: an integer denoting quantity of nodes in the system.\n weights: list of tuples of nodes, edges and respective weights for the system.... | [
{
"param": "lines",
"type": null
}
] | {
"returns": [
{
"docstring": "an integer denoting quantity of nodes in the system.\nweights: list of tuples of nodes, edges and respective weights for the system.",
"docstring_tokens": [
"an",
"integer",
"denoting",
"quantity",
"of",
"nodes",
"i... |
3a50520aa87fc3cbcc18a0cb97e0a4822d59a8b1 | francisod/Ising-spin-model | spin.py | [
"MIT"
] | Python | update | null | def update(model, nodes, node_qty, T=1.0):
"""
Updates state of system by randomly switching spin based on current energy of system.
Args:
model: an instance of a Model object.
nodes: a dictionary of node objects.
node_qty: an integer, quantity of nodes within model.
T: a flo... |
Updates state of system by randomly switching spin based on current energy of system.
Args:
model: an instance of a Model object.
nodes: a dictionary of node objects.
node_qty: an integer, quantity of nodes within model.
T: a float, non zero temperature for the Boltzmann distrib... | Updates state of system by randomly switching spin based on current energy of system. | [
"Updates",
"state",
"of",
"system",
"by",
"randomly",
"switching",
"spin",
"based",
"on",
"current",
"energy",
"of",
"system",
"."
] | def update(model, nodes, node_qty, T=1.0):
for i in range(node_qty):
n = random.randint(0, node_qty-1)
E = nodes[n].getE(nodes)
if E > 0:
nodes[n].switchSpin()
elif E <= 0 and random.random() < math.exp(2*E/T):
nodes[n].switchSpin() | [
"def",
"update",
"(",
"model",
",",
"nodes",
",",
"node_qty",
",",
"T",
"=",
"1.0",
")",
":",
"for",
"i",
"in",
"range",
"(",
"node_qty",
")",
":",
"n",
"=",
"random",
".",
"randint",
"(",
"0",
",",
"node_qty",
"-",
"1",
")",
"E",
"=",
"nodes",... | Updates state of system by randomly switching spin based on current energy of system. | [
"Updates",
"state",
"of",
"system",
"by",
"randomly",
"switching",
"spin",
"based",
"on",
"current",
"energy",
"of",
"system",
"."
] | [
"\"\"\"\n Updates state of system by randomly switching spin based on current energy of system.\n Args:\n model: an instance of a Model object.\n nodes: a dictionary of node objects.\n node_qty: an integer, quantity of nodes within model.\n T: a float, non zero temperature for the ... | [
{
"param": "model",
"type": null
},
{
"param": "nodes",
"type": null
},
{
"param": "node_qty",
"type": null
},
{
"param": "T",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "model",
"type": null,
"docstring": "an instance of a Model object.",
"docstring_tokens": [
"an",
"instance",
"of",
"a",
"Model",
"object",
"."
],
"default": n... |
3a50520aa87fc3cbcc18a0cb97e0a4822d59a8b1 | francisod/Ising-spin-model | spin.py | [
"MIT"
] | Python | modelE | <not_specific> | def modelE(model, nodes, node_qty, I, T):
"""
Seeks to calculate the energy of the system after a user determined number (I) updates to the model.
Args:
model: an instance of a Model object.
nodes: a dictionary of node objects.
node_qty: an integer, quantity of nodes within model... |
Seeks to calculate the energy of the system after a user determined number (I) updates to the model.
Args:
model: an instance of a Model object.
nodes: a dictionary of node objects.
node_qty: an integer, quantity of nodes within model.
I: an integer, user input dictating num... | Seeks to calculate the energy of the system after a user determined number (I) updates to the model. | [
"Seeks",
"to",
"calculate",
"the",
"energy",
"of",
"the",
"system",
"after",
"a",
"user",
"determined",
"number",
"(",
"I",
")",
"updates",
"to",
"the",
"model",
"."
] | def modelE(model, nodes, node_qty, I, T):
mE = 0
for i in range(I):
update(model, nodes, node_qty, T)
for w in model.getJs():
mE += nodes[w[0]].getSpin() * nodes[w[1]].getSpin() * w[2]
for w in model.geths():
mE += nodes[w[0]].getSpin() * w[1]
return -mE | [
"def",
"modelE",
"(",
"model",
",",
"nodes",
",",
"node_qty",
",",
"I",
",",
"T",
")",
":",
"mE",
"=",
"0",
"for",
"i",
"in",
"range",
"(",
"I",
")",
":",
"update",
"(",
"model",
",",
"nodes",
",",
"node_qty",
",",
"T",
")",
"for",
"w",
"in",... | Seeks to calculate the energy of the system after a user determined number (I) updates to the model. | [
"Seeks",
"to",
"calculate",
"the",
"energy",
"of",
"the",
"system",
"after",
"a",
"user",
"determined",
"number",
"(",
"I",
")",
"updates",
"to",
"the",
"model",
"."
] | [
"\"\"\" \n Seeks to calculate the energy of the system after a user determined number (I) updates to the model.\n Args:\n model: an instance of a Model object.\n nodes: a dictionary of node objects.\n node_qty: an integer, quantity of nodes within model.\n I: an integer, user in... | [
{
"param": "model",
"type": null
},
{
"param": "nodes",
"type": null
},
{
"param": "node_qty",
"type": null
},
{
"param": "I",
"type": null
},
{
"param": "T",
"type": null
}
] | {
"returns": [
{
"docstring": "an integer indicating energy of the system according to the Hamiltonian specifed in the Test Introduction.",
"docstring_tokens": [
"an",
"integer",
"indicating",
"energy",
"of",
"the",
"system",
"according",... |
3a50520aa87fc3cbcc18a0cb97e0a4822d59a8b1 | francisod/Ising-spin-model | spin.py | [
"MIT"
] | Python | modelSpin | <not_specific> | def modelSpin(model, nodes):
"""
Determines and reports spin state of nodes.
Args:
model: an instance of a Model object.
nodes: a dictionary of node objects.
Returns:
state: a list of node spins for the model, either -1 or +1.
"""
state = []
for e in nodes:
st... |
Determines and reports spin state of nodes.
Args:
model: an instance of a Model object.
nodes: a dictionary of node objects.
Returns:
state: a list of node spins for the model, either -1 or +1.
| Determines and reports spin state of nodes. | [
"Determines",
"and",
"reports",
"spin",
"state",
"of",
"nodes",
"."
] | def modelSpin(model, nodes):
state = []
for e in nodes:
state.append(nodes[e].getSpin())
state = ['+' if x > 0 else '-' for x in state]
return state | [
"def",
"modelSpin",
"(",
"model",
",",
"nodes",
")",
":",
"state",
"=",
"[",
"]",
"for",
"e",
"in",
"nodes",
":",
"state",
".",
"append",
"(",
"nodes",
"[",
"e",
"]",
".",
"getSpin",
"(",
")",
")",
"state",
"=",
"[",
"'+'",
"if",
"x",
">",
"0... | Determines and reports spin state of nodes. | [
"Determines",
"and",
"reports",
"spin",
"state",
"of",
"nodes",
"."
] | [
"\"\"\"\n Determines and reports spin state of nodes.\n Args:\n model: an instance of a Model object.\n nodes: a dictionary of node objects.\n Returns:\n state: a list of node spins for the model, either -1 or +1.\n \"\"\""
] | [
{
"param": "model",
"type": null
},
{
"param": "nodes",
"type": null
}
] | {
"returns": [
{
"docstring": "a list of node spins for the model, either -1 or +1.",
"docstring_tokens": [
"a",
"list",
"of",
"node",
"spins",
"for",
"the",
"model",
"either",
"-",
"1",
"or",
"+",
... |
3a50520aa87fc3cbcc18a0cb97e0a4822d59a8b1 | francisod/Ising-spin-model | spin.py | [
"MIT"
] | Python | main | null | def main():
"""
Requests input from the user, invokes data retrieval and parsing, invokes and saves an instance of a Model and the respective system Nodes.
Prints formated output of modelE and modelSpin functions.
"""
filename = str(input('Reminder: your data file must be in the same folder as your ... |
Requests input from the user, invokes data retrieval and parsing, invokes and saves an instance of a Model and the respective system Nodes.
Prints formated output of modelE and modelSpin functions.
| Requests input from the user, invokes data retrieval and parsing, invokes and saves an instance of a Model and the respective system Nodes.
Prints formated output of modelE and modelSpin functions. | [
"Requests",
"input",
"from",
"the",
"user",
"invokes",
"data",
"retrieval",
"and",
"parsing",
"invokes",
"and",
"saves",
"an",
"instance",
"of",
"a",
"Model",
"and",
"the",
"respective",
"system",
"Nodes",
".",
"Prints",
"formated",
"output",
"of",
"modelE",
... | def main():
filename = str(input('Reminder: your data file must be in the same folder as your program file.\n\nPlease enter the filename (data.txt): ') or 'data.txt')
I = int(input('Number of steps (10)? ') or '10')
T = float(input('Temperature, a float greater than zero (1.0): ') or '1')
node_qty, weig... | [
"def",
"main",
"(",
")",
":",
"filename",
"=",
"str",
"(",
"input",
"(",
"'Reminder: your data file must be in the same folder as your program file.\\n\\nPlease enter the filename (data.txt): '",
")",
"or",
"'data.txt'",
")",
"I",
"=",
"int",
"(",
"input",
"(",
"'Number o... | Requests input from the user, invokes data retrieval and parsing, invokes and saves an instance of a Model and the respective system Nodes. | [
"Requests",
"input",
"from",
"the",
"user",
"invokes",
"data",
"retrieval",
"and",
"parsing",
"invokes",
"and",
"saves",
"an",
"instance",
"of",
"a",
"Model",
"and",
"the",
"respective",
"system",
"Nodes",
"."
] | [
"\"\"\"\n Requests input from the user, invokes data retrieval and parsing, invokes and saves an instance of a Model and the respective system Nodes.\n Prints formated output of modelE and modelSpin functions.\n \"\"\""
] | [] | {
"returns": [],
"raises": [],
"params": [],
"outlier_params": [],
"others": []
} |
e436e2e9c9cc628cfb3a5ec5f703cf5c9af94000 | ibaris/pyroSAR | pyroSAR/ancillary.py | [
"MIT"
] | Python | groupby | <not_specific> | def groupby(images, attribute):
"""
group a list of images by a metadata attribute
Parameters
----------
images: list of str
the names of the images to be sorted
attribute: str
the name of the attribute used for sorting;
see :func:`parse_datasetname` for options
... |
group a list of images by a metadata attribute
Parameters
----------
images: list of str
the names of the images to be sorted
attribute: str
the name of the attribute used for sorting;
see :func:`parse_datasetname` for options
Returns
-------
list of li... | group a list of images by a metadata attribute
Parameters
list of str
the names of the images to be sorted
attribute: str
the name of the attribute used for sorting;
see :func:`parse_datasetname` for options
Returns
list of lists
a list containing a list with image names ofr each group | [
"group",
"a",
"list",
"of",
"images",
"by",
"a",
"metadata",
"attribute",
"Parameters",
"list",
"of",
"str",
"the",
"names",
"of",
"the",
"images",
"to",
"be",
"sorted",
"attribute",
":",
"str",
"the",
"name",
"of",
"the",
"attribute",
"used",
"for",
"so... | def groupby(images, attribute):
images_sort = sorted(images, key=lambda x: re.search(product_pattern, x).group(attribute))
out_meta = [[parse_datasetname(images_sort.pop(0))]]
while len(images_sort) > 0:
filename = images_sort.pop(0)
meta = parse_datasetname(filename)
if out_meta[-1]... | [
"def",
"groupby",
"(",
"images",
",",
"attribute",
")",
":",
"images_sort",
"=",
"sorted",
"(",
"images",
",",
"key",
"=",
"lambda",
"x",
":",
"re",
".",
"search",
"(",
"product_pattern",
",",
"x",
")",
".",
"group",
"(",
"attribute",
")",
")",
"out_... | group a list of images by a metadata attribute
Parameters | [
"group",
"a",
"list",
"of",
"images",
"by",
"a",
"metadata",
"attribute",
"Parameters"
] | [
"\"\"\"\n group a list of images by a metadata attribute\n \n Parameters\n ----------\n images: list of str\n the names of the images to be sorted\n attribute: str\n the name of the attribute used for sorting;\n see :func:`parse_datasetname` for options\n \n Returns\n ... | [
{
"param": "images",
"type": null
},
{
"param": "attribute",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "images",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "attribute",
"type": null,
"docstring": null,
"docstring_tok... |
e436e2e9c9cc628cfb3a5ec5f703cf5c9af94000 | ibaris/pyroSAR | pyroSAR/ancillary.py | [
"MIT"
] | Python | groupbyTime | <not_specific> | def groupbyTime(images, function, time):
"""
function to group images by their acquisition time difference
Parameters
----------
images: list of str
a list of image names
function: function
a function to derive the time from the image names; see e.g. :func:`seconds`
time: in... |
function to group images by their acquisition time difference
Parameters
----------
images: list of str
a list of image names
function: function
a function to derive the time from the image names; see e.g. :func:`seconds`
time: int or float
a time difference in seconds ... | function to group images by their acquisition time difference
Parameters
list of str
a list of image names
function: function
a function to derive the time from the image names; see e.g. :func:`seconds`
time: int or float
a time difference in seconds by which to group the images
Returns
list
a list of sub-lists cont... | [
"function",
"to",
"group",
"images",
"by",
"their",
"acquisition",
"time",
"difference",
"Parameters",
"list",
"of",
"str",
"a",
"list",
"of",
"image",
"names",
"function",
":",
"function",
"a",
"function",
"to",
"derive",
"the",
"time",
"from",
"the",
"imag... | def groupbyTime(images, function, time):
srcfiles = sorted(images, key=function)
groups = [[srcfiles[0]]]
group = groups[0]
for i in range(1, len(srcfiles)):
item = srcfiles[i]
if 0 < abs(function(item) - function(group[-1])) <= time:
group.append(item)
else:
... | [
"def",
"groupbyTime",
"(",
"images",
",",
"function",
",",
"time",
")",
":",
"srcfiles",
"=",
"sorted",
"(",
"images",
",",
"key",
"=",
"function",
")",
"groups",
"=",
"[",
"[",
"srcfiles",
"[",
"0",
"]",
"]",
"]",
"group",
"=",
"groups",
"[",
"0",... | function to group images by their acquisition time difference
Parameters | [
"function",
"to",
"group",
"images",
"by",
"their",
"acquisition",
"time",
"difference",
"Parameters"
] | [
"\"\"\"\n function to group images by their acquisition time difference\n\n Parameters\n ----------\n images: list of str\n a list of image names\n function: function\n a function to derive the time from the image names; see e.g. :func:`seconds`\n time: int or float\n a time d... | [
{
"param": "images",
"type": null
},
{
"param": "function",
"type": null
},
{
"param": "time",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "images",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "function",
"type": null,
"docstring": null,
"docstring_toke... |
e436e2e9c9cc628cfb3a5ec5f703cf5c9af94000 | ibaris/pyroSAR | pyroSAR/ancillary.py | [
"MIT"
] | Python | seconds | <not_specific> | def seconds(filename):
"""
function to extract time in seconds from a file name.
the format must follow a fixed pattern: YYYYmmddTHHMMSS
Images processed with pyroSAR functionalities via module snap or gamma will contain this information.
Parameters
----------
filename: str
the name... |
function to extract time in seconds from a file name.
the format must follow a fixed pattern: YYYYmmddTHHMMSS
Images processed with pyroSAR functionalities via module snap or gamma will contain this information.
Parameters
----------
filename: str
the name of a file from which to extra... | function to extract time in seconds from a file name.
the format must follow a fixed pattern: YYYYmmddTHHMMSS
Images processed with pyroSAR functionalities via module snap or gamma will contain this information.
Parameters
str
the name of a file from which to extract the time from
Returns
float
the difference betwe... | [
"function",
"to",
"extract",
"time",
"in",
"seconds",
"from",
"a",
"file",
"name",
".",
"the",
"format",
"must",
"follow",
"a",
"fixed",
"pattern",
":",
"YYYYmmddTHHMMSS",
"Images",
"processed",
"with",
"pyroSAR",
"functionalities",
"via",
"module",
"snap",
"o... | def seconds(filename):
td = datetime.strptime(re.findall('[0-9T]{15}', filename)[0], '%Y%m%dT%H%M%S') - datetime(1900, 1, 1)
return td.total_seconds() | [
"def",
"seconds",
"(",
"filename",
")",
":",
"td",
"=",
"datetime",
".",
"strptime",
"(",
"re",
".",
"findall",
"(",
"'[0-9T]{15}'",
",",
"filename",
")",
"[",
"0",
"]",
",",
"'%Y%m%dT%H%M%S'",
")",
"-",
"datetime",
"(",
"1900",
",",
"1",
",",
"1",
... | function to extract time in seconds from a file name. | [
"function",
"to",
"extract",
"time",
"in",
"seconds",
"from",
"a",
"file",
"name",
"."
] | [
"\"\"\"\n function to extract time in seconds from a file name.\n the format must follow a fixed pattern: YYYYmmddTHHMMSS\n Images processed with pyroSAR functionalities via module snap or gamma will contain this information.\n\n Parameters\n ----------\n filename: str\n the name of a file ... | [
{
"param": "filename",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "filename",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
e436e2e9c9cc628cfb3a5ec5f703cf5c9af94000 | ibaris/pyroSAR | pyroSAR/ancillary.py | [
"MIT"
] | Python | parse_datasetname | <not_specific> | def parse_datasetname(name, parse_date=False):
"""
Parse the name of a pyroSAR processing product and extract its metadata components as dictionary
Parameters
----------
name: str
the name of the file to be parsed
parse_date: bool
parse the start date to a :class:`~datetime.... |
Parse the name of a pyroSAR processing product and extract its metadata components as dictionary
Parameters
----------
name: str
the name of the file to be parsed
parse_date: bool
parse the start date to a :class:`~datetime.datetime` object or just return the string?
R... | Parse the name of a pyroSAR processing product and extract its metadata components as dictionary
Parameters
Returns
dict
the metadata attributes
Examples
| [
"Parse",
"the",
"name",
"of",
"a",
"pyroSAR",
"processing",
"product",
"and",
"extract",
"its",
"metadata",
"components",
"as",
"dictionary",
"Parameters",
"Returns",
"dict",
"the",
"metadata",
"attributes",
"Examples"
] | def parse_datasetname(name, parse_date=False):
filename = os.path.realpath(name)
match = re.match(re.compile(product_pattern), filename)
if not match:
return
out = match.groupdict()
if out['extensions'] == '':
out['extensions'] = None
if len(out['proc_steps']) > 0:
out['p... | [
"def",
"parse_datasetname",
"(",
"name",
",",
"parse_date",
"=",
"False",
")",
":",
"filename",
"=",
"os",
".",
"path",
".",
"realpath",
"(",
"name",
")",
"match",
"=",
"re",
".",
"match",
"(",
"re",
".",
"compile",
"(",
"product_pattern",
")",
",",
... | Parse the name of a pyroSAR processing product and extract its metadata components as dictionary
Parameters | [
"Parse",
"the",
"name",
"of",
"a",
"pyroSAR",
"processing",
"product",
"and",
"extract",
"its",
"metadata",
"components",
"as",
"dictionary",
"Parameters"
] | [
"\"\"\"\n Parse the name of a pyroSAR processing product and extract its metadata components as dictionary\n \n Parameters\n ----------\n name: str\n the name of the file to be parsed\n parse_date: bool\n parse the start date to a :class:`~datetime.datetime` object or just return the... | [
{
"param": "name",
"type": null
},
{
"param": "parse_date",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "name",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "parse_date",
"type": null,
"docstring": null,
"docstring_toke... |
e436e2e9c9cc628cfb3a5ec5f703cf5c9af94000 | ibaris/pyroSAR | pyroSAR/ancillary.py | [
"MIT"
] | Python | find_datasets | <not_specific> | def find_datasets(directory, recursive=False, **kwargs):
"""
find pyroSAR datasets in a directory based on their metadata
Parameters
----------
directory: str
the name of the directory to be searched
recursive: bool
search the directory recursively into subdirectories?
k... |
find pyroSAR datasets in a directory based on their metadata
Parameters
----------
directory: str
the name of the directory to be searched
recursive: bool
search the directory recursively into subdirectories?
kwargs:
Metadata attributes for filtering the scene list ... | find pyroSAR datasets in a directory based on their metadata
Parameters
str
the name of the directory to be searched
recursive: bool
search the directory recursively into subdirectories.
kwargs:
Metadata attributes for filtering the scene list supplied as `key=value`.
Returns
list of str
the file names found in the ... | [
"find",
"pyroSAR",
"datasets",
"in",
"a",
"directory",
"based",
"on",
"their",
"metadata",
"Parameters",
"str",
"the",
"name",
"of",
"the",
"directory",
"to",
"be",
"searched",
"recursive",
":",
"bool",
"search",
"the",
"directory",
"recursively",
"into",
"sub... | def find_datasets(directory, recursive=False, **kwargs):
files = finder(directory, [product_pattern], regex=True, recursive=recursive)
selection = []
for file in files:
meta = parse_datasetname(file)
match = True
for key, val in kwargs.items():
if isinstance(val, tuple):
... | [
"def",
"find_datasets",
"(",
"directory",
",",
"recursive",
"=",
"False",
",",
"**",
"kwargs",
")",
":",
"files",
"=",
"finder",
"(",
"directory",
",",
"[",
"product_pattern",
"]",
",",
"regex",
"=",
"True",
",",
"recursive",
"=",
"recursive",
")",
"sele... | find pyroSAR datasets in a directory based on their metadata
Parameters | [
"find",
"pyroSAR",
"datasets",
"in",
"a",
"directory",
"based",
"on",
"their",
"metadata",
"Parameters"
] | [
"\"\"\"\n find pyroSAR datasets in a directory based on their metadata\n \n Parameters\n ----------\n directory: str\n the name of the directory to be searched\n recursive: bool\n search the directory recursively into subdirectories?\n kwargs:\n Metadata attributes for filt... | [
{
"param": "directory",
"type": null
},
{
"param": "recursive",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "directory",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "recursive",
"type": null,
"docstring": null,
"docstring_... |
1e257dee356939b4ac124979080f034c6e821c75 | ibaris/pyroSAR | pyroSAR/gamma/parser.py | [
"MIT"
] | Python | parse_command | <not_specific> | def parse_command(command):
"""
Parse the help text of a Gamma command to a Python function including a docstring.
The docstring is in rst format and can thu be parsed by e.g. sphinx.
This function is not intended to be used by itself, but rather within function :func:`parse_module`.
Parameters
... |
Parse the help text of a Gamma command to a Python function including a docstring.
The docstring is in rst format and can thu be parsed by e.g. sphinx.
This function is not intended to be used by itself, but rather within function :func:`parse_module`.
Parameters
----------
command: str
... | Parse the help text of a Gamma command to a Python function including a docstring.
The docstring is in rst format and can thu be parsed by e.g. sphinx.
This function is not intended to be used by itself, but rather within function :func:`parse_module`.
Parameters
str
the name of the gamma command
Returns
str
the fu... | [
"Parse",
"the",
"help",
"text",
"of",
"a",
"Gamma",
"command",
"to",
"a",
"Python",
"function",
"including",
"a",
"docstring",
".",
"The",
"docstring",
"is",
"in",
"rst",
"format",
"and",
"can",
"thu",
"be",
"parsed",
"by",
"e",
".",
"g",
".",
"sphinx"... | def parse_command(command):
command = which(command)
proc = sp.Popen(command, stdin=sp.PIPE, stdout=sp.PIPE, stderr=sp.PIPE, universal_newlines=True)
out, err = proc.communicate()
out += err
header = '\n'.join([x.strip('* ') for x in re.findall('[*]{3}.*[*]{3}', out)])
header = '| ' + header.rep... | [
"def",
"parse_command",
"(",
"command",
")",
":",
"command",
"=",
"which",
"(",
"command",
")",
"proc",
"=",
"sp",
".",
"Popen",
"(",
"command",
",",
"stdin",
"=",
"sp",
".",
"PIPE",
",",
"stdout",
"=",
"sp",
".",
"PIPE",
",",
"stderr",
"=",
"sp",
... | Parse the help text of a Gamma command to a Python function including a docstring. | [
"Parse",
"the",
"help",
"text",
"of",
"a",
"Gamma",
"command",
"to",
"a",
"Python",
"function",
"including",
"a",
"docstring",
"."
] | [
"\"\"\"\n Parse the help text of a Gamma command to a Python function including a docstring.\n The docstring is in rst format and can thu be parsed by e.g. sphinx.\n This function is not intended to be used by itself, but rather within function :func:`parse_module`.\n\n Parameters\n ----------\n c... | [
{
"param": "command",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "command",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
1e257dee356939b4ac124979080f034c6e821c75 | ibaris/pyroSAR | pyroSAR/gamma/parser.py | [
"MIT"
] | Python | parse_module | null | def parse_module(bindir, outfile):
"""
parse all Gamma commands of a module to functions and save them to a Python script.
Parameters
----------
bindir: str
the `bin` directory of a module containing the commands
outfile: str
the name of the Python file to write
Returns
... |
parse all Gamma commands of a module to functions and save them to a Python script.
Parameters
----------
bindir: str
the `bin` directory of a module containing the commands
outfile: str
the name of the Python file to write
Returns
-------
Examples
--------
... | parse all Gamma commands of a module to functions and save them to a Python script.
Parameters
str
the `bin` directory of a module containing the commands
outfile: str
the name of the Python file to write
Returns
Examples
| [
"parse",
"all",
"Gamma",
"commands",
"of",
"a",
"module",
"to",
"functions",
"and",
"save",
"them",
"to",
"a",
"Python",
"script",
".",
"Parameters",
"str",
"the",
"`",
"bin",
"`",
"directory",
"of",
"a",
"module",
"containing",
"the",
"commands",
"outfile... | def parse_module(bindir, outfile):
excludes = ['coord_trans', 'mosaic', 'lin_comb', 'lin_comb_cpx', 'validate']
failed = []
outstring = 'from pyroSAR.gamma.auxil import process\n\n\n'
for cmd in sorted(finder(bindir, ['*']), key=lambda s: s.lower()):
basename = os.path.basename(cmd)
if b... | [
"def",
"parse_module",
"(",
"bindir",
",",
"outfile",
")",
":",
"excludes",
"=",
"[",
"'coord_trans'",
",",
"'mosaic'",
",",
"'lin_comb'",
",",
"'lin_comb_cpx'",
",",
"'validate'",
"]",
"failed",
"=",
"[",
"]",
"outstring",
"=",
"'from pyroSAR.gamma.auxil import... | parse all Gamma commands of a module to functions and save them to a Python script. | [
"parse",
"all",
"Gamma",
"commands",
"of",
"a",
"module",
"to",
"functions",
"and",
"save",
"them",
"to",
"a",
"Python",
"script",
"."
] | [
"\"\"\"\n parse all Gamma commands of a module to functions and save them to a Python script.\n\n Parameters\n ----------\n bindir: str\n the `bin` directory of a module containing the commands\n outfile: str\n the name of the Python file to write\n\n Returns\n -------\n \n ... | [
{
"param": "bindir",
"type": null
},
{
"param": "outfile",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "bindir",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "outfile",
"type": null,
"docstring": null,
"docstring_token... |
1e257dee356939b4ac124979080f034c6e821c75 | ibaris/pyroSAR | pyroSAR/gamma/parser.py | [
"MIT"
] | Python | autoparse | null | def autoparse():
"""
automatic parsing of Gamma commands.
This function will detect the Gamma installation via environment variable `GAMMA_HOME`, detect all available
modules (e.g. ISP, DIFF) and parse all of the module's commands via function :func:`parse_module`.
A new Python module will be create... |
automatic parsing of Gamma commands.
This function will detect the Gamma installation via environment variable `GAMMA_HOME`, detect all available
modules (e.g. ISP, DIFF) and parse all of the module's commands via function :func:`parse_module`.
A new Python module will be created called `gammaparse`, w... | automatic parsing of Gamma commands.
This function will detect the Gamma installation via environment variable `GAMMA_HOME`, detect all available
modules and parse all of the module's commands via function :func:`parse_module`.
A new Python module will be created called `gammaparse`, which is stored under `$HOME/.pyro... | [
"automatic",
"parsing",
"of",
"Gamma",
"commands",
".",
"This",
"function",
"will",
"detect",
"the",
"Gamma",
"installation",
"via",
"environment",
"variable",
"`",
"GAMMA_HOME",
"`",
"detect",
"all",
"available",
"modules",
"and",
"parse",
"all",
"of",
"the",
... | def autoparse():
home = ExamineGamma().home
target = os.path.join(os.path.expanduser('~'), '.pyrosar', 'gammaparse')
if not os.path.isdir(target):
os.makedirs(target)
for module in finder(home, ['[A-Z]*'], foldermode=2):
outfile = os.path.join(target, os.path.basename(module).lower() + '... | [
"def",
"autoparse",
"(",
")",
":",
"home",
"=",
"ExamineGamma",
"(",
")",
".",
"home",
"target",
"=",
"os",
".",
"path",
".",
"join",
"(",
"os",
".",
"path",
".",
"expanduser",
"(",
"'~'",
")",
",",
"'.pyrosar'",
",",
"'gammaparse'",
")",
"if",
"no... | automatic parsing of Gamma commands. | [
"automatic",
"parsing",
"of",
"Gamma",
"commands",
"."
] | [
"\"\"\"\n automatic parsing of Gamma commands.\n This function will detect the Gamma installation via environment variable `GAMMA_HOME`, detect all available\n modules (e.g. ISP, DIFF) and parse all of the module's commands via function :func:`parse_module`.\n A new Python module will be created called ... | [] | {
"returns": [],
"raises": [],
"params": [],
"outlier_params": [],
"others": []
} |
d7b9d870d36f195789f237d080927030a88a8caf | ibaris/pyroSAR | pyroSAR/S1/auxil.py | [
"MIT"
] | Python | init_parser | <not_specific> | def init_parser():
"""
initialize argument parser for S1 processing utilities
"""
parser = argparse.ArgumentParser()
parser.add_argument('-t', '--transform', action='store_true', help='transform the final DEM to UTM coordinates')
parser.add_argument('-l', '--logfiles', action='store_true', help=... |
initialize argument parser for S1 processing utilities
| initialize argument parser for S1 processing utilities | [
"initialize",
"argument",
"parser",
"for",
"S1",
"processing",
"utilities"
] | def init_parser():
parser = argparse.ArgumentParser()
parser.add_argument('-t', '--transform', action='store_true', help='transform the final DEM to UTM coordinates')
parser.add_argument('-l', '--logfiles', action='store_true', help='create logfiles of the executed GAMMA commands')
parser.add_argument('... | [
"def",
"init_parser",
"(",
")",
":",
"parser",
"=",
"argparse",
".",
"ArgumentParser",
"(",
")",
"parser",
".",
"add_argument",
"(",
"'-t'",
",",
"'--transform'",
",",
"action",
"=",
"'store_true'",
",",
"help",
"=",
"'transform the final DEM to UTM coordinates'",... | initialize argument parser for S1 processing utilities | [
"initialize",
"argument",
"parser",
"for",
"S1",
"processing",
"utilities"
] | [
"\"\"\"\n initialize argument parser for S1 processing utilities\n \"\"\""
] | [] | {
"returns": [],
"raises": [],
"params": [],
"outlier_params": [],
"others": []
} |
d7b9d870d36f195789f237d080927030a88a8caf | ibaris/pyroSAR | pyroSAR/S1/auxil.py | [
"MIT"
] | Python | _init_dir | null | def _init_dir(self):
"""
create directories if they don't exist yet
"""
for dir in [self.outdir_poe, self.outdir_res]:
if not os.path.isdir(dir):
os.makedirs(dir) |
create directories if they don't exist yet
| create directories if they don't exist yet | [
"create",
"directories",
"if",
"they",
"don",
"'",
"t",
"exist",
"yet"
] | def _init_dir(self):
for dir in [self.outdir_poe, self.outdir_res]:
if not os.path.isdir(dir):
os.makedirs(dir) | [
"def",
"_init_dir",
"(",
"self",
")",
":",
"for",
"dir",
"in",
"[",
"self",
".",
"outdir_poe",
",",
"self",
".",
"outdir_res",
"]",
":",
"if",
"not",
"os",
".",
"path",
".",
"isdir",
"(",
"dir",
")",
":",
"os",
".",
"makedirs",
"(",
"dir",
")"
] | create directories if they don't exist yet | [
"create",
"directories",
"if",
"they",
"don",
"'",
"t",
"exist",
"yet"
] | [
"\"\"\"\n create directories if they don't exist yet\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
d7b9d870d36f195789f237d080927030a88a8caf | ibaris/pyroSAR | pyroSAR/S1/auxil.py | [
"MIT"
] | Python | _typeEvaluate | <not_specific> | def _typeEvaluate(self, osvtype):
"""
evaluate the 'osvtype' method argument and return the corresponding remote repository and local directory
Parameters
----------
osvtype: str
the type of orbit files required; either 'POE' or 'RES'
Returns
-------... |
evaluate the 'osvtype' method argument and return the corresponding remote repository and local directory
Parameters
----------
osvtype: str
the type of orbit files required; either 'POE' or 'RES'
Returns
-------
tuple of str
the remote ... | evaluate the 'osvtype' method argument and return the corresponding remote repository and local directory
Parameters
str
the type of orbit files required; either 'POE' or 'RES'
Returns
tuple of str
the remote repository and local directory of the osv type | [
"evaluate",
"the",
"'",
"osvtype",
"'",
"method",
"argument",
"and",
"return",
"the",
"corresponding",
"remote",
"repository",
"and",
"local",
"directory",
"Parameters",
"str",
"the",
"type",
"of",
"orbit",
"files",
"required",
";",
"either",
"'",
"POE",
"'",
... | def _typeEvaluate(self, osvtype):
if osvtype not in ['POE', 'RES']:
raise IOError('type must be either "POE" or "RES"')
if osvtype == 'POE':
return self.remote_poe, self.outdir_poe
else:
return self.remote_res, self.outdir_res | [
"def",
"_typeEvaluate",
"(",
"self",
",",
"osvtype",
")",
":",
"if",
"osvtype",
"not",
"in",
"[",
"'POE'",
",",
"'RES'",
"]",
":",
"raise",
"IOError",
"(",
"'type must be either \"POE\" or \"RES\"'",
")",
"if",
"osvtype",
"==",
"'POE'",
":",
"return",
"self"... | evaluate the 'osvtype' method argument and return the corresponding remote repository and local directory
Parameters | [
"evaluate",
"the",
"'",
"osvtype",
"'",
"method",
"argument",
"and",
"return",
"the",
"corresponding",
"remote",
"repository",
"and",
"local",
"directory",
"Parameters"
] | [
"\"\"\"\n evaluate the 'osvtype' method argument and return the corresponding remote repository and local directory\n\n Parameters\n ----------\n osvtype: str\n the type of orbit files required; either 'POE' or 'RES'\n\n Returns\n -------\n tuple of str\n ... | [
{
"param": "self",
"type": null
},
{
"param": "osvtype",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "osvtype",
"type": null,
"docstring": null,
"docstring_tokens"... |
d7b9d870d36f195789f237d080927030a88a8caf | ibaris/pyroSAR | pyroSAR/S1/auxil.py | [
"MIT"
] | Python | date | <not_specific> | def date(self, file, datetype):
"""
extract a date from an OSV file name
Parameters
----------
datetype: {'publish', 'start', 'stop'}
one of three possible date types contained in the OSV filename
Returns
-------
str
a time stamp ... |
extract a date from an OSV file name
Parameters
----------
datetype: {'publish', 'start', 'stop'}
one of three possible date types contained in the OSV filename
Returns
-------
str
a time stamp in the format YYYYmmddTHHMMSS
| extract a date from an OSV file name
Parameters
Returns
str
a time stamp in the format YYYYmmddTHHMMSS | [
"extract",
"a",
"date",
"from",
"an",
"OSV",
"file",
"name",
"Parameters",
"Returns",
"str",
"a",
"time",
"stamp",
"in",
"the",
"format",
"YYYYmmddTHHMMSS"
] | def date(self, file, datetype):
return re.match(self.pattern_fine, os.path.basename(file)).group(datetype) | [
"def",
"date",
"(",
"self",
",",
"file",
",",
"datetype",
")",
":",
"return",
"re",
".",
"match",
"(",
"self",
".",
"pattern_fine",
",",
"os",
".",
"path",
".",
"basename",
"(",
"file",
")",
")",
".",
"group",
"(",
"datetype",
")"
] | extract a date from an OSV file name
Parameters | [
"extract",
"a",
"date",
"from",
"an",
"OSV",
"file",
"name",
"Parameters"
] | [
"\"\"\"\n extract a date from an OSV file name\n\n Parameters\n ----------\n datetype: {'publish', 'start', 'stop'}\n one of three possible date types contained in the OSV filename\n\n Returns\n -------\n str\n a time stamp in the format YYYYmmd... | [
{
"param": "self",
"type": null
},
{
"param": "file",
"type": null
},
{
"param": "datetype",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "file",
"type": null,
"docstring": null,
"docstring_tokens": [... |
d7b9d870d36f195789f237d080927030a88a8caf | ibaris/pyroSAR | pyroSAR/S1/auxil.py | [
"MIT"
] | Python | clean_res | null | def clean_res(self):
"""
delete all RES files for whose date a POE file exists
"""
maxdate_poe = self.maxdate('POE', 'stop')
deprecated = [x for x in self.getLocals('RES') if self.date(x, 'stop') < maxdate_poe]
print('deleting {0} RES files'.format(len(deprecated)))
... |
delete all RES files for whose date a POE file exists
| delete all RES files for whose date a POE file exists | [
"delete",
"all",
"RES",
"files",
"for",
"whose",
"date",
"a",
"POE",
"file",
"exists"
] | def clean_res(self):
maxdate_poe = self.maxdate('POE', 'stop')
deprecated = [x for x in self.getLocals('RES') if self.date(x, 'stop') < maxdate_poe]
print('deleting {0} RES files'.format(len(deprecated)))
for item in deprecated:
os.remove(item) | [
"def",
"clean_res",
"(",
"self",
")",
":",
"maxdate_poe",
"=",
"self",
".",
"maxdate",
"(",
"'POE'",
",",
"'stop'",
")",
"deprecated",
"=",
"[",
"x",
"for",
"x",
"in",
"self",
".",
"getLocals",
"(",
"'RES'",
")",
"if",
"self",
".",
"date",
"(",
"x"... | delete all RES files for whose date a POE file exists | [
"delete",
"all",
"RES",
"files",
"for",
"whose",
"date",
"a",
"POE",
"file",
"exists"
] | [
"\"\"\"\n delete all RES files for whose date a POE file exists\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
d7b9d870d36f195789f237d080927030a88a8caf | ibaris/pyroSAR | pyroSAR/S1/auxil.py | [
"MIT"
] | Python | maxdate | <not_specific> | def maxdate(self, osvtype='POE', datetype='stop'):
"""
return the latest date of locally existing POE/RES files
Parameters
----------
osvtype: {'POE', 'RES'}
the type of orbit files required
datetype: {'publish', 'start', 'stop'}
one of three poss... |
return the latest date of locally existing POE/RES files
Parameters
----------
osvtype: {'POE', 'RES'}
the type of orbit files required
datetype: {'publish', 'start', 'stop'}
one of three possible date types contained in the OSV filename
Returns... | return the latest date of locally existing POE/RES files
Parameters
Returns
str
a timestamp in format YYYYmmddTHHMMSS | [
"return",
"the",
"latest",
"date",
"of",
"locally",
"existing",
"POE",
"/",
"RES",
"files",
"Parameters",
"Returns",
"str",
"a",
"timestamp",
"in",
"format",
"YYYYmmddTHHMMSS"
] | def maxdate(self, osvtype='POE', datetype='stop'):
address, directory = self._typeEvaluate(osvtype)
files = finder(directory, [self.pattern], regex=True)
return max([self.date(x, datetype) for x in files]) if len(files) > 0 else None | [
"def",
"maxdate",
"(",
"self",
",",
"osvtype",
"=",
"'POE'",
",",
"datetype",
"=",
"'stop'",
")",
":",
"address",
",",
"directory",
"=",
"self",
".",
"_typeEvaluate",
"(",
"osvtype",
")",
"files",
"=",
"finder",
"(",
"directory",
",",
"[",
"self",
".",... | return the latest date of locally existing POE/RES files
Parameters | [
"return",
"the",
"latest",
"date",
"of",
"locally",
"existing",
"POE",
"/",
"RES",
"files",
"Parameters"
] | [
"\"\"\"\n return the latest date of locally existing POE/RES files\n\n Parameters\n ----------\n osvtype: {'POE', 'RES'}\n the type of orbit files required\n datetype: {'publish', 'start', 'stop'}\n one of three possible date types contained in the OSV filena... | [
{
"param": "self",
"type": null
},
{
"param": "osvtype",
"type": null
},
{
"param": "datetype",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "osvtype",
"type": null,
"docstring": null,
"docstring_tokens"... |
d7b9d870d36f195789f237d080927030a88a8caf | ibaris/pyroSAR | pyroSAR/S1/auxil.py | [
"MIT"
] | Python | mindate | <not_specific> | def mindate(self, osvtype='POE', datetype='start'):
"""
return the earliest date of locally existing POE/RES files
Parameters
----------
osvtype: {'POE', 'RES'}
the type of orbit files required
datetype: {'publish', 'start', 'stop'}
one of three p... |
return the earliest date of locally existing POE/RES files
Parameters
----------
osvtype: {'POE', 'RES'}
the type of orbit files required
datetype: {'publish', 'start', 'stop'}
one of three possible date types contained in the OSV filename
Retur... | return the earliest date of locally existing POE/RES files
Parameters
Returns
str
a timestamp in format YYYYmmddTHHMMSS | [
"return",
"the",
"earliest",
"date",
"of",
"locally",
"existing",
"POE",
"/",
"RES",
"files",
"Parameters",
"Returns",
"str",
"a",
"timestamp",
"in",
"format",
"YYYYmmddTHHMMSS"
] | def mindate(self, osvtype='POE', datetype='start'):
address, directory = self._typeEvaluate(osvtype)
files = finder(directory, [self.pattern], regex=True)
return min([self.date(x, datetype) for x in files]) if len(files) > 0 else None | [
"def",
"mindate",
"(",
"self",
",",
"osvtype",
"=",
"'POE'",
",",
"datetype",
"=",
"'start'",
")",
":",
"address",
",",
"directory",
"=",
"self",
".",
"_typeEvaluate",
"(",
"osvtype",
")",
"files",
"=",
"finder",
"(",
"directory",
",",
"[",
"self",
"."... | return the earliest date of locally existing POE/RES files
Parameters | [
"return",
"the",
"earliest",
"date",
"of",
"locally",
"existing",
"POE",
"/",
"RES",
"files",
"Parameters"
] | [
"\"\"\"\n return the earliest date of locally existing POE/RES files\n\n Parameters\n ----------\n osvtype: {'POE', 'RES'}\n the type of orbit files required\n datetype: {'publish', 'start', 'stop'}\n one of three possible date types contained in the OSV file... | [
{
"param": "self",
"type": null
},
{
"param": "osvtype",
"type": null
},
{
"param": "datetype",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "osvtype",
"type": null,
"docstring": null,
"docstring_tokens"... |
d7b9d870d36f195789f237d080927030a88a8caf | ibaris/pyroSAR | pyroSAR/S1/auxil.py | [
"MIT"
] | Python | match | <not_specific> | def match(self, timestamp, osvtype='POE'):
"""
return the corresponding OSV file for the provided time stamp.
The file returned is one which covers the acquisition time and, if multiple exist,
the one which was published last.
In case a list of options is provided as osvtype, the... |
return the corresponding OSV file for the provided time stamp.
The file returned is one which covers the acquisition time and, if multiple exist,
the one which was published last.
In case a list of options is provided as osvtype, the file of higher accuracy (i.e. POE over RES) is return... | return the corresponding OSV file for the provided time stamp.
The file returned is one which covers the acquisition time and, if multiple exist,
the one which was published last.
In case a list of options is provided as osvtype, the file of higher accuracy is returned.
Parameters
Returns
str
the best matching or... | [
"return",
"the",
"corresponding",
"OSV",
"file",
"for",
"the",
"provided",
"time",
"stamp",
".",
"The",
"file",
"returned",
"is",
"one",
"which",
"covers",
"the",
"acquisition",
"time",
"and",
"if",
"multiple",
"exist",
"the",
"one",
"which",
"was",
"publish... | def match(self, timestamp, osvtype='POE'):
if osvtype in ['POE', 'RES']:
locals = self.getLocals(osvtype)
files = [x for x in locals if self.date(x, 'start') <= timestamp <= self.date(x, 'stop')]
if len(files) > 0:
best = self.sortByDate(files, 'publish')[-1]
... | [
"def",
"match",
"(",
"self",
",",
"timestamp",
",",
"osvtype",
"=",
"'POE'",
")",
":",
"if",
"osvtype",
"in",
"[",
"'POE'",
",",
"'RES'",
"]",
":",
"locals",
"=",
"self",
".",
"getLocals",
"(",
"osvtype",
")",
"files",
"=",
"[",
"x",
"for",
"x",
... | return the corresponding OSV file for the provided time stamp. | [
"return",
"the",
"corresponding",
"OSV",
"file",
"for",
"the",
"provided",
"time",
"stamp",
"."
] | [
"\"\"\"\n return the corresponding OSV file for the provided time stamp.\n The file returned is one which covers the acquisition time and, if multiple exist,\n the one which was published last.\n In case a list of options is provided as osvtype, the file of higher accuracy (i.e. POE over... | [
{
"param": "self",
"type": null
},
{
"param": "timestamp",
"type": null
},
{
"param": "osvtype",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "timestamp",
"type": null,
"docstring": null,
"docstring_token... |
d7b9d870d36f195789f237d080927030a88a8caf | ibaris/pyroSAR | pyroSAR/S1/auxil.py | [
"MIT"
] | Python | retrieve | null | def retrieve(self, files):
"""
download a list of remote files into the respective subdirectories, i.e. POEORB or RESORB
Parameters
----------
files: list
a list of remotely existing OSV files as returned by method :meth:`catch`
Returns
-------
... |
download a list of remote files into the respective subdirectories, i.e. POEORB or RESORB
Parameters
----------
files: list
a list of remotely existing OSV files as returned by method :meth:`catch`
Returns
-------
| download a list of remote files into the respective subdirectories, i.e. POEORB or RESORB
Parameters
list
a list of remotely existing OSV files as returned by method :meth:`catch`
Returns | [
"download",
"a",
"list",
"of",
"remote",
"files",
"into",
"the",
"respective",
"subdirectories",
"i",
".",
"e",
".",
"POEORB",
"or",
"RESORB",
"Parameters",
"list",
"a",
"list",
"of",
"remotely",
"existing",
"OSV",
"files",
"as",
"returned",
"by",
"method",
... | def retrieve(self, files):
self._init_dir()
for type in ['POE', 'RES']:
address, outdir = self._typeEvaluate(type)
downloads = [x for x in files
if re.search('{}ORB'.format(type), x) and
not os.path.isfile(os.path.join(outdir, os.... | [
"def",
"retrieve",
"(",
"self",
",",
"files",
")",
":",
"self",
".",
"_init_dir",
"(",
")",
"for",
"type",
"in",
"[",
"'POE'",
",",
"'RES'",
"]",
":",
"address",
",",
"outdir",
"=",
"self",
".",
"_typeEvaluate",
"(",
"type",
")",
"downloads",
"=",
... | download a list of remote files into the respective subdirectories, i.e. | [
"download",
"a",
"list",
"of",
"remote",
"files",
"into",
"the",
"respective",
"subdirectories",
"i",
".",
"e",
"."
] | [
"\"\"\"\n download a list of remote files into the respective subdirectories, i.e. POEORB or RESORB\n\n Parameters\n ----------\n files: list\n a list of remotely existing OSV files as returned by method :meth:`catch`\n\n Returns\n -------\n \"\"\""
] | [
{
"param": "self",
"type": null
},
{
"param": "files",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "files",
"type": null,
"docstring": null,
"docstring_tokens": ... |
d7b9d870d36f195789f237d080927030a88a8caf | ibaris/pyroSAR | pyroSAR/S1/auxil.py | [
"MIT"
] | Python | sortByDate | <not_specific> | def sortByDate(self, files, datetype='start'):
"""
sort a list of OSV files by a specific date type
Parameters
----------
files: list
some OSV files
datetype: {'publish', 'start', 'stop'}
one of three possible date types contained in the OSV filen... |
sort a list of OSV files by a specific date type
Parameters
----------
files: list
some OSV files
datetype: {'publish', 'start', 'stop'}
one of three possible date types contained in the OSV filename
Returns
-------
list
... | sort a list of OSV files by a specific date type
Parameters
Returns
list
the input OSV files sorted by the defined date | [
"sort",
"a",
"list",
"of",
"OSV",
"files",
"by",
"a",
"specific",
"date",
"type",
"Parameters",
"Returns",
"list",
"the",
"input",
"OSV",
"files",
"sorted",
"by",
"the",
"defined",
"date"
] | def sortByDate(self, files, datetype='start'):
return sorted(files, key=lambda x: self.date(x, datetype)) | [
"def",
"sortByDate",
"(",
"self",
",",
"files",
",",
"datetype",
"=",
"'start'",
")",
":",
"return",
"sorted",
"(",
"files",
",",
"key",
"=",
"lambda",
"x",
":",
"self",
".",
"date",
"(",
"x",
",",
"datetype",
")",
")"
] | sort a list of OSV files by a specific date type
Parameters | [
"sort",
"a",
"list",
"of",
"OSV",
"files",
"by",
"a",
"specific",
"date",
"type",
"Parameters"
] | [
"\"\"\"\n sort a list of OSV files by a specific date type\n\n Parameters\n ----------\n files: list\n some OSV files\n datetype: {'publish', 'start', 'stop'}\n one of three possible date types contained in the OSV filename\n\n Returns\n -------... | [
{
"param": "self",
"type": null
},
{
"param": "files",
"type": null
},
{
"param": "datetype",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "files",
"type": null,
"docstring": null,
"docstring_tokens": ... |
d7b9d870d36f195789f237d080927030a88a8caf | ibaris/pyroSAR | pyroSAR/S1/auxil.py | [
"MIT"
] | Python | update | null | def update(self, update_res=True):
"""
Caution! This method is intended for downloading all available POE files and all RES files for whose
time span no POE file yet exists.
This will be a data volume of several GB and is particularly suited for multi-node SAR processing where not
... |
Caution! This method is intended for downloading all available POE files and all RES files for whose
time span no POE file yet exists.
This will be a data volume of several GB and is particularly suited for multi-node SAR processing where not
all nodes might have internet access and thu... | Caution. This method is intended for downloading all available POE files and all RES files for whose
time span no POE file yet exists.
This will be a data volume of several GB and is particularly suited for multi-node SAR processing where not
all nodes might have internet access and thus all files have to be downloaded... | [
"Caution",
".",
"This",
"method",
"is",
"intended",
"for",
"downloading",
"all",
"available",
"POE",
"files",
"and",
"all",
"RES",
"files",
"for",
"whose",
"time",
"span",
"no",
"POE",
"file",
"yet",
"exists",
".",
"This",
"will",
"be",
"a",
"data",
"vol... | def update(self, update_res=True):
self._init_dir()
try:
files_poe = self.catch('POE', start=self.maxdate('POE', 'start'))
except RuntimeError as e:
raise e
self.retrieve(files_poe)
if update_res:
print('----------------------------------------... | [
"def",
"update",
"(",
"self",
",",
"update_res",
"=",
"True",
")",
":",
"self",
".",
"_init_dir",
"(",
")",
"try",
":",
"files_poe",
"=",
"self",
".",
"catch",
"(",
"'POE'",
",",
"start",
"=",
"self",
".",
"maxdate",
"(",
"'POE'",
",",
"'start'",
"... | Caution! | [
"Caution!"
] | [
"\"\"\"\n Caution! This method is intended for downloading all available POE files and all RES files for whose\n time span no POE file yet exists.\n This will be a data volume of several GB and is particularly suited for multi-node SAR processing where not\n all nodes might have internet... | [
{
"param": "self",
"type": null
},
{
"param": "update_res",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "update_res",
"type": null,
"docstring": null,
"docstring_toke... |
caec3c56987a196abcf1ed61e0563c056985ac79 | ibaris/pyroSAR | pyroSAR/gamma/auxil.py | [
"MIT"
] | Python | envidict | <not_specific> | def envidict(self):
"""
export relevant metadata to a ENVI HDR file compliant format
Returns
-------
dict
"""
out = dict(bands=1,
header_offset=0,
file_type='ENVI Standard',
interleave='bsq',
... |
export relevant metadata to a ENVI HDR file compliant format
Returns
-------
dict
| export relevant metadata to a ENVI HDR file compliant format
Returns
dict | [
"export",
"relevant",
"metadata",
"to",
"a",
"ENVI",
"HDR",
"file",
"compliant",
"format",
"Returns",
"dict"
] | def envidict(self):
out = dict(bands=1,
header_offset=0,
file_type='ENVI Standard',
interleave='bsq',
sensor_type='Unknown',
byte_order=1,
wavelength_units='Unknown')
out['samples'] = getatt... | [
"def",
"envidict",
"(",
"self",
")",
":",
"out",
"=",
"dict",
"(",
"bands",
"=",
"1",
",",
"header_offset",
"=",
"0",
",",
"file_type",
"=",
"'ENVI Standard'",
",",
"interleave",
"=",
"'bsq'",
",",
"sensor_type",
"=",
"'Unknown'",
",",
"byte_order",
"=",... | export relevant metadata to a ENVI HDR file compliant format
Returns | [
"export",
"relevant",
"metadata",
"to",
"a",
"ENVI",
"HDR",
"file",
"compliant",
"format",
"Returns"
] | [
"\"\"\"\n export relevant metadata to a ENVI HDR file compliant format\n \n Returns\n -------\n dict\n \"\"\"",
"# projections = ['AEAC', 'EQA', 'LCC', 'LCC2', 'OMCH', 'PC', 'PS', 'SCH', 'TM', 'UTM']"
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
caec3c56987a196abcf1ed61e0563c056985ac79 | ibaris/pyroSAR | pyroSAR/gamma/auxil.py | [
"MIT"
] | Python | par2hdr | null | def par2hdr(parfile, hdrfile):
"""
Create an ENVI HDR file from a Gamma PAR file
Parameters
----------
parfile: str
the Gamma parfile
hdrfile: str
the ENVI HDR file
Returns
-------
"""
with ISPPar(parfile) as par:
hdr(par.envidict(), hdrfile) |
Create an ENVI HDR file from a Gamma PAR file
Parameters
----------
parfile: str
the Gamma parfile
hdrfile: str
the ENVI HDR file
Returns
-------
| Create an ENVI HDR file from a Gamma PAR file
Parameters
str
the Gamma parfile
hdrfile: str
the ENVI HDR file
Returns | [
"Create",
"an",
"ENVI",
"HDR",
"file",
"from",
"a",
"Gamma",
"PAR",
"file",
"Parameters",
"str",
"the",
"Gamma",
"parfile",
"hdrfile",
":",
"str",
"the",
"ENVI",
"HDR",
"file",
"Returns"
] | def par2hdr(parfile, hdrfile):
with ISPPar(parfile) as par:
hdr(par.envidict(), hdrfile) | [
"def",
"par2hdr",
"(",
"parfile",
",",
"hdrfile",
")",
":",
"with",
"ISPPar",
"(",
"parfile",
")",
"as",
"par",
":",
"hdr",
"(",
"par",
".",
"envidict",
"(",
")",
",",
"hdrfile",
")"
] | Create an ENVI HDR file from a Gamma PAR file
Parameters | [
"Create",
"an",
"ENVI",
"HDR",
"file",
"from",
"a",
"Gamma",
"PAR",
"file",
"Parameters"
] | [
"\"\"\"\n Create an ENVI HDR file from a Gamma PAR file\n \n Parameters\n ----------\n parfile: str\n the Gamma parfile\n hdrfile: str\n the ENVI HDR file\n\n Returns\n -------\n\n \"\"\""
] | [
{
"param": "parfile",
"type": null
},
{
"param": "hdrfile",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "parfile",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "hdrfile",
"type": null,
"docstring": null,
"docstring_toke... |
caec3c56987a196abcf1ed61e0563c056985ac79 | ibaris/pyroSAR | pyroSAR/gamma/auxil.py | [
"MIT"
] | Python | process | <not_specific> | def process(cmd, outdir=None, logpath=None, inlist=None, void=True):
"""
wrapper function to execute GAMMA commands via module :mod:`subprocess`
Parameters
----------
cmd: list
the command line arguments
outdir: str
the directory to execute the command in
logpath: str
... |
wrapper function to execute GAMMA commands via module :mod:`subprocess`
Parameters
----------
cmd: list
the command line arguments
outdir: str
the directory to execute the command in
logpath: str
a directory to write logfiles to; the file will be named {GAMMA comman... | wrapper function to execute GAMMA commands via module :mod:`subprocess`
Parameters
list
the command line arguments
outdir: str
the directory to execute the command in
logpath: str
a directory to write logfiles to; the file will be named {GAMMA command}.log, e.g.
Returns
tuple of str or None
the stdout and stderr mes... | [
"wrapper",
"function",
"to",
"execute",
"GAMMA",
"commands",
"via",
"module",
":",
"mod",
":",
"`",
"subprocess",
"`",
"Parameters",
"list",
"the",
"command",
"line",
"arguments",
"outdir",
":",
"str",
"the",
"directory",
"to",
"execute",
"the",
"command",
"... | def process(cmd, outdir=None, logpath=None, inlist=None, void=True):
log = os.path.join(logpath, cmd[0] + '.log') if logpath else None
out, err = run(cmd, outdir=outdir, logfile=log, inlist=inlist, void=False, errorpass=True)
gammaErrorHandler(out, err)
if not void:
return out, err | [
"def",
"process",
"(",
"cmd",
",",
"outdir",
"=",
"None",
",",
"logpath",
"=",
"None",
",",
"inlist",
"=",
"None",
",",
"void",
"=",
"True",
")",
":",
"log",
"=",
"os",
".",
"path",
".",
"join",
"(",
"logpath",
",",
"cmd",
"[",
"0",
"]",
"+",
... | wrapper function to execute GAMMA commands via module :mod:`subprocess`
Parameters | [
"wrapper",
"function",
"to",
"execute",
"GAMMA",
"commands",
"via",
"module",
":",
"mod",
":",
"`",
"subprocess",
"`",
"Parameters"
] | [
"\"\"\"\n wrapper function to execute GAMMA commands via module :mod:`subprocess`\n \n Parameters\n ----------\n cmd: list\n the command line arguments\n outdir: str\n the directory to execute the command in\n logpath: str\n a directory to write logfiles to; the file will b... | [
{
"param": "cmd",
"type": null
},
{
"param": "outdir",
"type": null
},
{
"param": "logpath",
"type": null
},
{
"param": "inlist",
"type": null
},
{
"param": "void",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "cmd",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "outdir",
"type": null,
"docstring": null,
"docstring_tokens": ... |
caec3c56987a196abcf1ed61e0563c056985ac79 | ibaris/pyroSAR | pyroSAR/gamma/auxil.py | [
"MIT"
] | Python | slc_corners | <not_specific> | def slc_corners(parfile):
"""
extract the corner coordinates of a SAR scene
Parameters
----------
parfile: str
the GAMMA parameter file to read coordinates from
Returns
-------
dict of float
a dictionary with keys xmin, xmax, ymin, ymax
"""
out, err = proces... |
extract the corner coordinates of a SAR scene
Parameters
----------
parfile: str
the GAMMA parameter file to read coordinates from
Returns
-------
dict of float
a dictionary with keys xmin, xmax, ymin, ymax
| extract the corner coordinates of a SAR scene
Parameters
str
the GAMMA parameter file to read coordinates from
Returns
dict of float
a dictionary with keys xmin, xmax, ymin, ymax | [
"extract",
"the",
"corner",
"coordinates",
"of",
"a",
"SAR",
"scene",
"Parameters",
"str",
"the",
"GAMMA",
"parameter",
"file",
"to",
"read",
"coordinates",
"from",
"Returns",
"dict",
"of",
"float",
"a",
"dictionary",
"with",
"keys",
"xmin",
"xmax",
"ymin",
... | def slc_corners(parfile):
out, err = process(['SLC_corners', parfile], void=False)
pts = {}
for line in out.split('\n'):
if line.startswith('min. latitude'):
pts['ymin'], pts['ymax'] = [float(x) for x in
re.findall('[0-9]+\.[0-9]+', line)]
... | [
"def",
"slc_corners",
"(",
"parfile",
")",
":",
"out",
",",
"err",
"=",
"process",
"(",
"[",
"'SLC_corners'",
",",
"parfile",
"]",
",",
"void",
"=",
"False",
")",
"pts",
"=",
"{",
"}",
"for",
"line",
"in",
"out",
".",
"split",
"(",
"'\\n'",
")",
... | extract the corner coordinates of a SAR scene
Parameters | [
"extract",
"the",
"corner",
"coordinates",
"of",
"a",
"SAR",
"scene",
"Parameters"
] | [
"\"\"\"\n extract the corner coordinates of a SAR scene\n \n Parameters\n ----------\n parfile: str\n the GAMMA parameter file to read coordinates from\n\n Returns\n -------\n dict of float\n a dictionary with keys xmin, xmax, ymin, ymax\n \"\"\""
] | [
{
"param": "parfile",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "parfile",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
b29c87cc475443479c313213dcfc27ca6a5c057a | ibaris/pyroSAR | pyroSAR/gamma/util.py | [
"MIT"
] | Python | correctOSV | null | def correctOSV(id, osvdir=None, logpath=None, osvType='POE'):
"""
correct GAMMA parameter files with orbit state vector information from dedicated OSV files
Parameters
----------
id: ~pyroSAR.drivers.ID
the scene to be corrected
osvdir: str
the directory of OSV files; subdir... |
correct GAMMA parameter files with orbit state vector information from dedicated OSV files
Parameters
----------
id: ~pyroSAR.drivers.ID
the scene to be corrected
osvdir: str
the directory of OSV files; subdirectories POEORB and RESORB are created automatically
logpath: str... | correct GAMMA parameter files with orbit state vector information from dedicated OSV files
Parameters
~pyroSAR.drivers.ID
the scene to be corrected
osvdir: str
the directory of OSV files; subdirectories POEORB and RESORB are created automatically
logpath: str
a path to write logfiles to
osvType: str or list
the type o... | [
"correct",
"GAMMA",
"parameter",
"files",
"with",
"orbit",
"state",
"vector",
"information",
"from",
"dedicated",
"OSV",
"files",
"Parameters",
"~pyroSAR",
".",
"drivers",
".",
"ID",
"the",
"scene",
"to",
"be",
"corrected",
"osvdir",
":",
"str",
"the",
"direct... | def correctOSV(id, osvdir=None, logpath=None, osvType='POE'):
if not isinstance(id, ID):
raise IOError('id must be of type pyroSAR.ID')
if id.sensor not in ['S1A', 'S1B']:
raise IOError('this method is currently only available for Sentinel-1. Please stay tuned...')
if not os.path.isdir(logpa... | [
"def",
"correctOSV",
"(",
"id",
",",
"osvdir",
"=",
"None",
",",
"logpath",
"=",
"None",
",",
"osvType",
"=",
"'POE'",
")",
":",
"if",
"not",
"isinstance",
"(",
"id",
",",
"ID",
")",
":",
"raise",
"IOError",
"(",
"'id must be of type pyroSAR.ID'",
")",
... | correct GAMMA parameter files with orbit state vector information from dedicated OSV files
Parameters | [
"correct",
"GAMMA",
"parameter",
"files",
"with",
"orbit",
"state",
"vector",
"information",
"from",
"dedicated",
"OSV",
"files",
"Parameters"
] | [
"\"\"\"\n correct GAMMA parameter files with orbit state vector information from dedicated OSV files\n \n Parameters\n ----------\n id: ~pyroSAR.drivers.ID\n the scene to be corrected\n osvdir: str\n the directory of OSV files; subdirectories POEORB and RESORB are created automatical... | [
{
"param": "id",
"type": null
},
{
"param": "osvdir",
"type": null
},
{
"param": "logpath",
"type": null
},
{
"param": "osvType",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "id",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "osvdir",
"type": null,
"docstring": null,
"docstring_tokens": [... |
b29c87cc475443479c313213dcfc27ca6a5c057a | ibaris/pyroSAR | pyroSAR/gamma/util.py | [
"MIT"
] | Python | ovs | <not_specific> | def ovs(parfile, targetres):
"""
compute DEM oversampling factors for a target resolution in meters
Parameters
----------
parfile: str
a GAMMA DEM parameter file
targetres: int or float
the target resolution in meters
Returns
-------
tuple of float
the o... |
compute DEM oversampling factors for a target resolution in meters
Parameters
----------
parfile: str
a GAMMA DEM parameter file
targetres: int or float
the target resolution in meters
Returns
-------
tuple of float
the oversampling factors for latitude and... | compute DEM oversampling factors for a target resolution in meters
Parameters
str
a GAMMA DEM parameter file
targetres: int or float
the target resolution in meters
Returns
tuple of float
the oversampling factors for latitude and longitude | [
"compute",
"DEM",
"oversampling",
"factors",
"for",
"a",
"target",
"resolution",
"in",
"meters",
"Parameters",
"str",
"a",
"GAMMA",
"DEM",
"parameter",
"file",
"targetres",
":",
"int",
"or",
"float",
"the",
"target",
"resolution",
"in",
"meters",
"Returns",
"t... | def ovs(parfile, targetres):
dempar = ISPPar(parfile)
if hasattr(dempar, 'post_north'):
post_north, post_east = [abs(float(x)) for x in
[dempar.post_north, dempar.post_east]]
else:
res_lat, res_lon = [abs(float(x)) for x in [dempar.post_lat, dempar.post_lon]]... | [
"def",
"ovs",
"(",
"parfile",
",",
"targetres",
")",
":",
"dempar",
"=",
"ISPPar",
"(",
"parfile",
")",
"if",
"hasattr",
"(",
"dempar",
",",
"'post_north'",
")",
":",
"post_north",
",",
"post_east",
"=",
"[",
"abs",
"(",
"float",
"(",
"x",
")",
")",
... | compute DEM oversampling factors for a target resolution in meters
Parameters | [
"compute",
"DEM",
"oversampling",
"factors",
"for",
"a",
"target",
"resolution",
"in",
"meters",
"Parameters"
] | [
"\"\"\"\n compute DEM oversampling factors for a target resolution in meters\n\n Parameters\n ----------\n parfile: str\n a GAMMA DEM parameter file\n targetres: int or float\n the target resolution in meters\n \n Returns\n -------\n tuple of float\n the oversampling ... | [
{
"param": "parfile",
"type": null
},
{
"param": "targetres",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "parfile",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "targetres",
"type": null,
"docstring": null,
"docstring_to... |
b29c87cc475443479c313213dcfc27ca6a5c057a | ibaris/pyroSAR | pyroSAR/gamma/util.py | [
"MIT"
] | Python | multilook | null | def multilook(infile, outfile, targetres):
"""
multilooking of SLC and MLI images
if the image is in slant range the ground range resolution is computed by dividing the range pixel spacing by
the sine of the incidence angle
the looks in range and azimuth are chosen to approximate the target resolu... |
multilooking of SLC and MLI images
if the image is in slant range the ground range resolution is computed by dividing the range pixel spacing by
the sine of the incidence angle
the looks in range and azimuth are chosen to approximate the target resolution by rounding the ratio between
target reso... | multilooking of SLC and MLI images
if the image is in slant range the ground range resolution is computed by dividing the range pixel spacing by
the sine of the incidence angle
the looks in range and azimuth are chosen to approximate the target resolution by rounding the ratio between
target resolution and ground rang... | [
"multilooking",
"of",
"SLC",
"and",
"MLI",
"images",
"if",
"the",
"image",
"is",
"in",
"slant",
"range",
"the",
"ground",
"range",
"resolution",
"is",
"computed",
"by",
"dividing",
"the",
"range",
"pixel",
"spacing",
"by",
"the",
"sine",
"of",
"the",
"inci... | def multilook(infile, outfile, targetres):
par = ISPPar(infile + '.par')
if par.image_geometry == 'SLANT_RANGE':
groundRangePS = par.range_pixel_spacing / (math.sin(math.radians(par.incidence_angle)))
rlks = int(round(float(targetres) / groundRangePS))
else:
rlks = int(round(float(ta... | [
"def",
"multilook",
"(",
"infile",
",",
"outfile",
",",
"targetres",
")",
":",
"par",
"=",
"ISPPar",
"(",
"infile",
"+",
"'.par'",
")",
"if",
"par",
".",
"image_geometry",
"==",
"'SLANT_RANGE'",
":",
"groundRangePS",
"=",
"par",
".",
"range_pixel_spacing",
... | multilooking of SLC and MLI images
if the image is in slant range the ground range resolution is computed by dividing the range pixel spacing by
the sine of the incidence angle | [
"multilooking",
"of",
"SLC",
"and",
"MLI",
"images",
"if",
"the",
"image",
"is",
"in",
"slant",
"range",
"the",
"ground",
"range",
"resolution",
"is",
"computed",
"by",
"dividing",
"the",
"range",
"pixel",
"spacing",
"by",
"the",
"sine",
"of",
"the",
"inci... | [
"\"\"\"\n multilooking of SLC and MLI images\n\n if the image is in slant range the ground range resolution is computed by dividing the range pixel spacing by\n the sine of the incidence angle\n\n the looks in range and azimuth are chosen to approximate the target resolution by rounding the ratio betwee... | [
{
"param": "infile",
"type": null
},
{
"param": "outfile",
"type": null
},
{
"param": "targetres",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "infile",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "outfile",
"type": null,
"docstring": null,
"docstring_token... |
b29c87cc475443479c313213dcfc27ca6a5c057a | ibaris/pyroSAR | pyroSAR/gamma/util.py | [
"MIT"
] | Python | S1_deburst | null | def S1_deburst(burst1, burst2, burst3, name_out, rlks=5, azlks=1, replace=False, path_log=None):
"""
Debursting of Sentinel-1 SLC imagery in GAMMA.
The procedure consists of two steps. First antenna pattern deramping and
then mosaicing of the single deramped bursts.
For mosaicing, the burst boundari... |
Debursting of Sentinel-1 SLC imagery in GAMMA.
The procedure consists of two steps. First antenna pattern deramping and
then mosaicing of the single deramped bursts.
For mosaicing, the burst boundaries are calculated from the number of looks in range (`rlks`)
and azimuth (`azlks`), in this case 5 r... | Debursting of Sentinel-1 SLC imagery in GAMMA.
The procedure consists of two steps. First antenna pattern deramping and
then mosaicing of the single deramped bursts.
For mosaicing, the burst boundaries are calculated from the number of looks in range (`rlks`)
and azimuth (`azlks`), in this case 5 range looks and 1 azim... | [
"Debursting",
"of",
"Sentinel",
"-",
"1",
"SLC",
"imagery",
"in",
"GAMMA",
".",
"The",
"procedure",
"consists",
"of",
"two",
"steps",
".",
"First",
"antenna",
"pattern",
"deramping",
"and",
"then",
"mosaicing",
"of",
"the",
"single",
"deramped",
"bursts",
".... | def S1_deburst(burst1, burst2, burst3, name_out, rlks=5, azlks=1, replace=False, path_log=None):
for burst in [burst1, burst2, burst3]:
if not os.path.isfile(burst) or not os.path.isfile(burst + '.par') or not os.path.isfile(burst + '.tops_par'):
raise IOError('input files missing; parameter fil... | [
"def",
"S1_deburst",
"(",
"burst1",
",",
"burst2",
",",
"burst3",
",",
"name_out",
",",
"rlks",
"=",
"5",
",",
"azlks",
"=",
"1",
",",
"replace",
"=",
"False",
",",
"path_log",
"=",
"None",
")",
":",
"for",
"burst",
"in",
"[",
"burst1",
",",
"burst... | Debursting of Sentinel-1 SLC imagery in GAMMA. | [
"Debursting",
"of",
"Sentinel",
"-",
"1",
"SLC",
"imagery",
"in",
"GAMMA",
"."
] | [
"\"\"\"\n Debursting of Sentinel-1 SLC imagery in GAMMA.\n The procedure consists of two steps. First antenna pattern deramping and\n then mosaicing of the single deramped bursts.\n For mosaicing, the burst boundaries are calculated from the number of looks in range (`rlks`)\n and azimuth (`azlks`), ... | [
{
"param": "burst1",
"type": null
},
{
"param": "burst2",
"type": null
},
{
"param": "burst3",
"type": null
},
{
"param": "name_out",
"type": null
},
{
"param": "rlks",
"type": null
},
{
"param": "azlks",
"type": null
},
{
"param": "replace... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "burst1",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "burst2",
"type": null,
"docstring": null,
"docstring_tokens... |
989a09a83b041b1f75c98b22e68018d962171a76 | ibaris/pyroSAR | pyroSAR/gamma/srtm.py | [
"MIT"
] | Python | transform | null | def transform(infile, outfile, posting=90):
"""
transform SRTM DEM from EQA to UTM projection
"""
# read DEM parameter file
par = ISPPar(infile + '.par')
# transform corner coordinate to UTM
utm = UTM(infile + '.par')
for item in [outfile, outfile+'.par']:
if os.path.isfile(ite... |
transform SRTM DEM from EQA to UTM projection
| transform SRTM DEM from EQA to UTM projection | [
"transform",
"SRTM",
"DEM",
"from",
"EQA",
"to",
"UTM",
"projection"
] | def transform(infile, outfile, posting=90):
par = ISPPar(infile + '.par')
utm = UTM(infile + '.par')
for item in [outfile, outfile+'.par']:
if os.path.isfile(item):
os.remove(item)
falsenorthing = 10000000. if par.corner_lat < 0 else 0
inlist = ['UTM', 'WGS84', 1, utm.zone, false... | [
"def",
"transform",
"(",
"infile",
",",
"outfile",
",",
"posting",
"=",
"90",
")",
":",
"par",
"=",
"ISPPar",
"(",
"infile",
"+",
"'.par'",
")",
"utm",
"=",
"UTM",
"(",
"infile",
"+",
"'.par'",
")",
"for",
"item",
"in",
"[",
"outfile",
",",
"outfil... | transform SRTM DEM from EQA to UTM projection | [
"transform",
"SRTM",
"DEM",
"from",
"EQA",
"to",
"UTM",
"projection"
] | [
"\"\"\"\n transform SRTM DEM from EQA to UTM projection\n \"\"\"",
"# read DEM parameter file",
"# transform corner coordinate to UTM",
"# determine false northing from parameter file coordinates",
"# create new DEM parameter file with UTM projection details",
"# transform dem"
] | [
{
"param": "infile",
"type": null
},
{
"param": "outfile",
"type": null
},
{
"param": "posting",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "infile",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "outfile",
"type": null,
"docstring": null,
"docstring_token... |
989a09a83b041b1f75c98b22e68018d962171a76 | ibaris/pyroSAR | pyroSAR/gamma/srtm.py | [
"MIT"
] | Python | dempar | null | def dempar(dem, logpath=None):
"""
create GAMMA parameter text files for DEM files
currently only EQA and UTM projections with WGS84 ellipsoid are supported
"""
rast = raster.Raster(dem)
# determine data type
dtypes = {'Int16': 'INTEGER*2', 'UInt16': 'INTEGER*2', 'Float32': 'REAL*4'}
if... |
create GAMMA parameter text files for DEM files
currently only EQA and UTM projections with WGS84 ellipsoid are supported
| create GAMMA parameter text files for DEM files
currently only EQA and UTM projections with WGS84 ellipsoid are supported | [
"create",
"GAMMA",
"parameter",
"text",
"files",
"for",
"DEM",
"files",
"currently",
"only",
"EQA",
"and",
"UTM",
"projections",
"with",
"WGS84",
"ellipsoid",
"are",
"supported"
] | def dempar(dem, logpath=None):
rast = raster.Raster(dem)
dtypes = {'Int16': 'INTEGER*2', 'UInt16': 'INTEGER*2', 'Float32': 'REAL*4'}
if rast.dtype not in dtypes:
raise IOError('data type not supported')
else:
dtype = dtypes[rast.dtype]
posting = str(rast.geo['yres'])+' '+str(rast.geo... | [
"def",
"dempar",
"(",
"dem",
",",
"logpath",
"=",
"None",
")",
":",
"rast",
"=",
"raster",
".",
"Raster",
"(",
"dem",
")",
"dtypes",
"=",
"{",
"'Int16'",
":",
"'INTEGER*2'",
",",
"'UInt16'",
":",
"'INTEGER*2'",
",",
"'Float32'",
":",
"'REAL*4'",
"}",
... | create GAMMA parameter text files for DEM files
currently only EQA and UTM projections with WGS84 ellipsoid are supported | [
"create",
"GAMMA",
"parameter",
"text",
"files",
"for",
"DEM",
"files",
"currently",
"only",
"EQA",
"and",
"UTM",
"projections",
"with",
"WGS84",
"ellipsoid",
"are",
"supported"
] | [
"\"\"\"\n create GAMMA parameter text files for DEM files\n currently only EQA and UTM projections with WGS84 ellipsoid are supported\n \"\"\"",
"# determine data type",
"# format pixel posting and top left coordinate",
"# evaluate projection",
"# get ellipsoid",
"# create list for GAMMA command ... | [
{
"param": "dem",
"type": null
},
{
"param": "logpath",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "dem",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "logpath",
"type": null,
"docstring": null,
"docstring_tokens":... |
989a09a83b041b1f75c98b22e68018d962171a76 | ibaris/pyroSAR | pyroSAR/gamma/srtm.py | [
"MIT"
] | Python | swap | null | def swap(data, outname):
"""
byte swapping from small to big endian (as required by GAMMA)
"""
rast = raster.Raster(data)
dtype = rast.dtype
if rast.format != 'ENVI':
raise IOError('only ENVI format supported')
dtype_lookup = {'Int16': 2, 'CInt16': 2, 'Int32': 4, 'Float32': 4, 'CFloa... |
byte swapping from small to big endian (as required by GAMMA)
| byte swapping from small to big endian (as required by GAMMA) | [
"byte",
"swapping",
"from",
"small",
"to",
"big",
"endian",
"(",
"as",
"required",
"by",
"GAMMA",
")"
] | def swap(data, outname):
rast = raster.Raster(data)
dtype = rast.dtype
if rast.format != 'ENVI':
raise IOError('only ENVI format supported')
dtype_lookup = {'Int16': 2, 'CInt16': 2, 'Int32': 4, 'Float32': 4, 'CFloat32': 4, 'Float64': 8}
if dtype not in dtype_lookup:
raise IOError('da... | [
"def",
"swap",
"(",
"data",
",",
"outname",
")",
":",
"rast",
"=",
"raster",
".",
"Raster",
"(",
"data",
")",
"dtype",
"=",
"rast",
".",
"dtype",
"if",
"rast",
".",
"format",
"!=",
"'ENVI'",
":",
"raise",
"IOError",
"(",
"'only ENVI format supported'",
... | byte swapping from small to big endian (as required by GAMMA) | [
"byte",
"swapping",
"from",
"small",
"to",
"big",
"endian",
"(",
"as",
"required",
"by",
"GAMMA",
")"
] | [
"\"\"\"\n byte swapping from small to big endian (as required by GAMMA)\n \"\"\""
] | [
{
"param": "data",
"type": null
},
{
"param": "outname",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "data",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "outname",
"type": null,
"docstring": null,
"docstring_tokens"... |
989a09a83b041b1f75c98b22e68018d962171a76 | ibaris/pyroSAR | pyroSAR/gamma/srtm.py | [
"MIT"
] | Python | hgt | <not_specific> | def hgt(parfiles):
"""
concatenate hgt file names overlapping with multiple SAR scenes
input is a list of GAMMA SAR scene parameter files
this list is read for corner coordinates of which the next integer lower left latitude and longitude is computed
hgt files are supplied in 1 degree equiangular fo... |
concatenate hgt file names overlapping with multiple SAR scenes
input is a list of GAMMA SAR scene parameter files
this list is read for corner coordinates of which the next integer lower left latitude and longitude is computed
hgt files are supplied in 1 degree equiangular format named e.g. N16W094.hg... | concatenate hgt file names overlapping with multiple SAR scenes
input is a list of GAMMA SAR scene parameter files
this list is read for corner coordinates of which the next integer lower left latitude and longitude is computed
hgt files are supplied in 1 degree equiangular format named e.g. N16W094.hgt (with pattern [... | [
"concatenate",
"hgt",
"file",
"names",
"overlapping",
"with",
"multiple",
"SAR",
"scenes",
"input",
"is",
"a",
"list",
"of",
"GAMMA",
"SAR",
"scene",
"parameter",
"files",
"this",
"list",
"is",
"read",
"for",
"corner",
"coordinates",
"of",
"which",
"the",
"n... | def hgt(parfiles):
lat = []
lon = []
for parfile in parfiles:
if isinstance(parfile, pyroSAR.ID):
corners = parfile.getCorners()
elif parfile.endswith('.par'):
corners = slc_corners(parfile)
lat += [int(float(corners[x]) // 1) for x in ['ymin', 'ymax']]
... | [
"def",
"hgt",
"(",
"parfiles",
")",
":",
"lat",
"=",
"[",
"]",
"lon",
"=",
"[",
"]",
"for",
"parfile",
"in",
"parfiles",
":",
"if",
"isinstance",
"(",
"parfile",
",",
"pyroSAR",
".",
"ID",
")",
":",
"corners",
"=",
"parfile",
".",
"getCorners",
"("... | concatenate hgt file names overlapping with multiple SAR scenes
input is a list of GAMMA SAR scene parameter files
this list is read for corner coordinates of which the next integer lower left latitude and longitude is computed
hgt files are supplied in 1 degree equiangular format named e.g. | [
"concatenate",
"hgt",
"file",
"names",
"overlapping",
"with",
"multiple",
"SAR",
"scenes",
"input",
"is",
"a",
"list",
"of",
"GAMMA",
"SAR",
"scene",
"parameter",
"files",
"this",
"list",
"is",
"read",
"for",
"corner",
"coordinates",
"of",
"which",
"the",
"n... | [
"\"\"\"\n concatenate hgt file names overlapping with multiple SAR scenes\n input is a list of GAMMA SAR scene parameter files\n this list is read for corner coordinates of which the next integer lower left latitude and longitude is computed\n hgt files are supplied in 1 degree equiangular format named ... | [
{
"param": "parfiles",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "parfiles",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
989a09a83b041b1f75c98b22e68018d962171a76 | ibaris/pyroSAR | pyroSAR/gamma/srtm.py | [
"MIT"
] | Python | hgt_collect | <not_specific> | def hgt_collect(parfiles, outdir, demdir=None, arcsec=3):
"""
automatic downloading and unpacking of srtm tiles
base directory must contain SLC files in GAMMA format including their parameter files for reading coordinates
additional dem directory may locally contain srtm files. This directory is searche... |
automatic downloading and unpacking of srtm tiles
base directory must contain SLC files in GAMMA format including their parameter files for reading coordinates
additional dem directory may locally contain srtm files. This directory is searched for locally existing files, which are then copied to the curren... | automatic downloading and unpacking of srtm tiles
base directory must contain SLC files in GAMMA format including their parameter files for reading coordinates
additional dem directory may locally contain srtm files. This directory is searched for locally existing files, which are then copied to the current working dir... | [
"automatic",
"downloading",
"and",
"unpacking",
"of",
"srtm",
"tiles",
"base",
"directory",
"must",
"contain",
"SLC",
"files",
"in",
"GAMMA",
"format",
"including",
"their",
"parameter",
"files",
"for",
"reading",
"coordinates",
"additional",
"dem",
"directory",
"... | def hgt_collect(parfiles, outdir, demdir=None, arcsec=3):
target_ids = hgt(parfiles)
targets = []
pattern = '[NS][0-9]{2}[EW][0-9]{3}'
if demdir is not None:
targets.extend(finder(demdir, target_ids))
extras = [os.path.join(outdir, x) for x in target_ids if os.path.isfile(os.path.join(outdir... | [
"def",
"hgt_collect",
"(",
"parfiles",
",",
"outdir",
",",
"demdir",
"=",
"None",
",",
"arcsec",
"=",
"3",
")",
":",
"target_ids",
"=",
"hgt",
"(",
"parfiles",
")",
"targets",
"=",
"[",
"]",
"pattern",
"=",
"'[NS][0-9]{2}[EW][0-9]{3}'",
"if",
"demdir",
"... | automatic downloading and unpacking of srtm tiles
base directory must contain SLC files in GAMMA format including their parameter files for reading coordinates
additional dem directory may locally contain srtm files. | [
"automatic",
"downloading",
"and",
"unpacking",
"of",
"srtm",
"tiles",
"base",
"directory",
"must",
"contain",
"SLC",
"files",
"in",
"GAMMA",
"format",
"including",
"their",
"parameter",
"files",
"for",
"reading",
"coordinates",
"additional",
"dem",
"directory",
"... | [
"\"\"\"\n automatic downloading and unpacking of srtm tiles\n base directory must contain SLC files in GAMMA format including their parameter files for reading coordinates\n additional dem directory may locally contain srtm files. This directory is searched for locally existing files, which are then copied... | [
{
"param": "parfiles",
"type": null
},
{
"param": "outdir",
"type": null
},
{
"param": "demdir",
"type": null
},
{
"param": "arcsec",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "parfiles",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "outdir",
"type": null,
"docstring": null,
"docstring_toke... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | ASAR_LO_phase_drift | null | def ASAR_LO_phase_drift(SLC1_par, SLC2_par, OFF_par, ph_drift, logpath=None):
"""
| Calculate interferometric phase correction due to drift of the ASAR local oscillator
| Copyright 2015, Gamma Remote Sensing, v1.1 3-Dec-2015 clw
Parameters
----------
SLC1_par:
(input) SLC-1 ISP imag... |
| Calculate interferometric phase correction due to drift of the ASAR local oscillator
| Copyright 2015, Gamma Remote Sensing, v1.1 3-Dec-2015 clw
Parameters
----------
SLC1_par:
(input) SLC-1 ISP image parameter file
SLC2_par:
(input) SLC-2 ISP image parameter file
OFF... | | Calculate interferometric phase correction due to drift of the ASAR local oscillator
| Copyright 2015, Gamma Remote Sensing, v1.1 3-Dec-2015 clw
Parameters
(input) SLC-1 ISP image parameter file
SLC2_par:
(input) SLC-2 ISP image parameter file
OFF_par:
(input) ISP offset/interferogram parameter file
ph_drift:
(outp... | [
"|",
"Calculate",
"interferometric",
"phase",
"correction",
"due",
"to",
"drift",
"of",
"the",
"ASAR",
"local",
"oscillator",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"1",
"3",
"-",
"Dec",
"-",
"2015",
"clw",
"Parameters",
"(",
"i... | def ASAR_LO_phase_drift(SLC1_par, SLC2_par, OFF_par, ph_drift, logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/ASAR_LO_phase_drift', SLC1_par, SLC2_par, OFF_par, ph_drift], logpath=logpath) | [
"def",
"ASAR_LO_phase_drift",
"(",
"SLC1_par",
",",
"SLC2_par",
",",
"OFF_par",
",",
"ph_drift",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/ASAR_LO_phase_drift'",
",",
"SLC1_par",
",",
"SLC2_par",
",",
"OFF... | | Calculate interferometric phase correction due to drift of the ASAR local oscillator
| Copyright 2015, Gamma Remote Sensing, v1.1 3-Dec-2015 clw | [
"|",
"Calculate",
"interferometric",
"phase",
"correction",
"due",
"to",
"drift",
"of",
"the",
"ASAR",
"local",
"oscillator",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"1",
"3",
"-",
"Dec",
"-",
"2015",
"clw"
] | [
"\"\"\"\n | Calculate interferometric phase correction due to drift of the ASAR local oscillator\n | Copyright 2015, Gamma Remote Sensing, v1.1 3-Dec-2015 clw\n \n Parameters\n ----------\n SLC1_par:\n (input) SLC-1 ISP image parameter file\n SLC2_par:\n (input) SLC-2 ISP image pa... | [
{
"param": "SLC1_par",
"type": null
},
{
"param": "SLC2_par",
"type": null
},
{
"param": "OFF_par",
"type": null
},
{
"param": "ph_drift",
"type": null
},
{
"param": "logpath",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC1_par",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC2_par",
"type": null,
"docstring": null,
"docstring_to... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | bridge | null | def bridge(int, flag, unw, bridge, width, xmin='-', xmax='-', ymin='-', ymax='-', logpath=None):
"""
| Phase unwrap new regions with bridges to regions already unwrapped
| Copyright 2010, Gamma Remote Sensing, v1.5 clw 4-Nov-2010
Parameters
----------
int:
(input) interferogram (fco... |
| Phase unwrap new regions with bridges to regions already unwrapped
| Copyright 2010, Gamma Remote Sensing, v1.5 clw 4-Nov-2010
Parameters
----------
int:
(input) interferogram (fcomplex)
flag:
(input) unwrapping flag file
unw:
(input/output) unwrapped phase (f... | | Phase unwrap new regions with bridges to regions already unwrapped
| Copyright 2010, Gamma Remote Sensing, v1.5 clw 4-Nov-2010
Parameters
| [
"|",
"Phase",
"unwrap",
"new",
"regions",
"with",
"bridges",
"to",
"regions",
"already",
"unwrapped",
"|",
"Copyright",
"2010",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"5",
"clw",
"4",
"-",
"Nov",
"-",
"2010",
"Parameters"
] | def bridge(int, flag, unw, bridge, width, xmin='-', xmax='-', ymin='-', ymax='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/bridge', int, flag, unw, bridge, width, xmin, xmax, ymin, ymax], logpath=logpath) | [
"def",
"bridge",
"(",
"int",
",",
"flag",
",",
"unw",
",",
"bridge",
",",
"width",
",",
"xmin",
"=",
"'-'",
",",
"xmax",
"=",
"'-'",
",",
"ymin",
"=",
"'-'",
",",
"ymax",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
... | | Phase unwrap new regions with bridges to regions already unwrapped
| Copyright 2010, Gamma Remote Sensing, v1.5 clw 4-Nov-2010 | [
"|",
"Phase",
"unwrap",
"new",
"regions",
"with",
"bridges",
"to",
"regions",
"already",
"unwrapped",
"|",
"Copyright",
"2010",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"5",
"clw",
"4",
"-",
"Nov",
"-",
"2010"
] | [
"\"\"\"\n | Phase unwrap new regions with bridges to regions already unwrapped\n | Copyright 2010, Gamma Remote Sensing, v1.5 clw 4-Nov-2010\n \n Parameters\n ----------\n int:\n (input) interferogram (fcomplex)\n flag:\n (input) unwrapping flag file\n unw:\n (input/outp... | [
{
"param": "int",
"type": null
},
{
"param": "flag",
"type": null
},
{
"param": "unw",
"type": null
},
{
"param": "bridge",
"type": null
},
{
"param": "width",
"type": null
},
{
"param": "xmin",
"type": null
},
{
"param": "xmax",
"type"... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "int",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "flag",
"type": null,
"docstring": null,
"docstring_tokens": []... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | create_offset | null | def create_offset(SLC1_par, SLC2_par, OFF_par, algorithm='-', rlks='-', azlks='-', iflg='-', logpath=None):
"""
| Create and update ISP offset and interferogram parameter files
| Copyright 2015 Gamma Remote Sensing v5.3 clw/uw 10-Nov-2015
Parameters
----------
SLC1_par:
(input) SLC-... |
| Create and update ISP offset and interferogram parameter files
| Copyright 2015 Gamma Remote Sensing v5.3 clw/uw 10-Nov-2015
Parameters
----------
SLC1_par:
(input) SLC-1/MLI-1 ISP image parameter filename (reference)
SLC2_par:
(input) SLC-2/MLI-2 ISP image parameter file... | | Create and update ISP offset and interferogram parameter files
| Copyright 2015 Gamma Remote Sensing v5.3 clw/uw 10-Nov-2015
Parameters
str or None
a directory to write command logfiles to | [
"|",
"Create",
"and",
"update",
"ISP",
"offset",
"and",
"interferogram",
"parameter",
"files",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v5",
".",
"3",
"clw",
"/",
"uw",
"10",
"-",
"Nov",
"-",
"2015",
"Parameters",
"str",
"or",
"None",
"a"... | def create_offset(SLC1_par, SLC2_par, OFF_par, algorithm='-', rlks='-', azlks='-', iflg='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/create_offset', SLC1_par, SLC2_par, OFF_par, algorithm, rlks, azlks, iflg], logpath=logpath) | [
"def",
"create_offset",
"(",
"SLC1_par",
",",
"SLC2_par",
",",
"OFF_par",
",",
"algorithm",
"=",
"'-'",
",",
"rlks",
"=",
"'-'",
",",
"azlks",
"=",
"'-'",
",",
"iflg",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster... | | Create and update ISP offset and interferogram parameter files
| Copyright 2015 Gamma Remote Sensing v5.3 clw/uw 10-Nov-2015 | [
"|",
"Create",
"and",
"update",
"ISP",
"offset",
"and",
"interferogram",
"parameter",
"files",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v5",
".",
"3",
"clw",
"/",
"uw",
"10",
"-",
"Nov",
"-",
"2015"
] | [
"\"\"\"\n | Create and update ISP offset and interferogram parameter files\n | Copyright 2015 Gamma Remote Sensing v5.3 clw/uw 10-Nov-2015\n \n Parameters\n ----------\n SLC1_par:\n (input) SLC-1/MLI-1 ISP image parameter filename (reference)\n SLC2_par:\n (input) SLC-2/MLI-2 ISP ... | [
{
"param": "SLC1_par",
"type": null
},
{
"param": "SLC2_par",
"type": null
},
{
"param": "OFF_par",
"type": null
},
{
"param": "algorithm",
"type": null
},
{
"param": "rlks",
"type": null
},
{
"param": "azlks",
"type": null
},
{
"param": "i... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC1_par",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC2_par",
"type": null,
"docstring": null,
"docstring_to... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | DELFT_vec2 | null | def DELFT_vec2(SLC_par, DELFT_dir, nstate='-', interval='-', ODR='-', logpath=None):
"""
| Extract and interpolate DELFT ERS-1, ERS-2, and ENVISAT state vectors
| Copyright 2012, Gamma Remote Sensing, v2.6 clw 24-Oct-2012
Parameters
----------
SLC_par:
(input) ISP image parameter fi... |
| Extract and interpolate DELFT ERS-1, ERS-2, and ENVISAT state vectors
| Copyright 2012, Gamma Remote Sensing, v2.6 clw 24-Oct-2012
Parameters
----------
SLC_par:
(input) ISP image parameter file
DELFT_dir:
directory containing Delft orbit arclist and ODR files for ERS-1, ... | | Extract and interpolate DELFT ERS-1, ERS-2, and ENVISAT state vectors
| Copyright 2012, Gamma Remote Sensing, v2.6 clw 24-Oct-2012
Parameters
(input) ISP image parameter file
DELFT_dir:
directory containing Delft orbit arclist and ODR files for ERS-1, ERS-2 or ENVISAT
NOTE: enter . for current directory
number of ... | [
"|",
"Extract",
"and",
"interpolate",
"DELFT",
"ERS",
"-",
"1",
"ERS",
"-",
"2",
"and",
"ENVISAT",
"state",
"vectors",
"|",
"Copyright",
"2012",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"6",
"clw",
"24",
"-",
"Oct",
"-",
"2012",
"Parameters",
"(",
"inp... | def DELFT_vec2(SLC_par, DELFT_dir, nstate='-', interval='-', ODR='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/DELFT_vec2', SLC_par, DELFT_dir, nstate, interval, ODR], logpath=logpath) | [
"def",
"DELFT_vec2",
"(",
"SLC_par",
",",
"DELFT_dir",
",",
"nstate",
"=",
"'-'",
",",
"interval",
"=",
"'-'",
",",
"ODR",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/DELFT_vec2'",
",",
"... | | Extract and interpolate DELFT ERS-1, ERS-2, and ENVISAT state vectors
| Copyright 2012, Gamma Remote Sensing, v2.6 clw 24-Oct-2012 | [
"|",
"Extract",
"and",
"interpolate",
"DELFT",
"ERS",
"-",
"1",
"ERS",
"-",
"2",
"and",
"ENVISAT",
"state",
"vectors",
"|",
"Copyright",
"2012",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"6",
"clw",
"24",
"-",
"Oct",
"-",
"2012"
] | [
"\"\"\"\n | Extract and interpolate DELFT ERS-1, ERS-2, and ENVISAT state vectors\n | Copyright 2012, Gamma Remote Sensing, v2.6 clw 24-Oct-2012\n \n Parameters\n ----------\n SLC_par:\n (input) ISP image parameter file\n DELFT_dir:\n directory containing Delft orbit arclist and O... | [
{
"param": "SLC_par",
"type": null
},
{
"param": "DELFT_dir",
"type": null
},
{
"param": "nstate",
"type": null
},
{
"param": "interval",
"type": null
},
{
"param": "ODR",
"type": null
},
{
"param": "logpath",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC_par",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "DELFT_dir",
"type": null,
"docstring": null,
"docstring_to... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | fspf | null | def fspf(data_in, data_out, width, dtype='-', r_max='-', spf_type='-', MLI_par='-', logpath=None):
"""
| ISP Program /cluster/GAMMA_SOFTWARE-20161207/ISP/bin/fspf.c
| Copyright 2014, Gamma Remote Sensing, v1.2 28-May-2014 of/clw/uw
| Fast spatial filter for 2D data
Parameters
----------
... |
| ISP Program /cluster/GAMMA_SOFTWARE-20161207/ISP/bin/fspf.c
| Copyright 2014, Gamma Remote Sensing, v1.2 28-May-2014 of/clw/uw
| Fast spatial filter for 2D data
Parameters
----------
data_in:
(input) input image data
data_out:
(output) spatially filtered image data
... |
Parameters
MLI or SLC parameter file with the same number of looks as the input image, required for GPRI data
logpath: str or None
a directory to write command logfiles to | [
"Parameters",
"MLI",
"or",
"SLC",
"parameter",
"file",
"with",
"the",
"same",
"number",
"of",
"looks",
"as",
"the",
"input",
"image",
"required",
"for",
"GPRI",
"data",
"logpath",
":",
"str",
"or",
"None",
"a",
"directory",
"to",
"write",
"command",
"logfi... | def fspf(data_in, data_out, width, dtype='-', r_max='-', spf_type='-', MLI_par='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/fspf', data_in, data_out, width, dtype, r_max, spf_type, MLI_par], logpath=logpath) | [
"def",
"fspf",
"(",
"data_in",
",",
"data_out",
",",
"width",
",",
"dtype",
"=",
"'-'",
",",
"r_max",
"=",
"'-'",
",",
"spf_type",
"=",
"'-'",
",",
"MLI_par",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SO... | | ISP Program /cluster/GAMMA_SOFTWARE-20161207/ISP/bin/fspf.c
| Copyright 2014, Gamma Remote Sensing, v1.2 28-May-2014 of/clw/uw
| Fast spatial filter for 2D data | [
"|",
"ISP",
"Program",
"/",
"cluster",
"/",
"GAMMA_SOFTWARE",
"-",
"20161207",
"/",
"ISP",
"/",
"bin",
"/",
"fspf",
".",
"c",
"|",
"Copyright",
"2014",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"2",
"28",
"-",
"May",
"-",
"2014",
"of",
"/",
"clw",
"... | [
"\"\"\"\n | ISP Program /cluster/GAMMA_SOFTWARE-20161207/ISP/bin/fspf.c\n | Copyright 2014, Gamma Remote Sensing, v1.2 28-May-2014 of/clw/uw\n | Fast spatial filter for 2D data\n \n Parameters\n ----------\n data_in:\n (input) input image data\n data_out:\n (output) spatially f... | [
{
"param": "data_in",
"type": null
},
{
"param": "data_out",
"type": null
},
{
"param": "width",
"type": null
},
{
"param": "dtype",
"type": null
},
{
"param": "r_max",
"type": null
},
{
"param": "spf_type",
"type": null
},
{
"param": "MLI_... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "data_in",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "data_out",
"type": null,
"docstring": null,
"docstring_tok... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | init_offset | null | def init_offset(SLC_1, SLC_2, SLC1_par, SLC2_par, OFF_par, rlks='-', azlks='-', rpos='-', azpos='-', offr='-', offaz='-', thres='-', rwin='-', azwin='-', cflag='-', logpath=None):
"""
| Determine initial offset between SLC images using correlation of image intensity
| Copyright 2016, Gamma Remote Sensing, v... |
| Determine initial offset between SLC images using correlation of image intensity
| Copyright 2016, Gamma Remote Sensing, v3.1 clw 12-Apr-2016
Parameters
----------
SLC-1:
(input) single-look complex image 1 (reference)
SLC-2:
(input) single-look complex image 2
SLC1_p... | | Determine initial offset between SLC images using correlation of image intensity
| Copyright 2016, Gamma Remote Sensing, v3.1 clw 12-Apr-2016
Parameters
str or None
a directory to write command logfiles to | [
"|",
"Determine",
"initial",
"offset",
"between",
"SLC",
"images",
"using",
"correlation",
"of",
"image",
"intensity",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v3",
".",
"1",
"clw",
"12",
"-",
"Apr",
"-",
"2016",
"Parameters",
"str",
"or",
... | def init_offset(SLC_1, SLC_2, SLC1_par, SLC2_par, OFF_par, rlks='-', azlks='-', rpos='-', azpos='-', offr='-', offaz='-', thres='-', rwin='-', azwin='-', cflag='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/init_offset', SLC_1, SLC_2, SLC1_par, SLC2_par, OFF_par, rlks, azlks, rpos, azpos, of... | [
"def",
"init_offset",
"(",
"SLC_1",
",",
"SLC_2",
",",
"SLC1_par",
",",
"SLC2_par",
",",
"OFF_par",
",",
"rlks",
"=",
"'-'",
",",
"azlks",
"=",
"'-'",
",",
"rpos",
"=",
"'-'",
",",
"azpos",
"=",
"'-'",
",",
"offr",
"=",
"'-'",
",",
"offaz",
"=",
... | | Determine initial offset between SLC images using correlation of image intensity
| Copyright 2016, Gamma Remote Sensing, v3.1 clw 12-Apr-2016 | [
"|",
"Determine",
"initial",
"offset",
"between",
"SLC",
"images",
"using",
"correlation",
"of",
"image",
"intensity",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v3",
".",
"1",
"clw",
"12",
"-",
"Apr",
"-",
"2016"
] | [
"\"\"\"\n | Determine initial offset between SLC images using correlation of image intensity\n | Copyright 2016, Gamma Remote Sensing, v3.1 clw 12-Apr-2016\n \n Parameters\n ----------\n SLC-1:\n (input) single-look complex image 1 (reference)\n SLC-2:\n (input) single-look comple... | [
{
"param": "SLC_1",
"type": null
},
{
"param": "SLC_2",
"type": null
},
{
"param": "SLC1_par",
"type": null
},
{
"param": "SLC2_par",
"type": null
},
{
"param": "OFF_par",
"type": null
},
{
"param": "rlks",
"type": null
},
{
"param": "azlks... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC_1",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC_2",
"type": null,
"docstring": null,
"docstring_tokens":... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | init_offset_orbit | null | def init_offset_orbit(SLC1_par, SLC2_par, OFF_par, rpos='-', azpos='-', cflag='-', logpath=None):
"""
| Initial SLC image offset estimation from orbit state-vectors and image parameters
| Copyright 2016, Gamma Remote Sensing, v1.7 21-Apr-2016 clw/uw
Parameters
----------
SLC1_par:
(... |
| Initial SLC image offset estimation from orbit state-vectors and image parameters
| Copyright 2016, Gamma Remote Sensing, v1.7 21-Apr-2016 clw/uw
Parameters
----------
SLC1_par:
(input) SLC-1 parameter file
SLC2_par:
(input) SLC-2 parameter file
OFF_par:
(inpu... | | Initial SLC image offset estimation from orbit state-vectors and image parameters
| Copyright 2016, Gamma Remote Sensing, v1.7 21-Apr-2016 clw/uw
Parameters
str or None
a directory to write command logfiles to | [
"|",
"Initial",
"SLC",
"image",
"offset",
"estimation",
"from",
"orbit",
"state",
"-",
"vectors",
"and",
"image",
"parameters",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"7",
"21",
"-",
"Apr",
"-",
"2016",
"clw",
"/",
"uw",
"Para... | def init_offset_orbit(SLC1_par, SLC2_par, OFF_par, rpos='-', azpos='-', cflag='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/init_offset_orbit', SLC1_par, SLC2_par, OFF_par, rpos, azpos, cflag], logpath=logpath) | [
"def",
"init_offset_orbit",
"(",
"SLC1_par",
",",
"SLC2_par",
",",
"OFF_par",
",",
"rpos",
"=",
"'-'",
",",
"azpos",
"=",
"'-'",
",",
"cflag",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/... | | Initial SLC image offset estimation from orbit state-vectors and image parameters
| Copyright 2016, Gamma Remote Sensing, v1.7 21-Apr-2016 clw/uw | [
"|",
"Initial",
"SLC",
"image",
"offset",
"estimation",
"from",
"orbit",
"state",
"-",
"vectors",
"and",
"image",
"parameters",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"7",
"21",
"-",
"Apr",
"-",
"2016",
"clw",
"/",
"uw"
] | [
"\"\"\"\n | Initial SLC image offset estimation from orbit state-vectors and image parameters\n | Copyright 2016, Gamma Remote Sensing, v1.7 21-Apr-2016 clw/uw\n \n Parameters\n ----------\n SLC1_par:\n (input) SLC-1 parameter file\n SLC2_par:\n (input) SLC-2 parameter file\n O... | [
{
"param": "SLC1_par",
"type": null
},
{
"param": "SLC2_par",
"type": null
},
{
"param": "OFF_par",
"type": null
},
{
"param": "rpos",
"type": null
},
{
"param": "azpos",
"type": null
},
{
"param": "cflag",
"type": null
},
{
"param": "logpa... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC1_par",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC2_par",
"type": null,
"docstring": null,
"docstring_to... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | interp_ad | null | def interp_ad(data_in, data_out, width, r_max='-', np_min='-', np_max='-', w_mode='-', type='-', cp_data='-', logpath=None):
"""
| Weighted interpolation of gaps in 2D data using an adaptive smoothing window
| Copyright 2016, Gamma Remote Sensing, v2.1 23-Nov-2016 clw/uw
Parameters
----------
... |
| Weighted interpolation of gaps in 2D data using an adaptive smoothing window
| Copyright 2016, Gamma Remote Sensing, v2.1 23-Nov-2016 clw/uw
Parameters
----------
data_in:
(input) data with gaps
data_out:
(output) data with gaps filled by interpolation
width:
... | | Weighted interpolation of gaps in 2D data using an adaptive smoothing window
| Copyright 2016, Gamma Remote Sensing, v2.1 23-Nov-2016 clw/uw
Parameters
copy data flag:
0: do not copy input data values to output
1: copy input data values to output (default)
str or None
a directory to write command logfiles to | [
"|",
"Weighted",
"interpolation",
"of",
"gaps",
"in",
"2D",
"data",
"using",
"an",
"adaptive",
"smoothing",
"window",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"1",
"23",
"-",
"Nov",
"-",
"2016",
"clw",
"/",
"uw",
"Parameters",
"... | def interp_ad(data_in, data_out, width, r_max='-', np_min='-', np_max='-', w_mode='-', type='-', cp_data='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/interp_ad', data_in, data_out, width, r_max, np_min, np_max, w_mode, type, cp_data], logpath=logpath) | [
"def",
"interp_ad",
"(",
"data_in",
",",
"data_out",
",",
"width",
",",
"r_max",
"=",
"'-'",
",",
"np_min",
"=",
"'-'",
",",
"np_max",
"=",
"'-'",
",",
"w_mode",
"=",
"'-'",
",",
"type",
"=",
"'-'",
",",
"cp_data",
"=",
"'-'",
",",
"logpath",
"=",
... | | Weighted interpolation of gaps in 2D data using an adaptive smoothing window
| Copyright 2016, Gamma Remote Sensing, v2.1 23-Nov-2016 clw/uw | [
"|",
"Weighted",
"interpolation",
"of",
"gaps",
"in",
"2D",
"data",
"using",
"an",
"adaptive",
"smoothing",
"window",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"1",
"23",
"-",
"Nov",
"-",
"2016",
"clw",
"/",
"uw"
] | [
"\"\"\"\n | Weighted interpolation of gaps in 2D data using an adaptive smoothing window\n | Copyright 2016, Gamma Remote Sensing, v2.1 23-Nov-2016 clw/uw\n \n Parameters\n ----------\n data_in:\n (input) data with gaps\n data_out:\n (output) data with gaps filled by interpolation... | [
{
"param": "data_in",
"type": null
},
{
"param": "data_out",
"type": null
},
{
"param": "width",
"type": null
},
{
"param": "r_max",
"type": null
},
{
"param": "np_min",
"type": null
},
{
"param": "np_max",
"type": null
},
{
"param": "w_mod... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "data_in",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "data_out",
"type": null,
"docstring": null,
"docstring_tok... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | MLI_cat | null | def MLI_cat(MLI_1, MLI_2, MLI1_par, MLI2_par, MLI_3, MLI3_par, logpath=None):
"""
| Concatenate two MLI images using bicubic spline interpolation
| Copyright 2015, Gamma Remote Sensing, v1.0 23-Jul-2015 awi
Parameters
----------
MLI-1:
(input) MLI-1 image (single-look)
MLI-2:
... |
| Concatenate two MLI images using bicubic spline interpolation
| Copyright 2015, Gamma Remote Sensing, v1.0 23-Jul-2015 awi
Parameters
----------
MLI-1:
(input) MLI-1 image (single-look)
MLI-2:
(input) MLI-2 image to be appended to MLI-1
MLI1_par:
(input) MLI-1... | | Concatenate two MLI images using bicubic spline interpolation
| Copyright 2015, Gamma Remote Sensing, v1.0 23-Jul-2015 awi
Parameters
| [
"|",
"Concatenate",
"two",
"MLI",
"images",
"using",
"bicubic",
"spline",
"interpolation",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"0",
"23",
"-",
"Jul",
"-",
"2015",
"awi",
"Parameters"
] | def MLI_cat(MLI_1, MLI_2, MLI1_par, MLI2_par, MLI_3, MLI3_par, logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/MLI_cat', MLI_1, MLI_2, MLI1_par, MLI2_par, MLI_3, MLI3_par], logpath=logpath) | [
"def",
"MLI_cat",
"(",
"MLI_1",
",",
"MLI_2",
",",
"MLI1_par",
",",
"MLI2_par",
",",
"MLI_3",
",",
"MLI3_par",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/MLI_cat'",
",",
"MLI_1",
",",
"MLI_2",
",",
... | | Concatenate two MLI images using bicubic spline interpolation
| Copyright 2015, Gamma Remote Sensing, v1.0 23-Jul-2015 awi | [
"|",
"Concatenate",
"two",
"MLI",
"images",
"using",
"bicubic",
"spline",
"interpolation",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"0",
"23",
"-",
"Jul",
"-",
"2015",
"awi"
] | [
"\"\"\"\n | Concatenate two MLI images using bicubic spline interpolation\n | Copyright 2015, Gamma Remote Sensing, v1.0 23-Jul-2015 awi\n \n Parameters\n ----------\n MLI-1:\n (input) MLI-1 image (single-look)\n MLI-2:\n (input) MLI-2 image to be appended to MLI-1\n MLI1_par:\... | [
{
"param": "MLI_1",
"type": null
},
{
"param": "MLI_2",
"type": null
},
{
"param": "MLI1_par",
"type": null
},
{
"param": "MLI2_par",
"type": null
},
{
"param": "MLI_3",
"type": null
},
{
"param": "MLI3_par",
"type": null
},
{
"param": "log... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "MLI_1",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "MLI_2",
"type": null,
"docstring": null,
"docstring_tokens":... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | multi_S1_TOPS | null | def multi_S1_TOPS(SLC_tab, MLI, MLI_par, rlks, azlks, wflg='-', SLCR_tab='-', logpath=None):
"""
| Calculate MLI mosaic from Sentinel-1 TOPS SLC burst data (FCOMPLEX and SCOMPLEX)
| Copyright 2016, Gamma Remote Sensing v3.3 23-Aug-2016 awi/clw/uw
Parameters
----------
SLC_tab:
(inpu... |
| Calculate MLI mosaic from Sentinel-1 TOPS SLC burst data (FCOMPLEX and SCOMPLEX)
| Copyright 2016, Gamma Remote Sensing v3.3 23-Aug-2016 awi/clw/uw
Parameters
----------
SLC_tab:
(input) 3 column list of SLC, SLC_par, Sentinel-1 TOPS_par, rows sorted in the order IW1, IW2, IW3
ML... | | Calculate MLI mosaic from Sentinel-1 TOPS SLC burst data (FCOMPLEX and SCOMPLEX)
| Copyright 2016, Gamma Remote Sensing v3.3 23-Aug-2016 awi/clw/uw
Parameters
(input) SLC_tab of the reference scene, 3 column list of SLC, SLC_par, TOPS_par sorted in the order IW1, IW2, IW3
NOTE: When generating an MLI mosaic of a ... | [
"|",
"Calculate",
"MLI",
"mosaic",
"from",
"Sentinel",
"-",
"1",
"TOPS",
"SLC",
"burst",
"data",
"(",
"FCOMPLEX",
"and",
"SCOMPLEX",
")",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v3",
".",
"3",
"23",
"-",
"Aug",
"-",
"2016",
"awi",
"/",... | def multi_S1_TOPS(SLC_tab, MLI, MLI_par, rlks, azlks, wflg='-', SLCR_tab='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/multi_S1_TOPS', SLC_tab, MLI, MLI_par, rlks, azlks, wflg, SLCR_tab], logpath=logpath) | [
"def",
"multi_S1_TOPS",
"(",
"SLC_tab",
",",
"MLI",
",",
"MLI_par",
",",
"rlks",
",",
"azlks",
",",
"wflg",
"=",
"'-'",
",",
"SLCR_tab",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/multi_... | | Calculate MLI mosaic from Sentinel-1 TOPS SLC burst data (FCOMPLEX and SCOMPLEX)
| Copyright 2016, Gamma Remote Sensing v3.3 23-Aug-2016 awi/clw/uw | [
"|",
"Calculate",
"MLI",
"mosaic",
"from",
"Sentinel",
"-",
"1",
"TOPS",
"SLC",
"burst",
"data",
"(",
"FCOMPLEX",
"and",
"SCOMPLEX",
")",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v3",
".",
"3",
"23",
"-",
"Aug",
"-",
"2016",
"awi",
"/",... | [
"\"\"\"\n | Calculate MLI mosaic from Sentinel-1 TOPS SLC burst data (FCOMPLEX and SCOMPLEX)\n | Copyright 2016, Gamma Remote Sensing v3.3 23-Aug-2016 awi/clw/uw\n \n Parameters\n ----------\n SLC_tab:\n (input) 3 column list of SLC, SLC_par, Sentinel-1 TOPS_par, rows sorted in the order IW... | [
{
"param": "SLC_tab",
"type": null
},
{
"param": "MLI",
"type": null
},
{
"param": "MLI_par",
"type": null
},
{
"param": "rlks",
"type": null
},
{
"param": "azlks",
"type": null
},
{
"param": "wflg",
"type": null
},
{
"param": "SLCR_tab",
... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC_tab",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "MLI",
"type": null,
"docstring": null,
"docstring_tokens":... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | offset_add | null | def offset_add(OFF_par1, OFF_par2, OFF_par3, logpath=None):
"""
| Add range and azimuth offset polynomial coefficients
| Copyright 2008, Gamma Remote Sensing, v1.1 12-Feb-2008 clw
Parameters
----------
OFF_par1:
(input) ISP offset/interferogram parameter file
OFF_par2:
(... |
| Add range and azimuth offset polynomial coefficients
| Copyright 2008, Gamma Remote Sensing, v1.1 12-Feb-2008 clw
Parameters
----------
OFF_par1:
(input) ISP offset/interferogram parameter file
OFF_par2:
(input) ISP offset/interferogram parameter file
OFF_par3:
... | | Add range and azimuth offset polynomial coefficients
| Copyright 2008, Gamma Remote Sensing, v1.1 12-Feb-2008 clw
Parameters
(input) ISP offset/interferogram parameter file
OFF_par2:
(input) ISP offset/interferogram parameter file
OFF_par3:
(output) ISP offset/interferogram parameter file with sums of the
range and... | [
"|",
"Add",
"range",
"and",
"azimuth",
"offset",
"polynomial",
"coefficients",
"|",
"Copyright",
"2008",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"1",
"12",
"-",
"Feb",
"-",
"2008",
"clw",
"Parameters",
"(",
"input",
")",
"ISP",
"offset",
"/",
"interferogr... | def offset_add(OFF_par1, OFF_par2, OFF_par3, logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/offset_add', OFF_par1, OFF_par2, OFF_par3], logpath=logpath) | [
"def",
"offset_add",
"(",
"OFF_par1",
",",
"OFF_par2",
",",
"OFF_par3",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/offset_add'",
",",
"OFF_par1",
",",
"OFF_par2",
",",
"OFF_par3",
"]",
",",
"logpath",
"... | | Add range and azimuth offset polynomial coefficients
| Copyright 2008, Gamma Remote Sensing, v1.1 12-Feb-2008 clw | [
"|",
"Add",
"range",
"and",
"azimuth",
"offset",
"polynomial",
"coefficients",
"|",
"Copyright",
"2008",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"1",
"12",
"-",
"Feb",
"-",
"2008",
"clw"
] | [
"\"\"\"\n | Add range and azimuth offset polynomial coefficients\n | Copyright 2008, Gamma Remote Sensing, v1.1 12-Feb-2008 clw\n \n Parameters\n ----------\n OFF_par1:\n (input) ISP offset/interferogram parameter file\n OFF_par2:\n (input) ISP offset/interferogram parameter file\... | [
{
"param": "OFF_par1",
"type": null
},
{
"param": "OFF_par2",
"type": null
},
{
"param": "OFF_par3",
"type": null
},
{
"param": "logpath",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "OFF_par1",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "OFF_par2",
"type": null,
"docstring": null,
"docstring_to... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | offset_pwr_tracking2 | null | def offset_pwr_tracking2(SLC1, SLC2, SLC1_par, SLC2_par, OFF_par, offs, ccp, OFF_par2='-', offs2='-', rwin='-', azwin='-', offsets='-', n_ovr='-', thres='-', rstep='-', azstep='-', rstart='-', rstop='-', azstart='-', azstop='-', c_ovr='-', pflag='-', pltflg='-', ccs='-', logpath=None):
"""
| Intensity cross-cor... |
| Intensity cross-correlation offset tracking with the initial offset for each patch determined from input offset map
| Copyright 2016, Gamma Remote Sensing, v1.3 clw 22-Oct-2016
Parameters
----------
SLC1:
(input) single-look complex image 1 (reference)
SLC2:
(input) singl... | | Intensity cross-correlation offset tracking with the initial offset for each patch determined from input offset map
| Copyright 2016, Gamma Remote Sensing, v1.3 clw 22-Oct-2016
Parameters
plotting flag (enter - for default)
0: none (default)
1: screen output
2: screen output and PNG format plots
3: output plots i... | [
"|",
"Intensity",
"cross",
"-",
"correlation",
"offset",
"tracking",
"with",
"the",
"initial",
"offset",
"for",
"each",
"patch",
"determined",
"from",
"input",
"offset",
"map",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"3",
"clw",
"2... | def offset_pwr_tracking2(SLC1, SLC2, SLC1_par, SLC2_par, OFF_par, offs, ccp, OFF_par2='-', offs2='-', rwin='-', azwin='-', offsets='-', n_ovr='-', thres='-', rstep='-', azstep='-', rstart='-', rstop='-', azstart='-', azstop='-', c_ovr='-', pflag='-', pltflg='-', ccs='-', logpath=None):
process(['/cluster/GAMMA_SOFT... | [
"def",
"offset_pwr_tracking2",
"(",
"SLC1",
",",
"SLC2",
",",
"SLC1_par",
",",
"SLC2_par",
",",
"OFF_par",
",",
"offs",
",",
"ccp",
",",
"OFF_par2",
"=",
"'-'",
",",
"offs2",
"=",
"'-'",
",",
"rwin",
"=",
"'-'",
",",
"azwin",
"=",
"'-'",
",",
"offset... | | Intensity cross-correlation offset tracking with the initial offset for each patch determined from input offset map
| Copyright 2016, Gamma Remote Sensing, v1.3 clw 22-Oct-2016 | [
"|",
"Intensity",
"cross",
"-",
"correlation",
"offset",
"tracking",
"with",
"the",
"initial",
"offset",
"for",
"each",
"patch",
"determined",
"from",
"input",
"offset",
"map",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"3",
"clw",
"2... | [
"\"\"\"\n | Intensity cross-correlation offset tracking with the initial offset for each patch determined from input offset map\n | Copyright 2016, Gamma Remote Sensing, v1.3 clw 22-Oct-2016\n \n Parameters\n ----------\n SLC1:\n (input) single-look complex image 1 (reference)\n SLC2:\n ... | [
{
"param": "SLC1",
"type": null
},
{
"param": "SLC2",
"type": null
},
{
"param": "SLC1_par",
"type": null
},
{
"param": "SLC2_par",
"type": null
},
{
"param": "OFF_par",
"type": null
},
{
"param": "offs",
"type": null
},
{
"param": "ccp",
... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC1",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC2",
"type": null,
"docstring": null,
"docstring_tokens": [... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | offset_SLC_tracking | null | def offset_SLC_tracking(SLC_1, SLC_2, SLC1_par, SLC2_par, OFF_par, offs, snr, rsw='-', azsw='-', offsets='-', n_ovr='-', thres='-', rstep='-', azstep='-', rstart='-', rstop='-', azstart='-', azstop='-', ISZ='-', pflag='-', logpath=None):
"""
| Offset tracking between SLC images using fringe visibility
| Cop... |
| Offset tracking between SLC images using fringe visibility
| Copyright 2016, Gamma Remote Sensing, v3.6 clw 4-Mar-2016
Parameters
----------
SLC-1:
(input) single-look complex image 1 (reference)
SLC-2:
(input) single-look complex image 2
SLC1_par:
(input) SLC... | | Offset tracking between SLC images using fringe visibility
| Copyright 2016, Gamma Remote Sensing, v3.6 clw 4-Mar-2016
Parameters
str or None
a directory to write command logfiles to | [
"|",
"Offset",
"tracking",
"between",
"SLC",
"images",
"using",
"fringe",
"visibility",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v3",
".",
"6",
"clw",
"4",
"-",
"Mar",
"-",
"2016",
"Parameters",
"str",
"or",
"None",
"a",
"directory",
"to",
... | def offset_SLC_tracking(SLC_1, SLC_2, SLC1_par, SLC2_par, OFF_par, offs, snr, rsw='-', azsw='-', offsets='-', n_ovr='-', thres='-', rstep='-', azstep='-', rstart='-', rstop='-', azstart='-', azstop='-', ISZ='-', pflag='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/offset_SLC_tracking', SLC_1... | [
"def",
"offset_SLC_tracking",
"(",
"SLC_1",
",",
"SLC_2",
",",
"SLC1_par",
",",
"SLC2_par",
",",
"OFF_par",
",",
"offs",
",",
"snr",
",",
"rsw",
"=",
"'-'",
",",
"azsw",
"=",
"'-'",
",",
"offsets",
"=",
"'-'",
",",
"n_ovr",
"=",
"'-'",
",",
"thres",
... | | Offset tracking between SLC images using fringe visibility
| Copyright 2016, Gamma Remote Sensing, v3.6 clw 4-Mar-2016 | [
"|",
"Offset",
"tracking",
"between",
"SLC",
"images",
"using",
"fringe",
"visibility",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v3",
".",
"6",
"clw",
"4",
"-",
"Mar",
"-",
"2016"
] | [
"\"\"\"\n | Offset tracking between SLC images using fringe visibility\n | Copyright 2016, Gamma Remote Sensing, v3.6 clw 4-Mar-2016\n \n Parameters\n ----------\n SLC-1:\n (input) single-look complex image 1 (reference)\n SLC-2:\n (input) single-look complex image 2\n SLC1_par... | [
{
"param": "SLC_1",
"type": null
},
{
"param": "SLC_2",
"type": null
},
{
"param": "SLC1_par",
"type": null
},
{
"param": "SLC2_par",
"type": null
},
{
"param": "OFF_par",
"type": null
},
{
"param": "offs",
"type": null
},
{
"param": "snr",... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC_1",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC_2",
"type": null,
"docstring": null,
"docstring_tokens":... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | offset_tracking | null | def offset_tracking(offs, ccp, SLC_par, OFF_par, disp_map, disp_val='-', mode='-', thres='-', poly_flag='-', logpath=None):
"""
| Conversion of range and azimuth offsets files to displacement map
| Copyright 2015, Gamma Remote Sensing, v1.8 28-Nov-2015 ts/clw/uw
Parameters
----------
offs:
... |
| Conversion of range and azimuth offsets files to displacement map
| Copyright 2015, Gamma Remote Sensing, v1.8 28-Nov-2015 ts/clw/uw
Parameters
----------
offs:
(input) range and azimuth offset estimates (fcomplex)
ccp:
(input) cross-correlation of the offset estimates (f... | | Conversion of range and azimuth offsets files to displacement map
| Copyright 2015, Gamma Remote Sensing, v1.8 28-Nov-2015 ts/clw/uw
Parameters
SNR threshold to accept offset value (default from OFF_par)
poly_flag:
flag indicating if trend calculated using offset polynomials from OFF_par is subtracted:
0: do not ... | [
"|",
"Conversion",
"of",
"range",
"and",
"azimuth",
"offsets",
"files",
"to",
"displacement",
"map",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"8",
"28",
"-",
"Nov",
"-",
"2015",
"ts",
"/",
"clw",
"/",
"uw",
"Parameters",
"SNR",
... | def offset_tracking(offs, ccp, SLC_par, OFF_par, disp_map, disp_val='-', mode='-', thres='-', poly_flag='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/offset_tracking', offs, ccp, SLC_par, OFF_par, disp_map, disp_val, mode, thres, poly_flag], logpath=logpath) | [
"def",
"offset_tracking",
"(",
"offs",
",",
"ccp",
",",
"SLC_par",
",",
"OFF_par",
",",
"disp_map",
",",
"disp_val",
"=",
"'-'",
",",
"mode",
"=",
"'-'",
",",
"thres",
"=",
"'-'",
",",
"poly_flag",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
... | | Conversion of range and azimuth offsets files to displacement map
| Copyright 2015, Gamma Remote Sensing, v1.8 28-Nov-2015 ts/clw/uw | [
"|",
"Conversion",
"of",
"range",
"and",
"azimuth",
"offsets",
"files",
"to",
"displacement",
"map",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"8",
"28",
"-",
"Nov",
"-",
"2015",
"ts",
"/",
"clw",
"/",
"uw"
] | [
"\"\"\"\n | Conversion of range and azimuth offsets files to displacement map\n | Copyright 2015, Gamma Remote Sensing, v1.8 28-Nov-2015 ts/clw/uw\n \n Parameters\n ----------\n offs:\n (input) range and azimuth offset estimates (fcomplex)\n ccp:\n (input) cross-correlation of the... | [
{
"param": "offs",
"type": null
},
{
"param": "ccp",
"type": null
},
{
"param": "SLC_par",
"type": null
},
{
"param": "OFF_par",
"type": null
},
{
"param": "disp_map",
"type": null
},
{
"param": "disp_val",
"type": null
},
{
"param": "mode"... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "offs",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "ccp",
"type": null,
"docstring": null,
"docstring_tokens": []... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | par_EORC_PALSAR | null | def par_EORC_PALSAR(CEOS_leader, SLC_par, CEOS_data, SLC='-', logpath=None):
"""
| Reformat EORC PALSAR + PALSAR2 level 1.1 CEOS format SLC data and generate the ISP parameter file
| Copyright 2016, Gamma Remote Sensing, v2.7 27-Apr-2016 clw
Parameters
----------
CEOS_leader:
(input... |
| Reformat EORC PALSAR + PALSAR2 level 1.1 CEOS format SLC data and generate the ISP parameter file
| Copyright 2016, Gamma Remote Sensing, v2.7 27-Apr-2016 clw
Parameters
----------
CEOS_leader:
(input) CEOS leader file for PALSAR or PALSAR-2 Level 1.1 SLC data (LED...)
SLC_par:
... | | Reformat EORC PALSAR + PALSAR2 level 1.1 CEOS format SLC data and generate the ISP parameter file
| Copyright 2016, Gamma Remote Sensing, v2.7 27-Apr-2016 clw
Parameters
| [
"|",
"Reformat",
"EORC",
"PALSAR",
"+",
"PALSAR2",
"level",
"1",
".",
"1",
"CEOS",
"format",
"SLC",
"data",
"and",
"generate",
"the",
"ISP",
"parameter",
"file",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"7",
"27",
"-",
"Apr",
... | def par_EORC_PALSAR(CEOS_leader, SLC_par, CEOS_data, SLC='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/par_EORC_PALSAR', CEOS_leader, SLC_par, CEOS_data, SLC], logpath=logpath) | [
"def",
"par_EORC_PALSAR",
"(",
"CEOS_leader",
",",
"SLC_par",
",",
"CEOS_data",
",",
"SLC",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/par_EORC_PALSAR'",
",",
"CEOS_leader",
",",
"SLC_par",
",... | | Reformat EORC PALSAR + PALSAR2 level 1.1 CEOS format SLC data and generate the ISP parameter file
| Copyright 2016, Gamma Remote Sensing, v2.7 27-Apr-2016 clw | [
"|",
"Reformat",
"EORC",
"PALSAR",
"+",
"PALSAR2",
"level",
"1",
".",
"1",
"CEOS",
"format",
"SLC",
"data",
"and",
"generate",
"the",
"ISP",
"parameter",
"file",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"7",
"27",
"-",
"Apr",
... | [
"\"\"\"\n | Reformat EORC PALSAR + PALSAR2 level 1.1 CEOS format SLC data and generate the ISP parameter file\n | Copyright 2016, Gamma Remote Sensing, v2.7 27-Apr-2016 clw\n \n Parameters\n ----------\n CEOS_leader:\n (input) CEOS leader file for PALSAR or PALSAR-2 Level 1.1 SLC data (LED.... | [
{
"param": "CEOS_leader",
"type": null
},
{
"param": "SLC_par",
"type": null
},
{
"param": "CEOS_data",
"type": null
},
{
"param": "SLC",
"type": null
},
{
"param": "logpath",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "CEOS_leader",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC_par",
"type": null,
"docstring": null,
"docstring_... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | par_PRI | null | def par_PRI(CEOS_SAR_leader, PRI_par, CEOS_DAT, PRI, logpath=None):
"""
| ISP parameter file generation for ERS PRI data from the PGS and VMP processors
| Copyright 2012, Gamma Remote Sensing, v1.6 12-Jan-2012 clw
Parameters
----------
CEOS_SAR_leader:
(input) ERS CEOS SAR leader fi... |
| ISP parameter file generation for ERS PRI data from the PGS and VMP processors
| Copyright 2012, Gamma Remote Sensing, v1.6 12-Jan-2012 clw
Parameters
----------
CEOS_SAR_leader:
(input) ERS CEOS SAR leader file for PRI product
PRI_par:
(output) ISP image parameter file (... | | ISP parameter file generation for ERS PRI data from the PGS and VMP processors
| Copyright 2012, Gamma Remote Sensing, v1.6 12-Jan-2012 clw
Parameters
| [
"|",
"ISP",
"parameter",
"file",
"generation",
"for",
"ERS",
"PRI",
"data",
"from",
"the",
"PGS",
"and",
"VMP",
"processors",
"|",
"Copyright",
"2012",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"6",
"12",
"-",
"Jan",
"-",
"2012",
"clw",
"Parameters"
] | def par_PRI(CEOS_SAR_leader, PRI_par, CEOS_DAT, PRI, logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/par_PRI', CEOS_SAR_leader, PRI_par, CEOS_DAT, PRI], logpath=logpath) | [
"def",
"par_PRI",
"(",
"CEOS_SAR_leader",
",",
"PRI_par",
",",
"CEOS_DAT",
",",
"PRI",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/par_PRI'",
",",
"CEOS_SAR_leader",
",",
"PRI_par",
",",
"CEOS_DAT",
",",
... | | ISP parameter file generation for ERS PRI data from the PGS and VMP processors
| Copyright 2012, Gamma Remote Sensing, v1.6 12-Jan-2012 clw | [
"|",
"ISP",
"parameter",
"file",
"generation",
"for",
"ERS",
"PRI",
"data",
"from",
"the",
"PGS",
"and",
"VMP",
"processors",
"|",
"Copyright",
"2012",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"6",
"12",
"-",
"Jan",
"-",
"2012",
"clw"
] | [
"\"\"\"\n | ISP parameter file generation for ERS PRI data from the PGS and VMP processors\n | Copyright 2012, Gamma Remote Sensing, v1.6 12-Jan-2012 clw\n \n Parameters\n ----------\n CEOS_SAR_leader:\n (input) ERS CEOS SAR leader file for PRI product\n PRI_par:\n (output) ISP im... | [
{
"param": "CEOS_SAR_leader",
"type": null
},
{
"param": "PRI_par",
"type": null
},
{
"param": "CEOS_DAT",
"type": null
},
{
"param": "PRI",
"type": null
},
{
"param": "logpath",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "CEOS_SAR_leader",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "PRI_par",
"type": null,
"docstring": null,
"docstr... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | par_RISAT_GRD | null | def par_RISAT_GRD(CEOS_leader, BAND_META, GRD_par, CEOS_image, GRD='-', line_dir='-', pix_dir='-', cal_flg='-', KdB='-', logpath=None):
"""
| Read RISAT-1 Ground-Range data from a CEOS data set and perform radiometric calibration
| Copyright 2015, Gamma Remote Sensing, v1.2 24-Feb-2015 clw
Paramete... |
| Read RISAT-1 Ground-Range data from a CEOS data set and perform radiometric calibration
| Copyright 2015, Gamma Remote Sensing, v1.2 24-Feb-2015 clw
Parameters
----------
CEOS_leader:
(input) CEOS SAR leader file (example: lea_01.001)
BAND_META:
(input) BAND_META.txt, add... | | Read RISAT-1 Ground-Range data from a CEOS data set and perform radiometric calibration
| Copyright 2015, Gamma Remote Sensing, v1.2 24-Feb-2015 clw
Parameters
set output pixel direction (enter - for default):
0: used value derived from CEOS leader file
1: retain input data pixel direction (default)
-1: reverse i... | [
"|",
"Read",
"RISAT",
"-",
"1",
"Ground",
"-",
"Range",
"data",
"from",
"a",
"CEOS",
"data",
"set",
"and",
"perform",
"radiometric",
"calibration",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"2",
"24",
"-",
"Feb",
"-",
"2015",
"... | def par_RISAT_GRD(CEOS_leader, BAND_META, GRD_par, CEOS_image, GRD='-', line_dir='-', pix_dir='-', cal_flg='-', KdB='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/par_RISAT_GRD', CEOS_leader, BAND_META, GRD_par, CEOS_image, GRD, line_dir, pix_dir, cal_flg, KdB], logpath=logpath) | [
"def",
"par_RISAT_GRD",
"(",
"CEOS_leader",
",",
"BAND_META",
",",
"GRD_par",
",",
"CEOS_image",
",",
"GRD",
"=",
"'-'",
",",
"line_dir",
"=",
"'-'",
",",
"pix_dir",
"=",
"'-'",
",",
"cal_flg",
"=",
"'-'",
",",
"KdB",
"=",
"'-'",
",",
"logpath",
"=",
... | | Read RISAT-1 Ground-Range data from a CEOS data set and perform radiometric calibration
| Copyright 2015, Gamma Remote Sensing, v1.2 24-Feb-2015 clw | [
"|",
"Read",
"RISAT",
"-",
"1",
"Ground",
"-",
"Range",
"data",
"from",
"a",
"CEOS",
"data",
"set",
"and",
"perform",
"radiometric",
"calibration",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"2",
"24",
"-",
"Feb",
"-",
"2015",
"... | [
"\"\"\"\n | Read RISAT-1 Ground-Range data from a CEOS data set and perform radiometric calibration\n | Copyright 2015, Gamma Remote Sensing, v1.2 24-Feb-2015 clw\n \n Parameters\n ----------\n CEOS_leader:\n (input) CEOS SAR leader file (example: lea_01.001)\n BAND_META:\n (input... | [
{
"param": "CEOS_leader",
"type": null
},
{
"param": "BAND_META",
"type": null
},
{
"param": "GRD_par",
"type": null
},
{
"param": "CEOS_image",
"type": null
},
{
"param": "GRD",
"type": null
},
{
"param": "line_dir",
"type": null
},
{
"par... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "CEOS_leader",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "BAND_META",
"type": null,
"docstring": null,
"docstrin... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | par_RISAT_SLC | null | def par_RISAT_SLC(CEOS_leader, BAND_META, SLC_par, CEOS_image, SLC='-', line_dir='-', pix_dir='-', cal_flg='-', KdB='-', logpath=None):
"""
| Read RISAT-1 CEOS format SLC data and perform radiometric calibration
| Copyright 2013, Gamma Remote Sensing, v1.1 3-Jun-2013 clw
Parameters
----------
... |
| Read RISAT-1 CEOS format SLC data and perform radiometric calibration
| Copyright 2013, Gamma Remote Sensing, v1.1 3-Jun-2013 clw
Parameters
----------
CEOS_leader:
(input) CEOS SAR leader file (example: lea_01.001)
BAND_META:
(input) BAND_META.txt, additional RISAT syste... | | Read RISAT-1 CEOS format SLC data and perform radiometric calibration
| Copyright 2013, Gamma Remote Sensing, v1.1 3-Jun-2013 clw
Parameters
set output pixel direction (enter - for default):
0: used value derived from CEOS leader file
1: retain input data pixel direction (default)
-1: reverse input data pixel dir... | [
"|",
"Read",
"RISAT",
"-",
"1",
"CEOS",
"format",
"SLC",
"data",
"and",
"perform",
"radiometric",
"calibration",
"|",
"Copyright",
"2013",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"1",
"3",
"-",
"Jun",
"-",
"2013",
"clw",
"Parameters",
"set",
"output",
"... | def par_RISAT_SLC(CEOS_leader, BAND_META, SLC_par, CEOS_image, SLC='-', line_dir='-', pix_dir='-', cal_flg='-', KdB='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/par_RISAT_SLC', CEOS_leader, BAND_META, SLC_par, CEOS_image, SLC, line_dir, pix_dir, cal_flg, KdB], logpath=logpath) | [
"def",
"par_RISAT_SLC",
"(",
"CEOS_leader",
",",
"BAND_META",
",",
"SLC_par",
",",
"CEOS_image",
",",
"SLC",
"=",
"'-'",
",",
"line_dir",
"=",
"'-'",
",",
"pix_dir",
"=",
"'-'",
",",
"cal_flg",
"=",
"'-'",
",",
"KdB",
"=",
"'-'",
",",
"logpath",
"=",
... | | Read RISAT-1 CEOS format SLC data and perform radiometric calibration
| Copyright 2013, Gamma Remote Sensing, v1.1 3-Jun-2013 clw | [
"|",
"Read",
"RISAT",
"-",
"1",
"CEOS",
"format",
"SLC",
"data",
"and",
"perform",
"radiometric",
"calibration",
"|",
"Copyright",
"2013",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"1",
"3",
"-",
"Jun",
"-",
"2013",
"clw"
] | [
"\"\"\"\n | Read RISAT-1 CEOS format SLC data and perform radiometric calibration\n | Copyright 2013, Gamma Remote Sensing, v1.1 3-Jun-2013 clw\n \n Parameters\n ----------\n CEOS_leader:\n (input) CEOS SAR leader file (example: lea_01.001)\n BAND_META:\n (input) BAND_META.txt, ad... | [
{
"param": "CEOS_leader",
"type": null
},
{
"param": "BAND_META",
"type": null
},
{
"param": "SLC_par",
"type": null
},
{
"param": "CEOS_image",
"type": null
},
{
"param": "SLC",
"type": null
},
{
"param": "line_dir",
"type": null
},
{
"par... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "CEOS_leader",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "BAND_META",
"type": null,
"docstring": null,
"docstrin... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | par_RSAT2_SLC | null | def par_RSAT2_SLC(product_XML, lut_XML, GeoTIFF, polarization, SLC_par, SLC, logpath=None):
"""
| Generate SLC parameter and image files for Radarsat 2 SLC data from GeoTIFF
| Copyright 2015, Gamma Remote Sensing, v2.5 13-Aug-2015 awi/clw
Parameters
----------
product_XML:
(input) R... |
| Generate SLC parameter and image files for Radarsat 2 SLC data from GeoTIFF
| Copyright 2015, Gamma Remote Sensing, v2.5 13-Aug-2015 awi/clw
Parameters
----------
product_XML:
(input) Radarsat-2 product annotation XML file (product.xml)
lut_XML:
(input) Radarsat-2 calibra... | | Generate SLC parameter and image files for Radarsat 2 SLC data from GeoTIFF
| Copyright 2015, Gamma Remote Sensing, v2.5 13-Aug-2015 awi/clw
Parameters
| [
"|",
"Generate",
"SLC",
"parameter",
"and",
"image",
"files",
"for",
"Radarsat",
"2",
"SLC",
"data",
"from",
"GeoTIFF",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"5",
"13",
"-",
"Aug",
"-",
"2015",
"awi",
"/",
"clw",
"Parameters"... | def par_RSAT2_SLC(product_XML, lut_XML, GeoTIFF, polarization, SLC_par, SLC, logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/par_RSAT2_SLC', product_XML, lut_XML, GeoTIFF, polarization, SLC_par, SLC], logpath=logpath) | [
"def",
"par_RSAT2_SLC",
"(",
"product_XML",
",",
"lut_XML",
",",
"GeoTIFF",
",",
"polarization",
",",
"SLC_par",
",",
"SLC",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/par_RSAT2_SLC'",
",",
"product_XML",
... | | Generate SLC parameter and image files for Radarsat 2 SLC data from GeoTIFF
| Copyright 2015, Gamma Remote Sensing, v2.5 13-Aug-2015 awi/clw | [
"|",
"Generate",
"SLC",
"parameter",
"and",
"image",
"files",
"for",
"Radarsat",
"2",
"SLC",
"data",
"from",
"GeoTIFF",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"5",
"13",
"-",
"Aug",
"-",
"2015",
"awi",
"/",
"clw"
] | [
"\"\"\"\n | Generate SLC parameter and image files for Radarsat 2 SLC data from GeoTIFF\n | Copyright 2015, Gamma Remote Sensing, v2.5 13-Aug-2015 awi/clw\n \n Parameters\n ----------\n product_XML:\n (input) Radarsat-2 product annotation XML file (product.xml)\n lut_XML:\n (input... | [
{
"param": "product_XML",
"type": null
},
{
"param": "lut_XML",
"type": null
},
{
"param": "GeoTIFF",
"type": null
},
{
"param": "polarization",
"type": null
},
{
"param": "SLC_par",
"type": null
},
{
"param": "SLC",
"type": null
},
{
"para... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "product_XML",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "lut_XML",
"type": null,
"docstring": null,
"docstring_... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | par_S1_GRD | null | def par_S1_GRD(GeoTIFF, annotation_XML, calibration_XML, noise_XML, MLI_par, MLI, GRD_par='-', GRD='-', eflg='-', rps='-', noise_pwr='-', logpath=None):
"""
| Generate MLI and GRD images and parameter files from a Sentinel-1 GRD product
| Copyright 2016, Gamma Remote Sensing, v2.8 17-Aug-2016 awi/clw/ts
... |
| Generate MLI and GRD images and parameter files from a Sentinel-1 GRD product
| Copyright 2016, Gamma Remote Sensing, v2.8 17-Aug-2016 awi/clw/ts
Parameters
----------
GeoTIFF:
(input) image data file in GeoTIFF format (\*.tiff)
annotation_XML:
(input) Sentinel-1 L1 XML a... | | Generate MLI and GRD images and parameter files from a Sentinel-1 GRD product
| Copyright 2016, Gamma Remote Sensing, v2.8 17-Aug-2016 awi/clw/ts
Parameters
slant range pixel spacing (m) (enter - for default: calculated from ground-range parameters)
noise_pwr:
noise intensity for each MLI sample in slant range ... | [
"|",
"Generate",
"MLI",
"and",
"GRD",
"images",
"and",
"parameter",
"files",
"from",
"a",
"Sentinel",
"-",
"1",
"GRD",
"product",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"8",
"17",
"-",
"Aug",
"-",
"2016",
"awi",
"/",
"clw",
... | def par_S1_GRD(GeoTIFF, annotation_XML, calibration_XML, noise_XML, MLI_par, MLI, GRD_par='-', GRD='-', eflg='-', rps='-', noise_pwr='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/par_S1_GRD', GeoTIFF, annotation_XML, calibration_XML, noise_XML, MLI_par, MLI, GRD_par, GRD, eflg, rps, noise_p... | [
"def",
"par_S1_GRD",
"(",
"GeoTIFF",
",",
"annotation_XML",
",",
"calibration_XML",
",",
"noise_XML",
",",
"MLI_par",
",",
"MLI",
",",
"GRD_par",
"=",
"'-'",
",",
"GRD",
"=",
"'-'",
",",
"eflg",
"=",
"'-'",
",",
"rps",
"=",
"'-'",
",",
"noise_pwr",
"="... | | Generate MLI and GRD images and parameter files from a Sentinel-1 GRD product
| Copyright 2016, Gamma Remote Sensing, v2.8 17-Aug-2016 awi/clw/ts | [
"|",
"Generate",
"MLI",
"and",
"GRD",
"images",
"and",
"parameter",
"files",
"from",
"a",
"Sentinel",
"-",
"1",
"GRD",
"product",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"8",
"17",
"-",
"Aug",
"-",
"2016",
"awi",
"/",
"clw",
... | [
"\"\"\"\n | Generate MLI and GRD images and parameter files from a Sentinel-1 GRD product\n | Copyright 2016, Gamma Remote Sensing, v2.8 17-Aug-2016 awi/clw/ts\n \n Parameters\n ----------\n GeoTIFF:\n (input) image data file in GeoTIFF format (\\*.tiff)\n annotation_XML:\n (input... | [
{
"param": "GeoTIFF",
"type": null
},
{
"param": "annotation_XML",
"type": null
},
{
"param": "calibration_XML",
"type": null
},
{
"param": "noise_XML",
"type": null
},
{
"param": "MLI_par",
"type": null
},
{
"param": "MLI",
"type": null
},
{
... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "GeoTIFF",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "annotation_XML",
"type": null,
"docstring": null,
"docstri... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | ph_slope_base | null | def ph_slope_base(int_in, SLC_par, OFF_par, base, int_out, int_type='-', inverse='-', logpath=None):
"""
| Subtract/add interferogram flat-Earth phase trend as estimated from initial baseline
| Copyright 2006, Gamma Remote Sensing, v4.4 3-Nov-2006 clw
Parameters
----------
int_in:
(... |
| Subtract/add interferogram flat-Earth phase trend as estimated from initial baseline
| Copyright 2006, Gamma Remote Sensing, v4.4 3-Nov-2006 clw
Parameters
----------
int_in:
(input) interferogram (FCOMPLEX) or unwrapped phase (FLOAT) (unflattened)
SLC_par:
(input) ISP pa... | | Subtract/add interferogram flat-Earth phase trend as estimated from initial baseline
| Copyright 2006, Gamma Remote Sensing, v4.4 3-Nov-2006 clw
Parameters
| [
"|",
"Subtract",
"/",
"add",
"interferogram",
"flat",
"-",
"Earth",
"phase",
"trend",
"as",
"estimated",
"from",
"initial",
"baseline",
"|",
"Copyright",
"2006",
"Gamma",
"Remote",
"Sensing",
"v4",
".",
"4",
"3",
"-",
"Nov",
"-",
"2006",
"clw",
"Parameters... | def ph_slope_base(int_in, SLC_par, OFF_par, base, int_out, int_type='-', inverse='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/ph_slope_base', int_in, SLC_par, OFF_par, base, int_out, int_type, inverse], logpath=logpath) | [
"def",
"ph_slope_base",
"(",
"int_in",
",",
"SLC_par",
",",
"OFF_par",
",",
"base",
",",
"int_out",
",",
"int_type",
"=",
"'-'",
",",
"inverse",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bi... | | Subtract/add interferogram flat-Earth phase trend as estimated from initial baseline
| Copyright 2006, Gamma Remote Sensing, v4.4 3-Nov-2006 clw | [
"|",
"Subtract",
"/",
"add",
"interferogram",
"flat",
"-",
"Earth",
"phase",
"trend",
"as",
"estimated",
"from",
"initial",
"baseline",
"|",
"Copyright",
"2006",
"Gamma",
"Remote",
"Sensing",
"v4",
".",
"4",
"3",
"-",
"Nov",
"-",
"2006",
"clw"
] | [
"\"\"\"\n | Subtract/add interferogram flat-Earth phase trend as estimated from initial baseline\n | Copyright 2006, Gamma Remote Sensing, v4.4 3-Nov-2006 clw\n \n Parameters\n ----------\n int_in:\n (input) interferogram (FCOMPLEX) or unwrapped phase (FLOAT) (unflattened)\n SLC_par:\n ... | [
{
"param": "int_in",
"type": null
},
{
"param": "SLC_par",
"type": null
},
{
"param": "OFF_par",
"type": null
},
{
"param": "base",
"type": null
},
{
"param": "int_out",
"type": null
},
{
"param": "int_type",
"type": null
},
{
"param": "inv... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "int_in",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC_par",
"type": null,
"docstring": null,
"docstring_token... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | ptarg_SLC | null | def ptarg_SLC(SLC_par, SLC, r_samp, az_samp, ptr_image, r_plot, az_plot, ptr_par='-', osf='-', win='-', pltflg='-', logpath=None):
"""
| Point target response analysis and interpolation for SLC images
| Copyright 2016, Gamma Remote Sensing, v1.9 19-Feb-2016 clw
Parameters
----------
SLC_par... |
| Point target response analysis and interpolation for SLC images
| Copyright 2016, Gamma Remote Sensing, v1.9 19-Feb-2016 clw
Parameters
----------
SLC_par:
(input) SLC image parameter file
SLC:
(input) SLC image in FCOMPLEX or SCOMPLEX format
r_samp:
point tar... | | Point target response analysis and interpolation for SLC images
| Copyright 2016, Gamma Remote Sensing, v1.9 19-Feb-2016 clw
Parameters
str or None
a directory to write command logfiles to | [
"|",
"Point",
"target",
"response",
"analysis",
"and",
"interpolation",
"for",
"SLC",
"images",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"9",
"19",
"-",
"Feb",
"-",
"2016",
"clw",
"Parameters",
"str",
"or",
"None",
"a",
"directory... | def ptarg_SLC(SLC_par, SLC, r_samp, az_samp, ptr_image, r_plot, az_plot, ptr_par='-', osf='-', win='-', pltflg='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/ptarg_SLC', SLC_par, SLC, r_samp, az_samp, ptr_image, r_plot, az_plot, ptr_par, osf, win, pltflg], logpath=logpath) | [
"def",
"ptarg_SLC",
"(",
"SLC_par",
",",
"SLC",
",",
"r_samp",
",",
"az_samp",
",",
"ptr_image",
",",
"r_plot",
",",
"az_plot",
",",
"ptr_par",
"=",
"'-'",
",",
"osf",
"=",
"'-'",
",",
"win",
"=",
"'-'",
",",
"pltflg",
"=",
"'-'",
",",
"logpath",
"... | | Point target response analysis and interpolation for SLC images
| Copyright 2016, Gamma Remote Sensing, v1.9 19-Feb-2016 clw | [
"|",
"Point",
"target",
"response",
"analysis",
"and",
"interpolation",
"for",
"SLC",
"images",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"9",
"19",
"-",
"Feb",
"-",
"2016",
"clw"
] | [
"\"\"\"\n | Point target response analysis and interpolation for SLC images\n | Copyright 2016, Gamma Remote Sensing, v1.9 19-Feb-2016 clw\n \n Parameters\n ----------\n SLC_par:\n (input) SLC image parameter file\n SLC:\n (input) SLC image in FCOMPLEX or SCOMPLEX format\n r_sa... | [
{
"param": "SLC_par",
"type": null
},
{
"param": "SLC",
"type": null
},
{
"param": "r_samp",
"type": null
},
{
"param": "az_samp",
"type": null
},
{
"param": "ptr_image",
"type": null
},
{
"param": "r_plot",
"type": null
},
{
"param": "az_p... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC_par",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC",
"type": null,
"docstring": null,
"docstring_tokens":... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | radcal_pwr_stat | null | def radcal_pwr_stat(SLC_tab, SLC_tab_cal, plist, MSR_cal, PWR_cal, roff='-', loff='-', nr='-', nl='-', plist_out='-', logpath=None):
"""
| Generate calibrated SLC image files using point targets determined from the Mean/Sigma Ratio and Intensity
| Copyright 2012, Gamma Remote Sensing, v1.3 11-May-2012 clw/u... |
| Generate calibrated SLC image files using point targets determined from the Mean/Sigma Ratio and Intensity
| Copyright 2012, Gamma Remote Sensing, v1.3 11-May-2012 clw/uw
Parameters
----------
SLC_tab:
(input) two column list of the SLC filenames and SLC parameter filenames of the un... | | Generate calibrated SLC image files using point targets determined from the Mean/Sigma Ratio and Intensity
| Copyright 2012, Gamma Remote Sensing, v1.3 11-May-2012 clw/uw
Parameters
| [
"|",
"Generate",
"calibrated",
"SLC",
"image",
"files",
"using",
"point",
"targets",
"determined",
"from",
"the",
"Mean",
"/",
"Sigma",
"Ratio",
"and",
"Intensity",
"|",
"Copyright",
"2012",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"3",
"11",
"-",
"May",
"... | def radcal_pwr_stat(SLC_tab, SLC_tab_cal, plist, MSR_cal, PWR_cal, roff='-', loff='-', nr='-', nl='-', plist_out='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/radcal_pwr_stat', SLC_tab, SLC_tab_cal, plist, MSR_cal, PWR_cal, roff, loff, nr, nl, plist_out], logpath=logpath) | [
"def",
"radcal_pwr_stat",
"(",
"SLC_tab",
",",
"SLC_tab_cal",
",",
"plist",
",",
"MSR_cal",
",",
"PWR_cal",
",",
"roff",
"=",
"'-'",
",",
"loff",
"=",
"'-'",
",",
"nr",
"=",
"'-'",
",",
"nl",
"=",
"'-'",
",",
"plist_out",
"=",
"'-'",
",",
"logpath",
... | | Generate calibrated SLC image files using point targets determined from the Mean/Sigma Ratio and Intensity
| Copyright 2012, Gamma Remote Sensing, v1.3 11-May-2012 clw/uw | [
"|",
"Generate",
"calibrated",
"SLC",
"image",
"files",
"using",
"point",
"targets",
"determined",
"from",
"the",
"Mean",
"/",
"Sigma",
"Ratio",
"and",
"Intensity",
"|",
"Copyright",
"2012",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"3",
"11",
"-",
"May",
"... | [
"\"\"\"\n | Generate calibrated SLC image files using point targets determined from the Mean/Sigma Ratio and Intensity\n | Copyright 2012, Gamma Remote Sensing, v1.3 11-May-2012 clw/uw\n \n Parameters\n ----------\n SLC_tab:\n (input) two column list of the SLC filenames and SLC parameter f... | [
{
"param": "SLC_tab",
"type": null
},
{
"param": "SLC_tab_cal",
"type": null
},
{
"param": "plist",
"type": null
},
{
"param": "MSR_cal",
"type": null
},
{
"param": "PWR_cal",
"type": null
},
{
"param": "roff",
"type": null
},
{
"param": "l... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC_tab",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC_tab_cal",
"type": null,
"docstring": null,
"docstring_... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | rascc_mask | null | def rascc_mask(cc, pwr, width, start_cc='-', start_pwr='-', nlines='-', pixavr='-', pixavaz='-', cc_thres='-', pwr_thres='-', cc_min='-', cc_max='-', scale='-', exp='-', LR='-', rasf='-', logpath=None):
"""
| Generate phase unwrapping validity mask using correlation and intensity
| Copyright 2016, Gamma Rem... |
| Generate phase unwrapping validity mask using correlation and intensity
| Copyright 2016, Gamma Remote Sensing, v2.0 12-Sep-2016 clw/uw
Parameters
----------
cc:
(input)interferometric correlation image (float)
pwr:
(input)intensity image (float, enter - if not available)... | | Generate phase unwrapping validity mask using correlation and intensity
| Copyright 2016, Gamma Remote Sensing, v2.0 12-Sep-2016 clw/uw
Parameters
| [
"|",
"Generate",
"phase",
"unwrapping",
"validity",
"mask",
"using",
"correlation",
"and",
"intensity",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"0",
"12",
"-",
"Sep",
"-",
"2016",
"clw",
"/",
"uw",
"Parameters"
] | def rascc_mask(cc, pwr, width, start_cc='-', start_pwr='-', nlines='-', pixavr='-', pixavaz='-', cc_thres='-', pwr_thres='-', cc_min='-', cc_max='-', scale='-', exp='-', LR='-', rasf='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/rascc_mask', cc, pwr, width, start_cc, start_pwr, nlines, pixa... | [
"def",
"rascc_mask",
"(",
"cc",
",",
"pwr",
",",
"width",
",",
"start_cc",
"=",
"'-'",
",",
"start_pwr",
"=",
"'-'",
",",
"nlines",
"=",
"'-'",
",",
"pixavr",
"=",
"'-'",
",",
"pixavaz",
"=",
"'-'",
",",
"cc_thres",
"=",
"'-'",
",",
"pwr_thres",
"=... | | Generate phase unwrapping validity mask using correlation and intensity
| Copyright 2016, Gamma Remote Sensing, v2.0 12-Sep-2016 clw/uw | [
"|",
"Generate",
"phase",
"unwrapping",
"validity",
"mask",
"using",
"correlation",
"and",
"intensity",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"0",
"12",
"-",
"Sep",
"-",
"2016",
"clw",
"/",
"uw"
] | [
"\"\"\"\n | Generate phase unwrapping validity mask using correlation and intensity\n | Copyright 2016, Gamma Remote Sensing, v2.0 12-Sep-2016 clw/uw\n \n Parameters\n ----------\n cc:\n (input)interferometric correlation image (float)\n pwr:\n (input)intensity image (float, enter... | [
{
"param": "cc",
"type": null
},
{
"param": "pwr",
"type": null
},
{
"param": "width",
"type": null
},
{
"param": "start_cc",
"type": null
},
{
"param": "start_pwr",
"type": null
},
{
"param": "nlines",
"type": null
},
{
"param": "pixavr",
... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "cc",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "pwr",
"type": null,
"docstring": null,
"docstring_tokens": [],
... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | residue_cc | null | def residue_cc(int, flag, width, xmin='-', xmax='-', ymin='-', ymax='-', logpath=None):
"""
| Determine interferometric phase unwrapping residues considering low coherence regions
| Copyright 2014, Gamma Remote Sensing, v2.6 20-Jan-2014 clw/uw/ts
Parameters
----------
int:
(input) ... |
| Determine interferometric phase unwrapping residues considering low coherence regions
| Copyright 2014, Gamma Remote Sensing, v2.6 20-Jan-2014 clw/uw/ts
Parameters
----------
int:
(input) interferogram (fcomplex)
flag:
(input) flag file (unsigned char)
width:
... | | Determine interferometric phase unwrapping residues considering low coherence regions
| Copyright 2014, Gamma Remote Sensing, v2.6 20-Jan-2014 clw/uw/ts
Parameters
| [
"|",
"Determine",
"interferometric",
"phase",
"unwrapping",
"residues",
"considering",
"low",
"coherence",
"regions",
"|",
"Copyright",
"2014",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"6",
"20",
"-",
"Jan",
"-",
"2014",
"clw",
"/",
"uw",
"/",
"ts",
"Paramet... | def residue_cc(int, flag, width, xmin='-', xmax='-', ymin='-', ymax='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/residue_cc', int, flag, width, xmin, xmax, ymin, ymax], logpath=logpath) | [
"def",
"residue_cc",
"(",
"int",
",",
"flag",
",",
"width",
",",
"xmin",
"=",
"'-'",
",",
"xmax",
"=",
"'-'",
",",
"ymin",
"=",
"'-'",
",",
"ymax",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-2016... | | Determine interferometric phase unwrapping residues considering low coherence regions
| Copyright 2014, Gamma Remote Sensing, v2.6 20-Jan-2014 clw/uw/ts | [
"|",
"Determine",
"interferometric",
"phase",
"unwrapping",
"residues",
"considering",
"low",
"coherence",
"regions",
"|",
"Copyright",
"2014",
"Gamma",
"Remote",
"Sensing",
"v2",
".",
"6",
"20",
"-",
"Jan",
"-",
"2014",
"clw",
"/",
"uw",
"/",
"ts"
] | [
"\"\"\"\n | Determine interferometric phase unwrapping residues considering low coherence regions\n | Copyright 2014, Gamma Remote Sensing, v2.6 20-Jan-2014 clw/uw/ts\n \n Parameters\n ----------\n int:\n (input) interferogram (fcomplex)\n flag:\n (input) flag file (unsigned char... | [
{
"param": "int",
"type": null
},
{
"param": "flag",
"type": null
},
{
"param": "width",
"type": null
},
{
"param": "xmin",
"type": null
},
{
"param": "xmax",
"type": null
},
{
"param": "ymin",
"type": null
},
{
"param": "ymax",
"type":... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "int",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "flag",
"type": null,
"docstring": null,
"docstring_tokens": []... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | S1_burstloc | null | def S1_burstloc(annotation_XML, logpath=None):
"""
| Print Burst information found in the Sentinel-1 annotation file
| Copyright 2016, Gamma Remote Sensing, v1.0 22-Jan-2016 awi
Parameters
----------
annotation_XML:
(input) Sentinel-1 L1 XML annotation file
logpath: str or None
... |
| Print Burst information found in the Sentinel-1 annotation file
| Copyright 2016, Gamma Remote Sensing, v1.0 22-Jan-2016 awi
Parameters
----------
annotation_XML:
(input) Sentinel-1 L1 XML annotation file
logpath: str or None
a directory to write command logfiles to
| | Print Burst information found in the Sentinel-1 annotation file
| Copyright 2016, Gamma Remote Sensing, v1.0 22-Jan-2016 awi
Parameters
(input) Sentinel-1 L1 XML annotation file
logpath: str or None
a directory to write command logfiles to | [
"|",
"Print",
"Burst",
"information",
"found",
"in",
"the",
"Sentinel",
"-",
"1",
"annotation",
"file",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"0",
"22",
"-",
"Jan",
"-",
"2016",
"awi",
"Parameters",
"(",
"input",
")",
"Sentin... | def S1_burstloc(annotation_XML, logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/S1_burstloc', annotation_XML], logpath=logpath) | [
"def",
"S1_burstloc",
"(",
"annotation_XML",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/S1_burstloc'",
",",
"annotation_XML",
"]",
",",
"logpath",
"=",
"logpath",
")"
] | | Print Burst information found in the Sentinel-1 annotation file
| Copyright 2016, Gamma Remote Sensing, v1.0 22-Jan-2016 awi | [
"|",
"Print",
"Burst",
"information",
"found",
"in",
"the",
"Sentinel",
"-",
"1",
"annotation",
"file",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"0",
"22",
"-",
"Jan",
"-",
"2016",
"awi"
] | [
"\"\"\"\n | Print Burst information found in the Sentinel-1 annotation file\n | Copyright 2016, Gamma Remote Sensing, v1.0 22-Jan-2016 awi\n \n Parameters\n ----------\n annotation_XML:\n (input) Sentinel-1 L1 XML annotation file\n logpath: str or None\n a directory to write comma... | [
{
"param": "annotation_XML",
"type": null
},
{
"param": "logpath",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "annotation_XML",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "logpath",
"type": null,
"docstring": null,
"docstri... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | sbi_filt | null | def sbi_filt(SLC_1, SLC1_par, SLC2R_par, SLCf, SLCf_par, SLCb, SLCb_par, norm_sq, iwflg='-', logpath=None):
"""
| Azimuth filtering of SLC data to support split-beam interferometry to measure azimuth offsets
| Copyright 2016, Gamma Remote Sensing, v1.2 clw 5-Mar-2016
Parameters
----------
S... |
| Azimuth filtering of SLC data to support split-beam interferometry to measure azimuth offsets
| Copyright 2016, Gamma Remote Sensing, v1.2 clw 5-Mar-2016
Parameters
----------
SLC-1:
(input) SLC image (SCOMPLEX or FCOMPLEX format)
SLC1_par:
(input) SLC image parameter fil... | | Azimuth filtering of SLC data to support split-beam interferometry to measure azimuth offsets
| Copyright 2016, Gamma Remote Sensing, v1.2 clw 5-Mar-2016
Parameters
str or None
a directory to write command logfiles to | [
"|",
"Azimuth",
"filtering",
"of",
"SLC",
"data",
"to",
"support",
"split",
"-",
"beam",
"interferometry",
"to",
"measure",
"azimuth",
"offsets",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"2",
"clw",
"5",
"-",
"Mar",
"-",
"2016",
... | def sbi_filt(SLC_1, SLC1_par, SLC2R_par, SLCf, SLCf_par, SLCb, SLCb_par, norm_sq, iwflg='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/sbi_filt', SLC_1, SLC1_par, SLC2R_par, SLCf, SLCf_par, SLCb, SLCb_par, norm_sq, iwflg], logpath=logpath) | [
"def",
"sbi_filt",
"(",
"SLC_1",
",",
"SLC1_par",
",",
"SLC2R_par",
",",
"SLCf",
",",
"SLCf_par",
",",
"SLCb",
",",
"SLCb_par",
",",
"norm_sq",
",",
"iwflg",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWAR... | | Azimuth filtering of SLC data to support split-beam interferometry to measure azimuth offsets
| Copyright 2016, Gamma Remote Sensing, v1.2 clw 5-Mar-2016 | [
"|",
"Azimuth",
"filtering",
"of",
"SLC",
"data",
"to",
"support",
"split",
"-",
"beam",
"interferometry",
"to",
"measure",
"azimuth",
"offsets",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"2",
"clw",
"5",
"-",
"Mar",
"-",
"2016"
] | [
"\"\"\"\n | Azimuth filtering of SLC data to support split-beam interferometry to measure azimuth offsets\n | Copyright 2016, Gamma Remote Sensing, v1.2 clw 5-Mar-2016\n \n Parameters\n ----------\n SLC-1:\n (input) SLC image (SCOMPLEX or FCOMPLEX format)\n SLC1_par:\n (input) SLC... | [
{
"param": "SLC_1",
"type": null
},
{
"param": "SLC1_par",
"type": null
},
{
"param": "SLC2R_par",
"type": null
},
{
"param": "SLCf",
"type": null
},
{
"param": "SLCf_par",
"type": null
},
{
"param": "SLCb",
"type": null
},
{
"param": "SLCb... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC_1",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC1_par",
"type": null,
"docstring": null,
"docstring_token... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | slant_range | null | def slant_range(SLC_par, slr, logpath=None):
"""
| Calculate slant range for every range sample
| Copyright 2013, Gamma Remote Sensing v1.1 28-Aug-2013
Parameters
----------
SLC_par:
(input) SLC or MLI image parameter file
slr:
(output) slant range for every sample in th... |
| Calculate slant range for every range sample
| Copyright 2013, Gamma Remote Sensing v1.1 28-Aug-2013
Parameters
----------
SLC_par:
(input) SLC or MLI image parameter file
slr:
(output) slant range for every sample in the image (float)
logpath: str or None
a d... | | Calculate slant range for every range sample
| Copyright 2013, Gamma Remote Sensing v1.1 28-Aug-2013
Parameters
(input) SLC or MLI image parameter file
slr:
(output) slant range for every sample in the image (float)
logpath: str or None
a directory to write command logfiles to | [
"|",
"Calculate",
"slant",
"range",
"for",
"every",
"range",
"sample",
"|",
"Copyright",
"2013",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"1",
"28",
"-",
"Aug",
"-",
"2013",
"Parameters",
"(",
"input",
")",
"SLC",
"or",
"MLI",
"image",
"parameter",
"file... | def slant_range(SLC_par, slr, logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/slant_range', SLC_par, slr], logpath=logpath) | [
"def",
"slant_range",
"(",
"SLC_par",
",",
"slr",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/slant_range'",
",",
"SLC_par",
",",
"slr",
"]",
",",
"logpath",
"=",
"logpath",
")"
] | | Calculate slant range for every range sample
| Copyright 2013, Gamma Remote Sensing v1.1 28-Aug-2013 | [
"|",
"Calculate",
"slant",
"range",
"for",
"every",
"range",
"sample",
"|",
"Copyright",
"2013",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"1",
"28",
"-",
"Aug",
"-",
"2013"
] | [
"\"\"\"\n | Calculate slant range for every range sample\n | Copyright 2013, Gamma Remote Sensing v1.1 28-Aug-2013\n \n Parameters\n ----------\n SLC_par:\n (input) SLC or MLI image parameter file\n slr:\n (output) slant range for every sample in the image (float)\n logpath: st... | [
{
"param": "SLC_par",
"type": null
},
{
"param": "slr",
"type": null
},
{
"param": "logpath",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC_par",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "slr",
"type": null,
"docstring": null,
"docstring_tokens":... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | SLC_burst_copy | null | def SLC_burst_copy(SLC, SLC_par, TOPS_par, SLC_out, SLC_out_par, burst_num, drflg='-', SLC_par2='-', logpath=None):
"""
| Copy selected burst from Sentinel-1 TOPS SLC to a file
| Copyright 2014, Gamma Remote Sensing, v1.3 21-Oct-2014 awi/clw
Parameters
----------
SLC:
(input) Sentin... |
| Copy selected burst from Sentinel-1 TOPS SLC to a file
| Copyright 2014, Gamma Remote Sensing, v1.3 21-Oct-2014 awi/clw
Parameters
----------
SLC:
(input) Sentinel-1 TOPS mode burst SLC
SLC_par:
(input) SLC parameter file for the TOPS burst SLC
TOPS_par:
(inpu... | | Copy selected burst from Sentinel-1 TOPS SLC to a file
| Copyright 2014, Gamma Remote Sensing, v1.3 21-Oct-2014 awi/clw
Parameters
(output) SLC parameter file for the single burst SLC with deramped phase (drflg: 1)
logpath: str or None
a directory to write command logfiles to | [
"|",
"Copy",
"selected",
"burst",
"from",
"Sentinel",
"-",
"1",
"TOPS",
"SLC",
"to",
"a",
"file",
"|",
"Copyright",
"2014",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"3",
"21",
"-",
"Oct",
"-",
"2014",
"awi",
"/",
"clw",
"Parameters",
"(",
"output",
"... | def SLC_burst_copy(SLC, SLC_par, TOPS_par, SLC_out, SLC_out_par, burst_num, drflg='-', SLC_par2='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/SLC_burst_copy', SLC, SLC_par, TOPS_par, SLC_out, SLC_out_par, burst_num, drflg, SLC_par2], logpath=logpath) | [
"def",
"SLC_burst_copy",
"(",
"SLC",
",",
"SLC_par",
",",
"TOPS_par",
",",
"SLC_out",
",",
"SLC_out_par",
",",
"burst_num",
",",
"drflg",
"=",
"'-'",
",",
"SLC_par2",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMM... | | Copy selected burst from Sentinel-1 TOPS SLC to a file
| Copyright 2014, Gamma Remote Sensing, v1.3 21-Oct-2014 awi/clw | [
"|",
"Copy",
"selected",
"burst",
"from",
"Sentinel",
"-",
"1",
"TOPS",
"SLC",
"to",
"a",
"file",
"|",
"Copyright",
"2014",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"3",
"21",
"-",
"Oct",
"-",
"2014",
"awi",
"/",
"clw"
] | [
"\"\"\"\n | Copy selected burst from Sentinel-1 TOPS SLC to a file\n | Copyright 2014, Gamma Remote Sensing, v1.3 21-Oct-2014 awi/clw\n \n Parameters\n ----------\n SLC:\n (input) Sentinel-1 TOPS mode burst SLC\n SLC_par:\n (input) SLC parameter file for the TOPS burst SLC\n TO... | [
{
"param": "SLC",
"type": null
},
{
"param": "SLC_par",
"type": null
},
{
"param": "TOPS_par",
"type": null
},
{
"param": "SLC_out",
"type": null
},
{
"param": "SLC_out_par",
"type": null
},
{
"param": "burst_num",
"type": null
},
{
"param"... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC_par",
"type": null,
"docstring": null,
"docstring_tokens":... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | SLC_burst_corners | null | def SLC_burst_corners(SLC_par, TOPS_par, logpath=None):
"""
| Calculate corner geographic coordinates of Sentinel-1 TOPS SLC bursts
| Copyright 2016, Gamma Remote Sensing, v1.1 14-Apr-2016 awi/rc/cw
Parameters
----------
SLC_par:
(input) SLC parameter file for the TOPS burst SLC
... |
| Calculate corner geographic coordinates of Sentinel-1 TOPS SLC bursts
| Copyright 2016, Gamma Remote Sensing, v1.1 14-Apr-2016 awi/rc/cw
Parameters
----------
SLC_par:
(input) SLC parameter file for the TOPS burst SLC
TOPS_par:
(input) TOPS parameter file for the TOPS bur... | | Calculate corner geographic coordinates of Sentinel-1 TOPS SLC bursts
| Copyright 2016, Gamma Remote Sensing, v1.1 14-Apr-2016 awi/rc/cw
Parameters
(input) SLC parameter file for the TOPS burst SLC
TOPS_par:
(input) TOPS parameter file for the TOPS burst SLC
logpath: str or None
a directory to write command logfile... | [
"|",
"Calculate",
"corner",
"geographic",
"coordinates",
"of",
"Sentinel",
"-",
"1",
"TOPS",
"SLC",
"bursts",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"1",
"14",
"-",
"Apr",
"-",
"2016",
"awi",
"/",
"rc",
"/",
"cw",
"Parameters"... | def SLC_burst_corners(SLC_par, TOPS_par, logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/SLC_burst_corners', SLC_par, TOPS_par], logpath=logpath) | [
"def",
"SLC_burst_corners",
"(",
"SLC_par",
",",
"TOPS_par",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/SLC_burst_corners'",
",",
"SLC_par",
",",
"TOPS_par",
"]",
",",
"logpath",
"=",
"logpath",
")"
] | | Calculate corner geographic coordinates of Sentinel-1 TOPS SLC bursts
| Copyright 2016, Gamma Remote Sensing, v1.1 14-Apr-2016 awi/rc/cw | [
"|",
"Calculate",
"corner",
"geographic",
"coordinates",
"of",
"Sentinel",
"-",
"1",
"TOPS",
"SLC",
"bursts",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"1",
"14",
"-",
"Apr",
"-",
"2016",
"awi",
"/",
"rc",
"/",
"cw"
] | [
"\"\"\"\n | Calculate corner geographic coordinates of Sentinel-1 TOPS SLC bursts\n | Copyright 2016, Gamma Remote Sensing, v1.1 14-Apr-2016 awi/rc/cw\n \n Parameters\n ----------\n SLC_par:\n (input) SLC parameter file for the TOPS burst SLC\n TOPS_par:\n (input) TOPS parameter f... | [
{
"param": "SLC_par",
"type": null
},
{
"param": "TOPS_par",
"type": null
},
{
"param": "logpath",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC_par",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "TOPS_par",
"type": null,
"docstring": null,
"docstring_tok... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | SLC_cat | null | def SLC_cat(SLC_1, SLC_2, SLC1_par, SLC2_par, OFF_par, SLC_3, SLC3_par, dopflg='-', iflg='-', phflg='-', logpath=None):
"""
| Concatenate two SLC images using 2-D SINC interpolation
| Copyright 2015, Gamma Remote Sensing, v1.6 11-Nov-2015 clw
Parameters
----------
SLC-1:
(input) SLC... |
| Concatenate two SLC images using 2-D SINC interpolation
| Copyright 2015, Gamma Remote Sensing, v1.6 11-Nov-2015 clw
Parameters
----------
SLC-1:
(input) SLC-1 image
SLC-2:
(input) SLC-2 image to be appended to SLC-1
SLC1_par:
(input) SLC-1 ISP image parameter... | | Concatenate two SLC images using 2-D SINC interpolation
| Copyright 2015, Gamma Remote Sensing, v1.6 11-Nov-2015 clw
Parameters
input data type flag:
0: input data are SLC images, use data type specified in SLC_par files (SCOMPLEX or FCOMPLEX) (default)
1: input scenes are interferograms, force FCOMPLEX data type... | [
"|",
"Concatenate",
"two",
"SLC",
"images",
"using",
"2",
"-",
"D",
"SINC",
"interpolation",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"6",
"11",
"-",
"Nov",
"-",
"2015",
"clw",
"Parameters",
"input",
"data",
"type",
"flag",
":",... | def SLC_cat(SLC_1, SLC_2, SLC1_par, SLC2_par, OFF_par, SLC_3, SLC3_par, dopflg='-', iflg='-', phflg='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/SLC_cat', SLC_1, SLC_2, SLC1_par, SLC2_par, OFF_par, SLC_3, SLC3_par, dopflg, iflg, phflg], logpath=logpath) | [
"def",
"SLC_cat",
"(",
"SLC_1",
",",
"SLC_2",
",",
"SLC1_par",
",",
"SLC2_par",
",",
"OFF_par",
",",
"SLC_3",
",",
"SLC3_par",
",",
"dopflg",
"=",
"'-'",
",",
"iflg",
"=",
"'-'",
",",
"phflg",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"pro... | | Concatenate two SLC images using 2-D SINC interpolation
| Copyright 2015, Gamma Remote Sensing, v1.6 11-Nov-2015 clw | [
"|",
"Concatenate",
"two",
"SLC",
"images",
"using",
"2",
"-",
"D",
"SINC",
"interpolation",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"6",
"11",
"-",
"Nov",
"-",
"2015",
"clw"
] | [
"\"\"\"\n | Concatenate two SLC images using 2-D SINC interpolation\n | Copyright 2015, Gamma Remote Sensing, v1.6 11-Nov-2015 clw\n \n Parameters\n ----------\n SLC-1:\n (input) SLC-1 image\n SLC-2:\n (input) SLC-2 image to be appended to SLC-1\n SLC1_par:\n (input) SLC... | [
{
"param": "SLC_1",
"type": null
},
{
"param": "SLC_2",
"type": null
},
{
"param": "SLC1_par",
"type": null
},
{
"param": "SLC2_par",
"type": null
},
{
"param": "OFF_par",
"type": null
},
{
"param": "SLC_3",
"type": null
},
{
"param": "SLC3... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC_1",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC_2",
"type": null,
"docstring": null,
"docstring_tokens":... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | SLC_copy_S1_TOPS | null | def SLC_copy_S1_TOPS(SLC1_tab, SLC2_tab, BURST_tab, dtype='-', logpath=None):
"""
| Copy multiple bursts from a Sentinel-1 TOPS SLC to an output TOPS SLC
| Copyright 2016, Gamma Remote Sensing v1.9 16-Sep-2016 clw
Parameters
----------
SLC1_tab:
(input) 3 column list of TOPS SLC-1 s... |
| Copy multiple bursts from a Sentinel-1 TOPS SLC to an output TOPS SLC
| Copyright 2016, Gamma Remote Sensing v1.9 16-Sep-2016 clw
Parameters
----------
SLC1_tab:
(input) 3 column list of TOPS SLC-1 swaths to be copied in row order IW1, IW2, IW3:
SLC_tab line entries: SL... | | Copy multiple bursts from a Sentinel-1 TOPS SLC to an output TOPS SLC
| Copyright 2016, Gamma Remote Sensing v1.9 16-Sep-2016 clw
Parameters
str or None
a directory to write command logfiles to | [
"|",
"Copy",
"multiple",
"bursts",
"from",
"a",
"Sentinel",
"-",
"1",
"TOPS",
"SLC",
"to",
"an",
"output",
"TOPS",
"SLC",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"9",
"16",
"-",
"Sep",
"-",
"2016",
"clw",
"Parameters",
"str",... | def SLC_copy_S1_TOPS(SLC1_tab, SLC2_tab, BURST_tab, dtype='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/SLC_copy_S1_TOPS', SLC1_tab, SLC2_tab, BURST_tab, dtype], logpath=logpath) | [
"def",
"SLC_copy_S1_TOPS",
"(",
"SLC1_tab",
",",
"SLC2_tab",
",",
"BURST_tab",
",",
"dtype",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/SLC_copy_S1_TOPS'",
",",
"SLC1_tab",
",",
"SLC2_tab",
",... | | Copy multiple bursts from a Sentinel-1 TOPS SLC to an output TOPS SLC
| Copyright 2016, Gamma Remote Sensing v1.9 16-Sep-2016 clw | [
"|",
"Copy",
"multiple",
"bursts",
"from",
"a",
"Sentinel",
"-",
"1",
"TOPS",
"SLC",
"to",
"an",
"output",
"TOPS",
"SLC",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"9",
"16",
"-",
"Sep",
"-",
"2016",
"clw"
] | [
"\"\"\"\n | Copy multiple bursts from a Sentinel-1 TOPS SLC to an output TOPS SLC\n | Copyright 2016, Gamma Remote Sensing v1.9 16-Sep-2016 clw\n \n Parameters\n ----------\n SLC1_tab:\n (input) 3 column list of TOPS SLC-1 swaths to be copied in row order IW1, IW2, IW3:\n SLC_tab... | [
{
"param": "SLC1_tab",
"type": null
},
{
"param": "SLC2_tab",
"type": null
},
{
"param": "BURST_tab",
"type": null
},
{
"param": "dtype",
"type": null
},
{
"param": "logpath",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC1_tab",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC2_tab",
"type": null,
"docstring": null,
"docstring_to... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | SLC_deramp | null | def SLC_deramp(SLC_1, SLC_par1, SLC_2, SLC_par2, mode, dop_ph='-', logpath=None):
"""
| Calculate and subtract Doppler phase from an SLC image
| Copyright 2016, Gamma Remote Sensing, v1.5 4-Feb-2016 clw
Parameters
----------
SLC-1:
(input) SLC data file (fcomplex or scomplex format)... |
| Calculate and subtract Doppler phase from an SLC image
| Copyright 2016, Gamma Remote Sensing, v1.5 4-Feb-2016 clw
Parameters
----------
SLC-1:
(input) SLC data file (fcomplex or scomplex format)
SLC_par1:
(input) SLC parameter file with Doppler information
SLC-2:
... | | Calculate and subtract Doppler phase from an SLC image
| Copyright 2016, Gamma Remote Sensing, v1.5 4-Feb-2016 clw
Parameters
(output) Doppler phase (FLOAT)
Note: SLC_par1 contains the Doppler polynomial that is used to calculate the Doppler phase ramp
logpath: str or None
a directory to write command logfiles to | [
"|",
"Calculate",
"and",
"subtract",
"Doppler",
"phase",
"from",
"an",
"SLC",
"image",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"5",
"4",
"-",
"Feb",
"-",
"2016",
"clw",
"Parameters",
"(",
"output",
")",
"Doppler",
"phase",
"(",... | def SLC_deramp(SLC_1, SLC_par1, SLC_2, SLC_par2, mode, dop_ph='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/SLC_deramp', SLC_1, SLC_par1, SLC_2, SLC_par2, mode, dop_ph], logpath=logpath) | [
"def",
"SLC_deramp",
"(",
"SLC_1",
",",
"SLC_par1",
",",
"SLC_2",
",",
"SLC_par2",
",",
"mode",
",",
"dop_ph",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/SLC_deramp'",
",",
"SLC_1",
",",
... | | Calculate and subtract Doppler phase from an SLC image
| Copyright 2016, Gamma Remote Sensing, v1.5 4-Feb-2016 clw | [
"|",
"Calculate",
"and",
"subtract",
"Doppler",
"phase",
"from",
"an",
"SLC",
"image",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"5",
"4",
"-",
"Feb",
"-",
"2016",
"clw"
] | [
"\"\"\"\n | Calculate and subtract Doppler phase from an SLC image\n | Copyright 2016, Gamma Remote Sensing, v1.5 4-Feb-2016 clw\n \n Parameters\n ----------\n SLC-1:\n (input) SLC data file (fcomplex or scomplex format)\n SLC_par1:\n (input) SLC parameter file with Doppler inform... | [
{
"param": "SLC_1",
"type": null
},
{
"param": "SLC_par1",
"type": null
},
{
"param": "SLC_2",
"type": null
},
{
"param": "SLC_par2",
"type": null
},
{
"param": "mode",
"type": null
},
{
"param": "dop_ph",
"type": null
},
{
"param": "logpat... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC_1",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC_par1",
"type": null,
"docstring": null,
"docstring_token... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | SLC_deramp_S1_TOPS | null | def SLC_deramp_S1_TOPS(SLC1_tab, SLC2_tab, mode, phflg, logpath=None):
"""
| Calculate and subtract S1 TOPS Doppler phase from burst SLC data
| Copyright 2015, Gamma Remote Sensing v1.4 18-Jun-2015
Parameters
----------
SLC1_tab:
(input) 3 column list of TOPS SLC-1 swaths to be dera... |
| Calculate and subtract S1 TOPS Doppler phase from burst SLC data
| Copyright 2015, Gamma Remote Sensing v1.4 18-Jun-2015
Parameters
----------
SLC1_tab:
(input) 3 column list of TOPS SLC-1 swaths to be deramped in row order IW1, IW2, IW3:
SLC_tab line entries: SLC SL... | | Calculate and subtract S1 TOPS Doppler phase from burst SLC data
| Copyright 2015, Gamma Remote Sensing v1.4 18-Jun-2015
Parameters
deramp phase flag:
0: do not save TOPS Doppler phase (default)
1: save TOPS Doppler phase, output filename is the same as the deramped SLC with extension .dph
str or None
a director... | [
"|",
"Calculate",
"and",
"subtract",
"S1",
"TOPS",
"Doppler",
"phase",
"from",
"burst",
"SLC",
"data",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"4",
"18",
"-",
"Jun",
"-",
"2015",
"Parameters",
"deramp",
"phase",
"flag",
":",
"0... | def SLC_deramp_S1_TOPS(SLC1_tab, SLC2_tab, mode, phflg, logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/SLC_deramp_S1_TOPS', SLC1_tab, SLC2_tab, mode, phflg], logpath=logpath) | [
"def",
"SLC_deramp_S1_TOPS",
"(",
"SLC1_tab",
",",
"SLC2_tab",
",",
"mode",
",",
"phflg",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/SLC_deramp_S1_TOPS'",
",",
"SLC1_tab",
",",
"SLC2_tab",
",",
"mode",
",... | | Calculate and subtract S1 TOPS Doppler phase from burst SLC data
| Copyright 2015, Gamma Remote Sensing v1.4 18-Jun-2015 | [
"|",
"Calculate",
"and",
"subtract",
"S1",
"TOPS",
"Doppler",
"phase",
"from",
"burst",
"SLC",
"data",
"|",
"Copyright",
"2015",
"Gamma",
"Remote",
"Sensing",
"v1",
".",
"4",
"18",
"-",
"Jun",
"-",
"2015"
] | [
"\"\"\"\n | Calculate and subtract S1 TOPS Doppler phase from burst SLC data\n | Copyright 2015, Gamma Remote Sensing v1.4 18-Jun-2015\n \n Parameters\n ----------\n SLC1_tab:\n (input) 3 column list of TOPS SLC-1 swaths to be deramped in row order IW1, IW2, IW3:\n SLC_tab line e... | [
{
"param": "SLC1_tab",
"type": null
},
{
"param": "SLC2_tab",
"type": null
},
{
"param": "mode",
"type": null
},
{
"param": "phflg",
"type": null
},
{
"param": "logpath",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC1_tab",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC2_tab",
"type": null,
"docstring": null,
"docstring_to... |
c1f0eb56ed8486f344b88f991f69f39a5dca778f | ibaris/pyroSAR | pyroSAR/gamma/parser_demo.py | [
"MIT"
] | Python | SLC_mosaic_S1_TOPS | null | def SLC_mosaic_S1_TOPS(SLC_tab, SLC, SLC_par, rlks, azlks, wflg='-', SLCR_tab='-', logpath=None):
"""
| Calculate SLC mosaic of Sentinel-1 TOPS burst SLC data
| Copyright 2016, Gamma Remote Sensing v3.5 23-August-2016 clw/awi
Parameters
----------
SLC_tab:
(input) 3 column list of S... |
| Calculate SLC mosaic of Sentinel-1 TOPS burst SLC data
| Copyright 2016, Gamma Remote Sensing v3.5 23-August-2016 clw/awi
Parameters
----------
SLC_tab:
(input) 3 column list of SLC, SLC_par, Sentinel-1 TOPS_par sorted in the order IW1, IW2, IW3...
SLC:
(output) SLC mosai... | | Calculate SLC mosaic of Sentinel-1 TOPS burst SLC data
| Copyright 2016, Gamma Remote Sensing v3.5 23-August-2016 clw/awi
Parameters
(input) SLC_tab of the reference scene, 3 column list of SLC, SLC_par, TOPS_par sorted sorted in the order IW1, IW2, IW3
NOTE: When generating a mosaic of a resampled SLC, the SLC_t... | [
"|",
"Calculate",
"SLC",
"mosaic",
"of",
"Sentinel",
"-",
"1",
"TOPS",
"burst",
"SLC",
"data",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v3",
".",
"5",
"23",
"-",
"August",
"-",
"2016",
"clw",
"/",
"awi",
"Parameters",
"(",
"input",
")",... | def SLC_mosaic_S1_TOPS(SLC_tab, SLC, SLC_par, rlks, azlks, wflg='-', SLCR_tab='-', logpath=None):
process(['/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/SLC_mosaic_S1_TOPS', SLC_tab, SLC, SLC_par, rlks, azlks, wflg, SLCR_tab], logpath=logpath) | [
"def",
"SLC_mosaic_S1_TOPS",
"(",
"SLC_tab",
",",
"SLC",
",",
"SLC_par",
",",
"rlks",
",",
"azlks",
",",
"wflg",
"=",
"'-'",
",",
"SLCR_tab",
"=",
"'-'",
",",
"logpath",
"=",
"None",
")",
":",
"process",
"(",
"[",
"'/cluster/GAMMA_SOFTWARE-20161207/ISP/bin/S... | | Calculate SLC mosaic of Sentinel-1 TOPS burst SLC data
| Copyright 2016, Gamma Remote Sensing v3.5 23-August-2016 clw/awi | [
"|",
"Calculate",
"SLC",
"mosaic",
"of",
"Sentinel",
"-",
"1",
"TOPS",
"burst",
"SLC",
"data",
"|",
"Copyright",
"2016",
"Gamma",
"Remote",
"Sensing",
"v3",
".",
"5",
"23",
"-",
"August",
"-",
"2016",
"clw",
"/",
"awi"
] | [
"\"\"\"\n | Calculate SLC mosaic of Sentinel-1 TOPS burst SLC data\n | Copyright 2016, Gamma Remote Sensing v3.5 23-August-2016 clw/awi\n \n Parameters\n ----------\n SLC_tab:\n (input) 3 column list of SLC, SLC_par, Sentinel-1 TOPS_par sorted in the order IW1, IW2, IW3...\n SLC:\n ... | [
{
"param": "SLC_tab",
"type": null
},
{
"param": "SLC",
"type": null
},
{
"param": "SLC_par",
"type": null
},
{
"param": "rlks",
"type": null
},
{
"param": "azlks",
"type": null
},
{
"param": "wflg",
"type": null
},
{
"param": "SLCR_tab",
... | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "SLC_tab",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "SLC",
"type": null,
"docstring": null,
"docstring_tokens":... |
df1cc0821d5f8f6d4967b764118984740670c659 | Bibyutatsu/TorchRT | Inference/data/fashionmnist/generate_pgms.py | [
"MIT"
] | Python | main | null | def main():
"""Creating PGM files for Inference
This functions creates Inference Images from Fashion MNIST validation
data
"""
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("-o", "--output", help="Path to the output directo... | Creating PGM files for Inference
This functions creates Inference Images from Fashion MNIST validation
data
| Creating PGM files for Inference
This functions creates Inference Images from Fashion MNIST validation
data | [
"Creating",
"PGM",
"files",
"for",
"Inference",
"This",
"functions",
"creates",
"Inference",
"Images",
"from",
"Fashion",
"MNIST",
"validation",
"data"
] | def main():
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("-o", "--output", help="Path to the output directory.")
parser.add_argument("-i", "--imfile", default="./", help="Image text file")
parser.add_argument("-n", "--numimg", defa... | [
"def",
"main",
"(",
")",
":",
"parser",
"=",
"argparse",
".",
"ArgumentParser",
"(",
"formatter_class",
"=",
"argparse",
".",
"ArgumentDefaultsHelpFormatter",
")",
"parser",
".",
"add_argument",
"(",
"\"-o\"",
",",
"\"--output\"",
",",
"help",
"=",
"\"Path to th... | Creating PGM files for Inference
This functions creates Inference Images from Fashion MNIST validation
data | [
"Creating",
"PGM",
"files",
"for",
"Inference",
"This",
"functions",
"creates",
"Inference",
"Images",
"from",
"Fashion",
"MNIST",
"validation",
"data"
] | [
"\"\"\"Creating PGM files for Inference\n\n This functions creates Inference Images from Fashion MNIST validation\n data\n \"\"\""
] | [] | {
"returns": [],
"raises": [],
"params": [],
"outlier_params": [],
"others": []
} |
3de0c899eb56d5bc15d0738079cc651514f8c6dc | Bibyutatsu/TorchRT | Research/py2onnx.py | [
"MIT"
] | Python | load_model_weight | <not_specific> | def load_model_weight(model, model_path):
"""Load the model using .pt/.pth file
Loads the pytorch model using the PTH file containing the model parameters
Args:
model: The Pytorch model without trained weights
model_path: The PTH/PT file location
Returns:
model: The updated py... | Load the model using .pt/.pth file
Loads the pytorch model using the PTH file containing the model parameters
Args:
model: The Pytorch model without trained weights
model_path: The PTH/PT file location
Returns:
model: The updated pytorch model
| Load the model using .pt/.pth file
Loads the pytorch model using the PTH file containing the model parameters | [
"Load",
"the",
"model",
"using",
".",
"pt",
"/",
".",
"pth",
"file",
"Loads",
"the",
"pytorch",
"model",
"using",
"the",
"PTH",
"file",
"containing",
"the",
"model",
"parameters"
] | def load_model_weight(model, model_path):
model.load_state_dict(torch.load(model_path))
model = model.eval()
return model | [
"def",
"load_model_weight",
"(",
"model",
",",
"model_path",
")",
":",
"model",
".",
"load_state_dict",
"(",
"torch",
".",
"load",
"(",
"model_path",
")",
")",
"model",
"=",
"model",
".",
"eval",
"(",
")",
"return",
"model"
] | Load the model using .pt/.pth file
Loads the pytorch model using the PTH file containing the model parameters | [
"Load",
"the",
"model",
"using",
".",
"pt",
"/",
".",
"pth",
"file",
"Loads",
"the",
"pytorch",
"model",
"using",
"the",
"PTH",
"file",
"containing",
"the",
"model",
"parameters"
] | [
"\"\"\"Load the model using .pt/.pth file\n\n Loads the pytorch model using the PTH file containing the model parameters\n\n Args:\n model: The Pytorch model without trained weights\n model_path: The PTH/PT file location\n\n Returns:\n model: The updated pytorch model\n \"\"\""
] | [
{
"param": "model",
"type": null
},
{
"param": "model_path",
"type": null
}
] | {
"returns": [
{
"docstring": "The updated pytorch model",
"docstring_tokens": [
"The",
"updated",
"pytorch",
"model"
],
"type": "model"
}
],
"raises": [],
"params": [
{
"identifier": "model",
"type": null,
"docstring": "The P... |
3de0c899eb56d5bc15d0738079cc651514f8c6dc | Bibyutatsu/TorchRT | Research/py2onnx.py | [
"MIT"
] | Python | export_onnx_model | <not_specific> | def export_onnx_model(model,
input_shape,
onnx_path,
input_names=None,
output_names=None,
dynamic_axes=None):
"""Export Pytorch model to ONNX
Helps in creating the ONNX file from the pytorch model.
... | Export Pytorch model to ONNX
Helps in creating the ONNX file from the pytorch model.
Actual code by zong fan
https://medium.com/@fanzongshaoxing/accelerate-pytorch-model-with-tensorrt-via-onnx-d5b5164b369
Args:
model: The pytorch model
input_shape: Dummy input shape for the model
... | Export Pytorch model to ONNX
Helps in creating the ONNX file from the pytorch model. | [
"Export",
"Pytorch",
"model",
"to",
"ONNX",
"Helps",
"in",
"creating",
"the",
"ONNX",
"file",
"from",
"the",
"pytorch",
"model",
"."
] | def export_onnx_model(model,
input_shape,
onnx_path,
input_names=None,
output_names=None,
dynamic_axes=None):
inputs = torch.ones(*input_shape)
model(inputs)
torch.onnx.export(model,
... | [
"def",
"export_onnx_model",
"(",
"model",
",",
"input_shape",
",",
"onnx_path",
",",
"input_names",
"=",
"None",
",",
"output_names",
"=",
"None",
",",
"dynamic_axes",
"=",
"None",
")",
":",
"inputs",
"=",
"torch",
".",
"ones",
"(",
"*",
"input_shape",
")"... | Export Pytorch model to ONNX
Helps in creating the ONNX file from the pytorch model. | [
"Export",
"Pytorch",
"model",
"to",
"ONNX",
"Helps",
"in",
"creating",
"the",
"ONNX",
"file",
"from",
"the",
"pytorch",
"model",
"."
] | [
"\"\"\"Export Pytorch model to ONNX\n\n Helps in creating the ONNX file from the pytorch model.\n Actual code by zong fan\n https://medium.com/@fanzongshaoxing/accelerate-pytorch-model-with-tensorrt-via-onnx-d5b5164b369\n\n Args:\n model: The pytorch model\n input_shape: Dummy input shape ... | [
{
"param": "model",
"type": null
},
{
"param": "input_shape",
"type": null
},
{
"param": "onnx_path",
"type": null
},
{
"param": "input_names",
"type": null
},
{
"param": "output_names",
"type": null
},
{
"param": "dynamic_axes",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "model",
"type": null,
"docstring": "The pytorch model",
"docstring_tokens": [
"The",
"pytorch",
"model"
],
"default": null,
"is_optional": null
},
{
"identifier": "input_... |
3bb5d0ef0644daedd4daffd7ec22147ef51179c1 | JennySnyk/msticpy | msticpy/sectools/tiproviders/http_base.py | [
"MIT"
] | Python | lookup_ioc | LookupResult | def lookup_ioc( # type: ignore
self, ioc: str, ioc_type: str = None, query_type: str = None, **kwargs
) -> LookupResult:
"""
Lookup a single IoC observable.
Parameters
----------
ioc : str
IoC observable
ioc_type : str, optional
IocTy... |
Lookup a single IoC observable.
Parameters
----------
ioc : str
IoC observable
ioc_type : str, optional
IocType, by default None (type will be inferred)
query_type : str, optional
Specify the data subtype to be queried, by default Non... | Lookup a single IoC observable.
Parameters
ioc : str
IoC observable
ioc_type : str, optional
IocType, by default None (type will be inferred)
query_type : str, optional
Specify the data subtype to be queried, by default None.
If not specified the default record type for the IoC type
will be returned.
Returns
LookupR... | [
"Lookup",
"a",
"single",
"IoC",
"observable",
".",
"Parameters",
"ioc",
":",
"str",
"IoC",
"observable",
"ioc_type",
":",
"str",
"optional",
"IocType",
"by",
"default",
"None",
"(",
"type",
"will",
"be",
"inferred",
")",
"query_type",
":",
"str",
"optional",... | def lookup_ioc(
self, ioc: str, ioc_type: str = None, query_type: str = None, **kwargs
) -> LookupResult:
result = self._check_ioc_type(
ioc=ioc, ioc_type=ioc_type, query_subtype=query_type
)
result.provider = kwargs.get("provider_name", self.__class__.__name__)
... | [
"def",
"lookup_ioc",
"(",
"self",
",",
"ioc",
":",
"str",
",",
"ioc_type",
":",
"str",
"=",
"None",
",",
"query_type",
":",
"str",
"=",
"None",
",",
"**",
"kwargs",
")",
"->",
"LookupResult",
":",
"result",
"=",
"self",
".",
"_check_ioc_type",
"(",
"... | Lookup a single IoC observable. | [
"Lookup",
"a",
"single",
"IoC",
"observable",
"."
] | [
"# type: ignore",
"\"\"\"\n Lookup a single IoC observable.\n\n Parameters\n ----------\n ioc : str\n IoC observable\n ioc_type : str, optional\n IocType, by default None (type will be inferred)\n query_type : str, optional\n Specify the d... | [
{
"param": "self",
"type": null
},
{
"param": "ioc",
"type": "str"
},
{
"param": "ioc_type",
"type": "str"
},
{
"param": "query_type",
"type": "str"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "ioc",
"type": "str",
"docstring": null,
"docstring_tokens": [... |
3bb5d0ef0644daedd4daffd7ec22147ef51179c1 | JennySnyk/msticpy | msticpy/sectools/tiproviders/http_base.py | [
"MIT"
] | Python | parse_results | Tuple[bool, TISeverity, Any] | def parse_results(self, response: LookupResult) -> Tuple[bool, TISeverity, Any]:
"""
Return the details of the response.
Parameters
----------
response : LookupResult
The returned data response
Returns
-------
Tuple[bool, TISeverity, Any]
... |
Return the details of the response.
Parameters
----------
response : LookupResult
The returned data response
Returns
-------
Tuple[bool, TISeverity, Any]
bool = positive or negative hit
TISeverity = enumeration of severity
... | Return the details of the response.
Parameters
response : LookupResult
The returned data response
Returns
Tuple[bool, TISeverity, Any]
bool = positive or negative hit
TISeverity = enumeration of severity
Object with match details | [
"Return",
"the",
"details",
"of",
"the",
"response",
".",
"Parameters",
"response",
":",
"LookupResult",
"The",
"returned",
"data",
"response",
"Returns",
"Tuple",
"[",
"bool",
"TISeverity",
"Any",
"]",
"bool",
"=",
"positive",
"or",
"negative",
"hit",
"TISeve... | def parse_results(self, response: LookupResult) -> Tuple[bool, TISeverity, Any]: | [
"def",
"parse_results",
"(",
"self",
",",
"response",
":",
"LookupResult",
")",
"->",
"Tuple",
"[",
"bool",
",",
"TISeverity",
",",
"Any",
"]",
":"
] | Return the details of the response. | [
"Return",
"the",
"details",
"of",
"the",
"response",
"."
] | [
"\"\"\"\n Return the details of the response.\n\n Parameters\n ----------\n response : LookupResult\n The returned data response\n\n Returns\n -------\n Tuple[bool, TISeverity, Any]\n bool = positive or negative hit\n TISeverity = enu... | [
{
"param": "self",
"type": null
},
{
"param": "response",
"type": "LookupResult"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "response",
"type": "LookupResult",
"docstring": null,
"docstr... |
3bb5d0ef0644daedd4daffd7ec22147ef51179c1 | JennySnyk/msticpy | msticpy/sectools/tiproviders/http_base.py | [
"MIT"
] | Python | _failed_response | bool | def _failed_response(response: LookupResult) -> bool:
"""
Return True if negative response.
Parameters
----------
response : LookupResult
The returned data response
Returns
-------
bool
True if the response indicated failure.
... |
Return True if negative response.
Parameters
----------
response : LookupResult
The returned data response
Returns
-------
bool
True if the response indicated failure.
| Return True if negative response.
Parameters
response : LookupResult
The returned data response
Returns
bool
True if the response indicated failure. | [
"Return",
"True",
"if",
"negative",
"response",
".",
"Parameters",
"response",
":",
"LookupResult",
"The",
"returned",
"data",
"response",
"Returns",
"bool",
"True",
"if",
"the",
"response",
"indicated",
"failure",
"."
] | def _failed_response(response: LookupResult) -> bool:
return (
response.status != 200
or not response.raw_result
or not isinstance(response.raw_result, dict)
) | [
"def",
"_failed_response",
"(",
"response",
":",
"LookupResult",
")",
"->",
"bool",
":",
"return",
"(",
"response",
".",
"status",
"!=",
"200",
"or",
"not",
"response",
".",
"raw_result",
"or",
"not",
"isinstance",
"(",
"response",
".",
"raw_result",
",",
... | Return True if negative response. | [
"Return",
"True",
"if",
"negative",
"response",
"."
] | [
"\"\"\"\n Return True if negative response.\n\n Parameters\n ----------\n response : LookupResult\n The returned data response\n\n Returns\n -------\n bool\n True if the response indicated failure.\n\n \"\"\""
] | [
{
"param": "response",
"type": "LookupResult"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "response",
"type": "LookupResult",
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
9a10cb58e2a7df28a86f014d35ca80f33cf838be | JennySnyk/msticpy | msticpy/sectools/tiproviders/ti_provider_base.py | [
"MIT"
] | Python | summary | null | def summary(self):
"""Print a summary of the Lookup Result."""
p_pr = pprint.PrettyPrinter(indent=4)
print("ioc:", self.ioc, "(", self.ioc_type, ")")
print("result:", self.result)
# print("severity:", self.severity)
p_pr.pprint(self.details)
print("reference: ", s... | Print a summary of the Lookup Result. | Print a summary of the Lookup Result. | [
"Print",
"a",
"summary",
"of",
"the",
"Lookup",
"Result",
"."
] | def summary(self):
p_pr = pprint.PrettyPrinter(indent=4)
print("ioc:", self.ioc, "(", self.ioc_type, ")")
print("result:", self.result)
p_pr.pprint(self.details)
print("reference: ", self.reference) | [
"def",
"summary",
"(",
"self",
")",
":",
"p_pr",
"=",
"pprint",
".",
"PrettyPrinter",
"(",
"indent",
"=",
"4",
")",
"print",
"(",
"\"ioc:\"",
",",
"self",
".",
"ioc",
",",
"\"(\"",
",",
"self",
".",
"ioc_type",
",",
"\")\"",
")",
"print",
"(",
"\"r... | Print a summary of the Lookup Result. | [
"Print",
"a",
"summary",
"of",
"the",
"Lookup",
"Result",
"."
] | [
"\"\"\"Print a summary of the Lookup Result.\"\"\"",
"# print(\"severity:\", self.severity)"
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
9a10cb58e2a7df28a86f014d35ca80f33cf838be | JennySnyk/msticpy | msticpy/sectools/tiproviders/ti_provider_base.py | [
"MIT"
] | Python | severity_name | str | def severity_name(self) -> str:
"""
Return text description of severity score.
Returns
-------
str
Severity description.
"""
try:
return TISeverity(self.severity).name
except ValueError:
return TISeverity.unknown.name |
Return text description of severity score.
Returns
-------
str
Severity description.
| Return text description of severity score.
Returns
str
Severity description. | [
"Return",
"text",
"description",
"of",
"severity",
"score",
".",
"Returns",
"str",
"Severity",
"description",
"."
] | def severity_name(self) -> str:
try:
return TISeverity(self.severity).name
except ValueError:
return TISeverity.unknown.name | [
"def",
"severity_name",
"(",
"self",
")",
"->",
"str",
":",
"try",
":",
"return",
"TISeverity",
"(",
"self",
".",
"severity",
")",
".",
"name",
"except",
"ValueError",
":",
"return",
"TISeverity",
".",
"unknown",
".",
"name"
] | Return text description of severity score. | [
"Return",
"text",
"description",
"of",
"severity",
"score",
"."
] | [
"\"\"\"\n Return text description of severity score.\n\n Returns\n -------\n str\n Severity description.\n\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
9a10cb58e2a7df28a86f014d35ca80f33cf838be | JennySnyk/msticpy | msticpy/sectools/tiproviders/ti_provider_base.py | [
"MIT"
] | Python | column_map | <not_specific> | def column_map(cls):
"""Return a dictionary that maps fields to DF Names."""
col_mapping = {}
for name in attr.fields_dict(cls):
out_name = "".join(part.capitalize() for part in name.split("_"))
col_mapping[name] = out_name
return col_mapping | Return a dictionary that maps fields to DF Names. | Return a dictionary that maps fields to DF Names. | [
"Return",
"a",
"dictionary",
"that",
"maps",
"fields",
"to",
"DF",
"Names",
"."
] | def column_map(cls):
col_mapping = {}
for name in attr.fields_dict(cls):
out_name = "".join(part.capitalize() for part in name.split("_"))
col_mapping[name] = out_name
return col_mapping | [
"def",
"column_map",
"(",
"cls",
")",
":",
"col_mapping",
"=",
"{",
"}",
"for",
"name",
"in",
"attr",
".",
"fields_dict",
"(",
"cls",
")",
":",
"out_name",
"=",
"\"\"",
".",
"join",
"(",
"part",
".",
"capitalize",
"(",
")",
"for",
"part",
"in",
"na... | Return a dictionary that maps fields to DF Names. | [
"Return",
"a",
"dictionary",
"that",
"maps",
"fields",
"to",
"DF",
"Names",
"."
] | [
"\"\"\"Return a dictionary that maps fields to DF Names.\"\"\""
] | [
{
"param": "cls",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "cls",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
9a10cb58e2a7df28a86f014d35ca80f33cf838be | JennySnyk/msticpy | msticpy/sectools/tiproviders/ti_provider_base.py | [
"MIT"
] | Python | lookup_ioc | LookupResult | def lookup_ioc(
self, ioc: str, ioc_type: str = None, query_type: str = None, **kwargs
) -> LookupResult:
"""
Lookup a single IoC observable.
Parameters
----------
ioc : str
IoC Observable value
ioc_type : str, optional
IoC Type, by de... |
Lookup a single IoC observable.
Parameters
----------
ioc : str
IoC Observable value
ioc_type : str, optional
IoC Type, by default None (type will be inferred)
query_type : str, optional
Specify the data subtype to be queried, by defa... | Lookup a single IoC observable.
Parameters
ioc : str
IoC Observable value
ioc_type : str, optional
IoC Type, by default None (type will be inferred)
query_type : str, optional
Specify the data subtype to be queried, by default None.
If not specified the default record type for the IoC type
will be returned.
Returns
... | [
"Lookup",
"a",
"single",
"IoC",
"observable",
".",
"Parameters",
"ioc",
":",
"str",
"IoC",
"Observable",
"value",
"ioc_type",
":",
"str",
"optional",
"IoC",
"Type",
"by",
"default",
"None",
"(",
"type",
"will",
"be",
"inferred",
")",
"query_type",
":",
"st... | def lookup_ioc(
self, ioc: str, ioc_type: str = None, query_type: str = None, **kwargs
) -> LookupResult: | [
"def",
"lookup_ioc",
"(",
"self",
",",
"ioc",
":",
"str",
",",
"ioc_type",
":",
"str",
"=",
"None",
",",
"query_type",
":",
"str",
"=",
"None",
",",
"**",
"kwargs",
")",
"->",
"LookupResult",
":"
] | Lookup a single IoC observable. | [
"Lookup",
"a",
"single",
"IoC",
"observable",
"."
] | [
"\"\"\"\n Lookup a single IoC observable.\n\n Parameters\n ----------\n ioc : str\n IoC Observable value\n ioc_type : str, optional\n IoC Type, by default None (type will be inferred)\n query_type : str, optional\n Specify the data subtype t... | [
{
"param": "self",
"type": null
},
{
"param": "ioc",
"type": "str"
},
{
"param": "ioc_type",
"type": "str"
},
{
"param": "query_type",
"type": "str"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "ioc",
"type": "str",
"docstring": null,
"docstring_tokens": [... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.