Commit cd77f50b authored by Brad Covey's avatar Brad Covey

Added some demos

parent 8517b6f7
data_url = 'http://belafonte.ocean.dal.ca:8080/erddap/tabledap/bedford_basin_level_2_bop_binned_view_ctd.mat?depth,latitude,latitude_qc,longitude,longitude_qc,platform_speed_wrt_ground,sea_water_temperature,sea_water_temperature_qc,sea_water_conservative_temperature,sea_water_conservative_temperature_qc,sea_water_density,sea_water_density_qc,sea_water_practical_salinity,sea_water_practical_salinity_qc,sea_water_absolute_salinity,sea_water_absolute_salinity_qc,sea_water_salinity,sea_water_salinity_qc,sea_water_electrical_conductivity,sea_water_electrical_conductivity_qc,sea_water_ph_reported_on_total_scale,sea_water_ph_reported_on_total_scale_qc,mole_concentration_of_dissolved_molecular_oxygen_in_sea_water,mole_concentration_of_dissolved_molecular_oxygen_in_sea_water_q'
data = load(urlwrite(data_url, 'ctd.mat'));
scatter(data.bedford_basin_level_2_bop_binne.depth, data.bedford_basin_level_2_bop_binne.sea_water_temperature)
import pandas as pd
import matplotlib.pyplot as plt
data_url = 'http://belafonte.ocean.dal.ca:8080/erddap/tabledap/bedford_basin_level_2_bop_binned_view_ctd.csv?depth,latitude,latitude_qc,longitude,longitude_qc,platform_speed_wrt_ground,sea_water_temperature,sea_water_temperature_qc,sea_water_conservative_temperature,sea_water_conservative_temperature_qc,sea_water_density,sea_water_density_qc,sea_water_practical_salinity,sea_water_practical_salinity_qc,sea_water_absolute_salinity,sea_water_absolute_salinity_qc,sea_water_salinity,sea_water_salinity_qc,sea_water_electrical_conductivity,sea_water_electrical_conductivity_qc,sea_water_ph_reported_on_total_scale,sea_water_ph_reported_on_total_scale_qc,mole_concentration_of_dissolved_molecular_oxygen_in_sea_water,mole_concentration_of_dissolved_molecular_oxygen_in_sea_water_q'
df = pd.read_csv(data_url, skiprows=[1])
plt.scatter(df['depth'], df['sea_water_temperature'])
plt.show()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment