OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (4)

Get the names of datasets stored in a netCDF file:

Import[ "ExampleData/precipitation.nc"]

Import a dataset:

data = Import[ "ExampleData/precipitation.nc", {"Datasets", "ANOMALY"}];

Render the imported data as graphics:

ArrayPlot[Reverse@data, PlotRange -> {-2, 2.5},ColorFunction -> "ThermometerColors", ImageSize -> Medium]

Read meta-information from a netCDF file:

Import[ "ExampleData/precipitation.nc", "Metadata"]

Export raster image data to the netCDF format:

Export[ "test.nc", "spikey"->ImageData[],"Datasets"]

This gives the names of the datasets stored in this file:

Import["test.nc"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {Related Formats:  (RefLink[NASACDF, paclet:ref/format/NASACDF])  ▪  (RefLink[HDF, paclet:ref/format/HDF])  ▪  (RefLink[HDF5, paclet:ref/format/HDF5])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Listing of All Formats, paclet:guide/ListingOfAllFormats])}, {▪(RefLinkPlain[New in 6.0: Import & Export Formats, paclet:guide/NewIn60ImportAndExportFormats])}, {▪(RefLinkPlain[Numerical Data Formats, paclet:guide/NumericalDataFormats])}, {▪(RefLinkPlain[Raster Image Formats, paclet:guide/RasterImageFormats])}, {▪(RefLinkPlain[Scientific & Medical Data Formats, paclet:guide/ScientificAndMedicalDataFormats])}})}})