Skip to content

Commit

Permalink
fix shebang lines, put all parameter files in directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Yara Mohajerani committed Sep 23, 2020
1 parent 5263c03 commit 56792a5
Show file tree
Hide file tree
Showing 28 changed files with 35 additions and 15 deletions.
1 change: 1 addition & 0 deletions analytical_filters.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
analytical_filters.py
by Yara Mohajerani (Last Update 09/2018)
Expand Down
1 change: 1 addition & 0 deletions createRotatedTrainingData.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
createRotatedTrainingData.py
Expand Down
2 changes: 1 addition & 1 deletion crop_input.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/anaconda2/bin/python2.7
#!/usr/bin/env python
u"""
crop_input.py
by Yara Mohajerani (Last update 10/2018)
Expand Down
1 change: 1 addition & 0 deletions crop_output.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
crop_output.py
by Yara Mohajerani (last update 10/2018)
Expand Down
3 changes: 2 additions & 1 deletion extract_handrawn.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
extrct_handrawn.py
by Yara Mohajerani (11/2018)
Expand Down Expand Up @@ -59,4 +60,4 @@ def main():
scipy.misc.imsave(outfile, new_im)

if __name__ == '__main__':
main()
main()
1 change: 1 addition & 0 deletions frontlearn_preprocess.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
frontlearn_preprocess.py
by Yara Mohajerani (Last update 11/2018)
Expand Down
3 changes: 2 additions & 1 deletion geocode_labels.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
geocode_labels.py
by Yara Mohajerani 11/2018
Expand Down Expand Up @@ -304,4 +305,4 @@ def main():
solutionToCSV(glacierList, labelList, frontIndicesList, csvOutputFolder, cornersList, projectionList,imageSizeList)

if __name__ == '__main__':
main()
main()
3 changes: 2 additions & 1 deletion histograms.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
histograms.py
by Yara Mohajerani (Last Update 11/2018)
Expand Down Expand Up @@ -408,4 +409,4 @@ def fjordBoundaryIndices(glacier):
plt.close()

if __name__ == '__main__':
main()
main()
3 changes: 2 additions & 1 deletion histograms_area.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
histograms_area.py
by Yara Mohajerani (Last Update 11/2018)
Expand Down Expand Up @@ -426,4 +427,4 @@ def fjordBoundaryIndices(glacier):
plt.close()

if __name__ == '__main__':
main()
main()
3 changes: 2 additions & 1 deletion make_fig3_abstract.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
make_figure3_abstract.py
Expand Down Expand Up @@ -106,4 +107,4 @@
gs1 = gridspec.GridSpec(1, 4)
gs1.update(wspace=0.0, hspace=0.0)

plt.savefig(os.path.join(ddir,'Figure_3_abstract_batch%i.pdf'%batch),format='pdf',dpi=300)
plt.savefig(os.path.join(ddir,'Figure_3_abstract_batch%i.pdf'%batch),format='pdf',dpi=300)
3 changes: 2 additions & 1 deletion make_figure3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
make_figure3.py
Expand Down Expand Up @@ -108,4 +109,4 @@

#fig.subplots_adjust(hspace=0)
fig.tight_layout()
plt.savefig(os.path.join(ddir,'Figure_3_v3_batch%i.pdf'%batch),format='pdf',dpi=300)
plt.savefig(os.path.join(ddir,'Figure_3_v3_batch%i.pdf'%batch),format='pdf',dpi=300)
3 changes: 2 additions & 1 deletion make_figure4.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
make_figure4.py
Expand Down Expand Up @@ -137,4 +138,4 @@

fig.subplots_adjust(left=None, bottom=None, right=None, top=None, wspace=None, hspace=0.5)

plt.savefig(os.path.join(main_dir,'Figure_4.pdf'),format='pdf',dpi=300)
plt.savefig(os.path.join(main_dir,'Figure_4.pdf'),format='pdf',dpi=300)
3 changes: 2 additions & 1 deletion make_rgb.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
make_rgb.py
by Yara Mohajerani (Last update 11/2018)
Expand Down Expand Up @@ -52,4 +53,4 @@ def main():
rgbimg.save(outfile, 'PNG')

if __name__ == '__main__':
main()
main()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions pixel_resolution.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
pixel_resolution
Expand Down
4 changes: 2 additions & 2 deletions plot_locations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/anaconda2/bin/python2.7
#!/usr/bin/env python
u"""
plot_locations.py
by Yara Mohajerani (12/2018)
Expand Down Expand Up @@ -101,4 +101,4 @@ def main():
plt.close(fig)

if __name__ == '__main__':
main()
main()
3 changes: 2 additions & 1 deletion plot_seasonality.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
plot_seasonality.py
by Yara Mohajerani (12/2018)
Expand Down Expand Up @@ -61,4 +62,4 @@
plt.grid(True)
plt.subplots_adjust(bottom=0.15,left=0.2)
plt.savefig(os.path.join(headDirectory,'Figure_S1-1.pdf'),format='pdf')
plt.close(fig)
plt.close(fig)
3 changes: 2 additions & 1 deletion plot_training_history.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
plot_training_history.py
by Yara Mohajerani (Last Update 10/2018)
Expand Down Expand Up @@ -135,4 +136,4 @@ def main():
plot_history(parameters)

if __name__ == '__main__':
main()
main()
3 changes: 2 additions & 1 deletion postProcessing.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
postProcessing.py
by Michael Wood (Last Updated by Yara Mohajerani 10/2018)
Expand Down Expand Up @@ -429,4 +430,4 @@ def main():
solutionToShapefile(glacierList, labelList, frontIndicesList, shapefileOutputFolder, cornersList, projectionList, imageSizeList)

if __name__ == '__main__':
main()
main()
3 changes: 2 additions & 1 deletion postProcessing_helheim.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
postProcessing.py
by Michael Wood (Last Updated by Yara Mohajerani 10/2018)
Expand Down Expand Up @@ -430,4 +431,4 @@ def main():
solutionToShapefile(glacierList, labelList, frontIndicesList, shapefileOutputFolder, cornersList, projectionList, imageSizeList)

if __name__ == '__main__':
main()
main()
1 change: 1 addition & 0 deletions unet_model.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
frontlearn_unet.py
by Yara Mohajerani (Last Update 01/2019)
Expand Down
1 change: 1 addition & 0 deletions unet_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
unet_test.py
by Yara Mohajerani (Last Update 11/2018)
Expand Down
1 change: 1 addition & 0 deletions unet_train.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
u"""
unet_train.py
by Yara Mohajerani (Last Update 10/2018)
Expand Down

0 comments on commit 56792a5

Please sign in to comment.