-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from aerospaceresearch/Vladyslav_dev
Visualization update
- Loading branch information
Showing
301 changed files
with
1,030 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import os | ||
import argparse | ||
|
||
from shutil import copyfile | ||
from directdemod import constants | ||
|
||
|
||
def main(): | ||
"""CLI interface for generating maps for noaa images""" | ||
|
||
parser = argparse.ArgumentParser(description="Map generator for NOAA images using gdal2tiles.py") | ||
parser.add_argument("-r", "--raster", required=True, help="Raster for visualization.") | ||
parser.add_argument("-t", "--tms", default="tms", required=False, help="Tms directory name.") | ||
|
||
args = parser.parse_args() | ||
|
||
os.system("gdal2tiles.py --profile=mercator -z 1-6 -w none " + args.raster + " " + args.tms) | ||
|
||
copyfile(constants.MAP_TEMPLATE, args.tms + "/map.html") | ||
copyfile(constants.GLOBE_TEMPLATE, args.tms + "/globe.html") | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
Oops, something went wrong.