Web Content Display

Web Content Display (CoastWatch User Forum)

The NOAA CoastWatch Forum provides information in several categories.  The information is relevant to CoastWatch products and software (https://coastwatch.noaa.gov)  and vary in technical details.  For questions and issues not addressed here,  start a thread in the appropriate category or contact the CoastWatch HelpDesk (coastwatch.info@noaa.gov).  Please note our Privacy Policy (https://www.noaa.gov/privacy.html) and that this is a public forum.  All information is voluntarily and anonymous submissions are accepted pending review prior to posting. 

Forums

Back

R tutorial question

KM
Kaylyn McCoy, modified 4 Years ago.

R tutorial question

Youngling Posts: 6 Join Date: 6/12/17 Recent Posts

For data exploration in the R tutorial working with SST data, when you isolate the data 'sst=ncvar_get(nc, v1)', and then view the dimensions 'dim(sst)', I understand that you have a 3D array: 301, 261, 12; but how do you know that it represents "301 rows corresponding to longitudes, 261 columns corresponding to latitudes for each of the 12 time steps"?

MA
Melanie Abecassis, modified 4 Years ago.

RE: R tutorial question

Youngling Posts: 65 Join Date: 6/12/17 Recent Posts

Because that's the way NetCDF files are *usually* structured. And you can double check by outputting lat and lon and looking at their lengths to double check. If the data provider built the files properly, this should be the structure.