1 / 8

MyOcean Ferrybox with Matlab

MyOcean Ferrybox with Matlab. Requirements. Matlab ( version ?) Must have ftp and ncread. Read netCDF. ncf = '..DataGO_LATEST_TS_FB_ColorFantasy_20130607.nc '; nci = ncinfo ( ncf ); arrayfun (@(x)( x.Name ), nci (1).Variables, ' uniformoutput ', false )

keelia
Download Presentation

MyOcean Ferrybox with Matlab

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MyOcean Ferrybox withMatlab Pierre Jaccard

  2. Requirements • Matlab (version?) • Must have ftp and ncread Pierre Jaccard

  3. Read netCDF ncf= '..\Data\GO_LATEST_TS_FB_ColorFantasy_20130607.nc'; nci = ncinfo(ncf); arrayfun(@(x)(x.Name), nci(1).Variables, 'uniformoutput', false) t = ncread(ncf, 'TIME'); T = ncread(ncf, 'TEMP'); Pierre Jaccard

  4. Calculate Time t = ncread(ncf, 'TIME'); t0 = datenum(1950, 1, 1); t1 = t0 + t; datestr(t1(1)) datestr(t1(end)) Pierre Jaccard

  5. Plot Temperature I T = ncread(ncf, 'TEMP'); plot(t1,T); grid on datetick Pierre Jaccard

  6. Quality Flags qcT= ncread(ncf, 'TEMP_QC'); qct = ncread(ncf, 'TIME_QC'); qct = qct'; qcp = ncread(ncf, 'POSITION_QC'); qcp = qcp'; qcm = (qcT > 0) & (qcT < 3) & (qct > 0) & (qct < 3) & (qcp > 0) & (qcp < 3); any(qcm) all(qcm) Pierre Jaccard

  7. Plot Temperature II figure; hold on plot(t1(qcm),T(qcm), 'g.', 'markersize', 2); plot(t1(~qcm),T(~qcm), 'r.', 'markersize', 2); grid on datetick Pierre Jaccard

  8. FTP host = 'vftp1.ifremer.fr'; path = '/INSITU_GLO_NRT_OBSERVATIONS_013_030/'; f = ftp(host, user, pass); cd(f,path); list = dir(f); mget(ftp, remote, local) close(f); Pierre Jaccard

More Related