From 1e39b45304cfce8ea2bac328d31aa1734ee0e149 Mon Sep 17 00:00:00 2001 From: Burke Minsley Date: Mon, 27 Nov 2023 12:01:32 -0700 Subject: [PATCH] Update plot_aseg_tempest_to_netcdf.py modified how we call read_netcdf --- .../examples/Creating_GS_Files/plot_aseg_tempest_to_netcdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation_source/source/examples/Creating_GS_Files/plot_aseg_tempest_to_netcdf.py b/documentation_source/source/examples/Creating_GS_Files/plot_aseg_tempest_to_netcdf.py index 93507a1..833ad8a 100644 --- a/documentation_source/source/examples/Creating_GS_Files/plot_aseg_tempest_to_netcdf.py +++ b/documentation_source/source/examples/Creating_GS_Files/plot_aseg_tempest_to_netcdf.py @@ -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) @@ -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() \ No newline at end of file +plt.show()