Skip to content

Commit

Permalink
Merge pull request #135 from JuliaOcean/v2p12c
Browse files Browse the repository at this point in the history
update function name
  • Loading branch information
gaelforget authored Dec 10, 2024
2 parents 57beb4d + 2383994 commit d5d41a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/files.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ function download_file_if_needed(url2)
path2
end

function read_data(path2)
function read_SIO_XBT(path2)
txt=readlines(path2)

nlines=parse(Int,txt[1])
Expand Down Expand Up @@ -1230,15 +1230,15 @@ function read(x::XBTtransect;source="SIO",transect="PX05",cr=1,cruise="")
url1=cruises.url[CR]
url2=get_url_to_download(url1)
path2=download_file_if_needed(url2)
T_all,meta_all=read_data(path2)
T_all,meta_all=read_SIO_XBT(path2)
XBTtransect(source,transect,[T_all,meta_all,cruises.cruise[CR]],path2)
elseif source=="AOML"
list1=XBT.list_files_on_server(transect)
# list2=XBT.get_url_to_transect(ax)
CR=(isempty(cruise) ? cr : findall(list1.==cruise)[1])
files=XBT.download_file_if_needed_AOML(transect,list1[CR])
path=dirname(files[1])
(data,meta)=XBT.read_NOAA_XBT(path)
(data,meta)=read_NOAA_XBT(path)
XBTtransect(source,string(transect),[data,meta,list1[CR]],path)
else
@warn "unknown source"
Expand Down

0 comments on commit d5d41a2

Please sign in to comment.