Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plots #24

Merged
merged 9 commits into from
Jul 28, 2022
Prev Previous commit
Modified the plot_datacube function to allow the users to input the t…
…imeline for the time series data
  • Loading branch information
Tumon2001 committed Jul 28, 2022
commit e48fc82db720d49f93ecf5b85dba5382b21bbfe9
4 changes: 2 additions & 2 deletions src/plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ load_example()
dates = collect(Date(2012,4):Month(1):Date(2020, 02))
plot_datacube(radiance_datacube, MUMBAI_COORDINATE_SYSTEM, string.(dates))
"""
function plot_datacube(datacube, coordinate_system, time)
function plot_datacube(datacube, coordinate_system, date)
map=[]

function plot_img(img, coordinate_system, i)
Expand All @@ -100,7 +100,7 @@ function plot_datacube(datacube, coordinate_system, time)
xcs=[lon(c,1,b), lon(c,1,2*b), lon(c,1,3*b), lon(c,1,4*b)]
ycs=[lat(c,a,1), lat(c,2*a,1), lat(c,3*a,1), lat(c,4*a,1), lat(c,5*a,1)]

p=plot(Gray.(img), title=time[i], xlabel="longitude", ylabel="latitude")
p=plot(Gray.(img), title=date[i], xlabel="longitude", ylabel="latitude")
plot!(xc, seriestype=:vline, xticks = (xc,xcs), label="", color=:red, linestyle=:dot)
plot!(yc, seriestype=:hline, yticks = (yc,ycs), label="", color=:red, linestyle=:dot)

Expand Down