Skip to content

Commit

Permalink
Merge pull request #239 from keduba/tutorial-fix
Browse files Browse the repository at this point in the history
Corrected the SST image output
  • Loading branch information
Alexander-Barth authored Dec 1, 2023
2 parents 096a4ac + 6a2d97e commit bad33fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ ncvar = ds["analysed_sst"];
SST = ncvar[:,:,1]
lon = ds["lon"][:]
lat = ds["lat"][:]
time = ds["time"][1]
SST_time = ds["time"][1]

clf()
pcolormesh(lon,lat,nomissing(SST,NaN)')
cbar = colorbar(orientation="horizontal")
cbar.set_label(ncvar.attrib["units"])
gca().set_aspect(1/cosd(mean(lat)))

title("$(ncvar.attrib["long_name"]) $time")
title("$(ncvar.attrib["long_name"]) $SST_time")
```

Alternatively, one can also create the files `.netrc` and `.ncrc` in the your home directory with your credentials as explained for the NASA EarthData example which allows you to manage your passwords in a central configuration file and reduce the risk to accidentally share your credentials.
Expand Down

0 comments on commit bad33fa

Please sign in to comment.