Thread: read function does not work with an absolute path

Started: 2020-07-17 04:52:39
Last activity: 2020-07-18 19:02:20
Topics: SAC Help
axelwang@stanford.edu
2020-07-17 04:52:39
Hey everyone,
I am running SAC version 101.6a on macOS Catalina 10.15.5. I have a problem with the simple "read" function. If I am in a folder where my data is stored, then if I just simply type "r [filename]", it works fine! However, if I try to pass in the absolute path to this data file, then I will get "ERROR 1301: No data files read in." Below is a demo of this error.

This is a very strange behavior for me and I am totally lost on how to solve it. Would really appreciate any help!


SAC> r NM.SLM..BHZ.M.2008.109.093629.SAC
SAC> r /Users/axelwang/Research/code/oh-my-cap-1.1.1/example/iris_20080418093658/2008-04-18-mw54-southern-indiana-2/NM.SLM..BHZ.M.2008.109.093629.SAC
ERROR 1301: No data files read in.
SAC> pwd
/Users/axelwang/Research/code/oh-my-cap-1.1.1/example/iris_20080418093658/2008-04-18-mw54-southern-indiana-2
  • Yesterday v10.15.6 came out.  Please try it on that and report.

    My SAC machine is a laptop still on 10.13, but my wife has an iMac on 10.15. 
    That is how I know about the update to 10.16.  I may need to try to get SAC
    working on the iMac.

    On 7/17/20 4:03 PM, axelwang<at>stanford.edu (via IRIS) wrote:
    Hey everyone,
    I am running SAC version 101.6a on macOS Catalina 10.15.5. I have a problem with the simple "read" function. If I am in a folder where my data is stored, then if I just simply type "r [filename]", it works fine! However, if I try to pass in the absolute path to this data file, then I will get "ERROR 1301: No data files read in." Below is a demo of this error.

    This is a very strange behavior for me and I am totally lost on how to solve it. Would really appreciate any help!


    SAC> r NM.SLM..BHZ.M.2008.109.093629.SAC
    SAC> r /Users/axelwang/Research/code/oh-my-cap-1.1.1/example/iris_20080418093658/2008-04-18-mw54-southern-indiana-2/NM.SLM..BHZ.M.2008.109.093629.SAC
    ERROR 1301: No data files read in.
    SAC> pwd
    /Users/axelwang/Research/code/oh-my-cap-1.1.1/example/iris_20080418093658/2008-04-18-mw54-southern-indiana-2



  • Milton Plasencia
    2020-07-17 22:56:45
    Hi,

    Try:

    sac> r DIR path/to/dir file.sac

    SAC> r DIR /Users/milton/Soft/sac/doc/examples/convolve/sample_runs
    conv_f_n.sac

    SAC> qdp off

    For more information see:

    sac> help read

    HTH,

    Milton

    ************************************
    Milton P. PLASENCIA LINARES
    Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS
    Borgo Grotta Gigante 42/C
    (34010) Sgonico - Trieste - Italia
    Tel: +39 040 2140 156 (Udine)
    Tel: +39 040 2140 256 (Trieste)
    Cell.: +39 331 6481 935

    E-mail: mplasencia<at>inogs.it

    Antarctic Seismographic Argentinean Italian Network (ASAIN)
    **************************************


    On Fri, 17 Jul 2020 at 22:09, axelwang<at>stanford.edu (via IRIS) <
    sac-help-9026.45842-bounce<at>lists.ds.iris.edu> wrote:

    Hey everyone,
    I am running SAC version 101.6a on macOS Catalina 10.15.5. I have a
    problem with the simple "read" function. If I am in a folder where my data
    is stored, then if I just simply type "r [filename]", it works fine!
    However, if I try to pass in the absolute path to this data file, then I
    will get "ERROR 1301: No data files read in." Below is a demo of this
    error.

    This is a very strange behavior for me and I am totally lost on how to
    solve it. Would really appreciate any help!


    SAC> r NM.SLM..BHZ.M.2008.109.093629.SAC
    SAC> r
    /Users/axelwang/Research/code/oh-my-cap-1.1.1/example/iris_20080418093658/2008-04-18-mw54-southern-indiana-2/NM.SLM..BHZ.M.2008.109.093629.SAC
    ERROR 1301: No data files read in.
    SAC> pwd

    /Users/axelwang/Research/code/oh-my-cap-1.1.1/example/iris_20080418093658/2008-04-18-mw54-southern-indiana-2

    ----------------------
    SAC Help
    Topic home: http://ds.iris.edu/message-center/topic/sac-help/ |
    Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

    Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/


  • axelwang@stanford.edu
    2020-07-18 19:02:20
    Hey everyone!

    Thank you all for your suggestions! I just figured this out. It turned out that in my second-to-last directory level, there is a tar file and a folder that has the same name. Once I changed the folder to another name, the read function is working properly now!
02:27:27 v.b07c51d3