Plot netcdf variable over south pole

I want to plot the tco variable of a specific day over the southern hemisphere between the latitudes -90 to -10 using a stereographic projection. I want to include the coastlines in the plot as well.
Is it possible to do this and how?

回答 (1 件)

KSSV
KSSV 2017 年 8 月 30 日

0 投票

load the variable from ncfile using ncread and plot your data...it is a straight forward task.

3 件のコメント

David du Preez
David du Preez 2017 年 8 月 30 日
Sure. I get this far.
tco07=netcdf.getVar(ncid1,3,[0 0 0],[288 180 1]); lon1=netcdf.getVar(ncid1,1,0,288); lat1=netcdf.getVar(ncid1,2,0,180);
How do you create the contour of the variable?
KSSV
KSSV 2017 年 8 月 30 日
MAke the respective spatial data...I mean read lon and lat also and call contour
David du Preez
David du Preez 2017 年 8 月 30 日
This is what I have:
ncid1=netcdf.open('NIWA-BSCombinedOzoneV3.2_2007_Unpatched.nc','NC_NOWRITE')
tco07=netcdf.getVar(ncid1,3,[0 0 0],[288 80 1]);
lon1=netcdf.getVar(ncid1,1,0,288);
lat1=netcdf.getVar(ncid1,2,0,80);
tco07=tco07.';
contour(lon1,lat1,tco07)
hold on
load coast
axesm('stereo','Origin',[-89.5 -120],'MapLatLimit',[-89.5 -10])
It does not change the projection or show the coastlines.

サインインしてコメントする。

質問済み:

2017 年 8 月 30 日

コメント済み:

2017 年 8 月 30 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by