Create a contour and contourf map from Island data

2 Ansichten (letzte 30 Tage)
Natasha
Natasha am 22 Nov. 2014
Bearbeitet: Natasha am 23 Nov. 2014
I have to create a contour map and then a contour fill map from the Island data using the functions contour and contourf in order to show the areas of the Island that will and will not be effected by sea level rise via a colorbar / color key. The area unaffected is expected to be at an elevation of between 200 meters and 500 meters above the current sea level (70m to allow for icecap melting + a 130m safety margin).
I am at present able to produce a shaded gray relief map of the Island data but cannot seem to plot contour lines on the map, any assistance/advice would be greatly appreciated. I have tried different attempts including the one below to create contours but the code does not work:
%Shaded topographic map produced from elevation data of Island
load data 'S03E150.hgt' %Island data to load into matlab
figure surfl(LON,LAT,SRTM); shading interp colormap gray view(0,90) colorbar xlabel('Longitude') ylabel('latitude') title('STRM Data Set')% Data taken by satellite
B = 1/81 * ones(9,9); SRTM_FILTERED = filter2(B,SRTRM);
surfl(LON,LAT,SRTM) shading interp colormap gray view(0,90)
print -djpeg7c -r300 srtimage
Successful code should result in a contourfill map much like the attached file I have provided.*(sampxyheat - only for mine it is in relation to sea level rise and not climate temp)
Help/advice on this task would be greatly appreciated
Thanks

Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by