How can I get data from nasa via ftp?

조회 수: 3 (최근 30일)
jiang wenjie
jiang wenjie 2016년 6월 7일
댓글: Yogita Karale 2017년 10월 13일
Hello everyone
I want use matlab get modis data from <ftp://ladsweb.nascom.nasa.gov/allData/6/MYD021KM/>. But when I use
f = ftp('ftp://ladsweb.nascom.nasa.gov/allData/6/MYD021KM/')
Matlab has error. such as
Error using connect (line 18)
Could not open a connection to "ftp", port "NaN".
Error in ftp (line 75)
connect(h)
thank you
Jiang
  댓글 수: 2
Muhammad Usman Saleem
Muhammad Usman Saleem 2016년 6월 7일
편집: Muhammad Usman Saleem 2016년 6월 7일
use .cdf format in which NASA offer its product. this format is easily readable to matlab
jiang wenjie
jiang wenjie 2016년 6월 10일
How can i solve the problem?

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

답변 (2개)

Muhammad Usman Saleem
Muhammad Usman Saleem 2016년 6월 11일
편집: Muhammad Usman Saleem 2016년 6월 11일
https://www.myroms.org/wiki/NetCDF_Data_Processing_Scripts
search more on google and researchgate about how to proccess .nc files in matlab

m.
m. 2016년 8월 3일
I got the same problem. I bet it has something to do with the ':' in the url, since after the ':' usually should come the portnumber. How to solve this is still unclear to me.
  댓글 수: 2
m.
m. 2016년 8월 3일
Got it! Start with this: f = ftp('ladsweb.nascom.nasa.gov') and then use mget in order to download the data
Yogita Karale
Yogita Karale 2017년 10월 13일
but then how do you go to specific folder and download a particular file from that folder

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

카테고리

Help CenterFile Exchange에서 FTP File Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by