Create a contour and contourf map from Island data
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Contour Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!