Commit 0b77ce39 by Arne de Wall

added script to extract scene names, updated documentation, added resulting csv

parent 20a18d7f
......@@ -25,9 +25,9 @@ python read_patch.py -r BigEarthNet-S1-v1.0/
The BigEarthNet-S1 archive should be downloaded first. Either [GDAL](https://pypi.org/project/GDAL/) or [rasterio](https://github.com/mapbox/rasterio/) package should be installed. To use the resulting pixel values, [NumPy](http://www.numpy.org/) package can also be installed.
#### Python script to extract names and download links of the Sentinel-1 Level-1C GRD scenes that were used to create the BigEarthNet-S1 image patches ([extract_tile_names_and_links.py](https://gitlab.tubit.tu-berlin.de/rsim/BigEarthNet-S1_tools/blob/master/scripts/extract_tile_names_and_links.py))
#### Python script to extract names and download links of the Sentinel-1 Level-1C GRD scenes that were used to create the BigEarthNet-S1 image patches ([extract_tile_names_and_links.py](https://gitlab.tubit.tu-berlin.de/rsim/BigEarthNet-S1_tools/blob/master/scripts/extract_scene_names_and_links.py))
This script creates a csv file whose each row contains the patch name, corresponding Sentinel-1 GRD scene filename and tile download link. You can directly use the resulting file from [files/tile_names_and_links.csv](https://gitlab.tubit.tu-berlin.de/rsim/BigEarthNet-S2_tools/blob/master/files/tile_names_and_links.csv) without running the script.
This script creates a csv file whose each row contains the patch name, corresponding Sentinel-1 GRD scene filename and tile download link. You can directly use the resulting file from [files/scene_names_and_links.csv](https://gitlab.tubit.tu-berlin.de/rsim/BigEarthNet-S1_tools/blob/master/files/scene_names_and_links.csv) without running the script.
* Examples:
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -81,11 +81,11 @@ with open(os.path.realpath(args.out_path), 'w') as fp:
patch_name = os.path.basename(patch_folder_path)
labels_metadata_path = os.path.join(patch_folder_path,
patch_name + '_labels_metadata.json')
# Reads labels_metadata json file
with open(labels_metadata_path, 'r') as f:
labels_metadata = json.load(f)
#S1A_IW_GRDH_1SDV_20180327T064301_20180327T064326_021197_024730_016F
scene_identifier = labels_metadata["scene_source"]
scene_filename = scene_identifier + ".SAFE"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment