geodesymiami / rsmas_insar

RSMAS InSAR code
https://rsmas-insar.readthedocs.io/
GNU General Public License v3.0
58 stars 22 forks source link

run_operations.py bug #77

Closed falkamelung closed 5 years ago

falkamelung commented 5 years ago

Hi Josh, I tried to get run_operations to work using the bash version (as sxh733, for the pass: his first name is SangHoon). It did something (It wrote GalapagosSenDT128 as a file instead of opening a directory), but then It failed. Any idea? I don’t know whether it is bash-related or something else. I suspect the latter. I did not run run_operations.py for a while so I don’t know when it broke. If needed I can test whether run_operations worked before switching to bash.

['GalapagosSenDT128', 'GalapagosSenAT106', 'KilaueaSenD87', 'KilaueaSenAT124', 'AgungSenDT32', 'AgungSenAT156', 'LombokSenDT32', 'LombokSenAT156', 'CotopaxiSenAT120', 'ChilesSenAT120', 'GalerasSenAT120']
Traceback (most recent call last):
  File "/nethome/sxh733/test/test1/rsmas_insar/sources/rsmas_isce/run_operations.py", line 336, in <module>
    ssaraopt = generate_ssaraopt_string(template_file=template_file)
  File "/nethome/sxh733/test/test1/rsmas_insar/sources/rsmas_isce/download_ssara_rsmas.py", line 74, in generate_ssaraopt_string
    template_options = Template(template_file).get_options()
  File "/nethome/sxh733/test/test1/rsmas_insar/sources/rsmas_isce/dataset_template.py", line 38, in __init__
    self.options = self.read_options(template_file)
  File "/nethome/sxh733/test/test1/rsmas_insar/sources/rsmas_isce/dataset_template.py", line 49, in read_options
    with open(template_file) as template:
NotADirectoryError: [Errno 20] Not a directory: '/projects/scratch/insarlab/sxh733/GalapagosSenDT128/GalapagosSenDT128.template'
Ovec8hkin commented 5 years ago

Could you please verify that /projects/scratch/insarlab/sxh733/GalapagosSenDT128/ exists? That’s what the error looks like at first glance.

falkamelung commented 5 years ago

The thing is run_operations.py creates a file with the name you mention. This file contains the template file contents

Falk Amelung Professor Department of Marine Geosciences Rosenstiel School of Marine and Atmospheric Sciences University of Miami 4600 Rickenbacker Causeway Miami, FL 33149 USA Tel: 305 421 4949 E-mail: famelung@rsmas.miami.edumailto:famelung@rsmas.miami.edu Web: http://insar.rsmas.miami.edu InSAR data: http://insarmaps.miami.edu

On Feb 25, 2019, at 1:55 PM, Joshua Zahner notifications@github.com<mailto:notifications@github.com> wrote:

Could you pleaser verify that /projects/scratch/insarlab/sxh733/GalapagosSenDT128/ exists? That’s what the error looks like at first glance.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgeodesymiami%2Frsmas_isce%2Fissues%2F77%23issuecomment-467134705&data=02%7C01%7Cfamelung%40rsmas.miami.edu%7C1f2cc987ccac40018f4808d69b52caea%7C2a144b72f23942d48c0e6f0f17c48e33%7C0%7C1%7C636867177226949824&sdata=kM50nTQSSNg5CZ6TJegiNH6U7LXXpaSuYdUr8Zl6fpA%3D&reserved=0, or mute the threadhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKpT3BWm65U11atbQoyogFvpW8knegIGks5vRDGYgaJpZM4bQizs&data=02%7C01%7Cfamelung%40rsmas.miami.edu%7C1f2cc987ccac40018f4808d69b52caea%7C2a144b72f23942d48c0e6f0f17c48e33%7C0%7C1%7C636867177226949824&sdata=tjkMN4H7kVCcXFwKZacyLMOfEaf2wu9eaaJwQtCndYc%3D&reserved=0.