Skip to content

Commit

Permalink
Update plot_aseg_tempest_to_netcdf.py
Browse files Browse the repository at this point in the history
modified how we call read_netcdf
  • Loading branch information
bminsley authored Nov 27, 2023
1 parent dca55f9 commit 1e39b45
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

#%%
# Read back in the NetCDF file
new_survey = Survey().read_netcdf(d_out)
new_survey = Survey.read_netcdf(d_out)

# Once the survey is read in, we can access variables like a standard xarray dataset.
print(new_survey.raster.magnetic_tmi)
Expand All @@ -84,4 +84,4 @@
# Make a 2-D map plot of a specific raster variable, using Xarrays's plotter
plt.figure()
new_survey.raster['magnetic_tmi'].plot(vmin=-1000, vmax=1000, cmap='jet')
plt.show()
plt.show()

0 comments on commit 1e39b45

Please sign in to comment.