Skip to content

Commit

Permalink
include figs in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JanJereczek committed Jun 26, 2024
1 parent b0c85da commit 1642198
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ Lat = map(x -> x[2], coords)
heatmap(μ_new)
```

![da igual](assets/hazzard2024-verbose.png)

This code snippet is presents some important drawbacks:
- it is somewhat verbose,
- it is not generic,
Expand Down Expand Up @@ -137,6 +139,8 @@ var_atts = (μ_ghf_atts, σ_ghf_atts)
fn = datadir("$filename-regridded.nc")
save2nc(fn, target_dimnames, target_dims, dim_atts, varnames, vars, var_atts)
```
![da igual](assets/hazzard2024.png)


That's it!

Expand Down
Binary file added assets/hazzard2024-verbose.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/hazzard2024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion scripts/hazzard2024-verbose.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ Lat = map(x -> x[2], coords)

# Step 4
μ_new = μ_ghf_itp.(Lon, Lat)
heatmap(μ_new)
fig = heatmap(μ_new)
# save("hazzard2024-verbose.png", fig)
2 changes: 1 addition & 1 deletion scripts/hazzard2024.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ for j in eachindex(varnames)
hidedecorations!(ax)
heatmap!(ax, vars[j])
end
fig
# save("assets/hazzard2024.png", fig)

# Save regridded data
x_atts = Dict("units" => "m", "long_name" => "x-coordinate")
Expand Down

0 comments on commit 1642198

Please sign in to comment.