Skip to content

Instantly share code, notes, and snippets.

@SwampThingPaul
Created March 24, 2022 12:08
Show Gist options
  • Save SwampThingPaul/d4540240496ab1f8ae3ff44567ed59ec to your computer and use it in GitHub Desktop.
Save SwampThingPaul/d4540240496ab1f8ae3ff44567ed59ec to your computer and use it in GitHub Desktop.
Learning Julia
using DelimitedFiles
using DataFrames
# HTML Path for data
dat_path="http://recondata.sccf.org/cgi-data/nph-data.cgi?x=utc_date&y=salinity,temperature&min_date=20210101&max_date=20220301&node=11&data_format=text"
# Just to read the data as a tab delimited file
recon_data=readdlm(download(dat_path),'\t',skipstart=1,header=true)
## From what I can find on how to change the file
# read delim file
recon_data,head=readdlm(download(dat_path),'\t',skipstart=1,header=true)
# change file into a dataframe
recon_data=DataFrame(recon_data,vec(head))
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment