필터 지우기
필터 지우기

Issues with wms on MATLAB R2020b

조회 수: 7 (최근 30일)
Julia
Julia 2024년 8월 21일
댓글: Julia 2024년 8월 22일
Hi! I have data that I plot on the traditional blue marble plot from NASA. I run this each month to plot new data; however, when I went to run it earlier in August, something seemed to be wrong with the wms commands. I am using MATLAB R2020b; I had pulled the original code directly from MATLAB:
layers = wmsfind("svs.gsfc.nasa.gov","SearchField","serverurl");
updatedLayers = wmsupdate(layers, "AllowMultipleServers",true);
blueMarble = refine(updatedLayers,"bluemarble","SearchField","abstract");
blueMarble512 = refine(blueMarble,"*512"); blueMarble512 = blueMarble512(1);
[A,R] = wmsread(blueMarble512); plabel off mlabel off
geoshow(A,R)
The error I am getting is:
Warning: An error occurred while attempting to update layers from the server, 'https://svs.gsfc.nasa.gov/cgi-bin/wms?'.
These layers are being removed from the layer array. The number of layers from this server that are being removed from the
layer array is 326. The error message returned by the server is: 'The Capabilities file from the host 'svs.gsfc.nasa.gov'
cannot be found.'.
> In wmsupdate>synchronizeLayerArray (line 154)
In wmsupdate (line 95)
My data still plots, but without the bluemarble. I can't seem to find any other information other than get a newer version of MATLAB to use readgeotable.

답변 (1개)

Karanjot
Karanjot 2024년 8월 22일
Hi Julia,
i can see that you're encountering the following error while trying to utilise the traditional blue marble plot from NASA:
'The Capabilities file from the host 'svs.gsfc.nasa.gov' cannot be found.'.
The error message you're encountering suggests that the issue is with the NASA server that provides the Web Map Service (WMS) data, rather than with your MATLAB code. The specific server https://svs.gsfc.nasa.gov/cgi-bin/wms? appears to be unavailable, which is why MATLAB cannot retrieve the "Capabilities" file needed to access the Blue Marble layers. I recommend contacting NASA for the same.
If you have a local copy of the Blue Marble image, you can use the geoshow function to display it and update layers manually:
% Assume 'blueMarbleImage.jpg' is your local Blue Marble image
[A, R] = readgeoraster('blueMarbleImage.img');
figure;
geoshow(A, R);
title('Blue Marble Image');
To know more, Refer to the following documentation:
https://in.mathworks.com/help/releases/R2020b/map/ref/geoshow.html
  댓글 수: 1
Julia
Julia 2024년 8월 22일
I appreciate your response! Do you have a good reference on where to download the blue marble image from? The NASA site only has to .png and .jpg formats. Even after converting it to .img, it looks like some of the filedata isn't properly populated so I can't display the map still.

댓글을 달려면 로그인하십시오.

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by