Skip to content

Commit

Permalink
Correction for relative orbit padding
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftek committed Mar 17, 2017
1 parent 54ec216 commit d81d28e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/java/ro/cs/products/sentinel2/amazon/AmazonSearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@
import java.net.URI;
import java.net.URISyntaxException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

/**
Expand Down Expand Up @@ -124,7 +131,7 @@ public List<ProductDescriptor> execute() throws Exception {
jsonProduct = jsonProduct.replace("?delimiter=/&prefix=", "");
ProductDescriptor descriptor = parseProductJson(jsonProduct);
if (this.relativeOrbit == 0 ||
descriptor.getName().contains("_R" + String.format("%02d", this.relativeOrbit))) {
descriptor.getName().contains("_R" + String.format("%03d", this.relativeOrbit))) {
results.put(descriptor.getName(), descriptor);
}
}
Expand Down

0 comments on commit d81d28e

Please sign in to comment.