Skip to content

Commit

Permalink
#18 fix NGL link error
Browse files Browse the repository at this point in the history
  • Loading branch information
cicuser committed Mar 19, 2021
1 parent 5ba6159 commit b3d52d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webAPI/getDisplacement.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,15 +391,15 @@ def getDisplacement(results):
'"https://sideshow.jpl.nasa.gov/post/plots/{:s}.jpg\"'.format(location.stn)
if analysisCenter == "NGL":
linkPlot = \
'"http://geodesy.unr.edu/NGLStationPages/stations/{:s}.sta\"'.format(location.stn)
'"http://geodesy.unr.edu/NGLStationPages/stations/{:s}.sta\">'.format(location.stn)
imgPlot = \
'"http://geodesy.unr.edu/tsplots/IGS14/IGS14/TimeSeries/{:s}.png"'.format(location.stn)

print(" <Placemark>",file=outFile1)
print(" <description><![CDATA[",file=outFile1)
#print(" <a href=\"https://sideshow.jpl.nasa.gov/post/links/{:s}.html\">".format(location.stn),file=outFile1)
#print(" <img src=\"https://sideshow.jpl.nasa.gov/post/plots/{:s}.jpg\" width=\"300\" height=\"300\">".format(location.stn),file=outFile1)
print(" <a href=" + linkPlot, file=outFile1)
print(" <a target=_blank href=" + linkPlot, file=outFile1)
print(" <img src=" + imgPlot + " width=\"300\" height=\"300\">",file=outFile1)
print(" </a>",file=outFile1)
print(" ]]></description>",file=outFile1)
Expand All @@ -420,7 +420,7 @@ def getDisplacement(results):
print(" <description><![CDATA[",file=outFile2)
#print(" <a href=\"https://sideshow.jpl.nasa.gov/post/links/{:s}.html\">".format(location.stn),file=outFile2)
#print(" <img src=\"https://sideshow.jpl.nasa.gov/post/plots/{:s}.jpg\" width=\"300\" height=\"300\">".format(location.stn),file=outFile2)
print(" <a href=" + linkPlot, file=outFile2)
print(" <a target=_blank href=" + linkPlot, file=outFile2)
print(" <img src=" + imgPlot + " width=\"300\" height=\"300\">",file=outFile2)
print(" </a>",file=outFile2)
print(" ]]></description>",file=outFile2)
Expand Down

0 comments on commit b3d52d4

Please sign in to comment.