Exporting to Images
1Sizeis
1x2^BitsPerSample
or
3x2^BitsPerSample
.
Table 2: Valid SampleFormat Values for BitsPerSample Settings
BitsPerSample
SampleFormat
MATLAB Data Type
1
Uint
logical
8
Uint
,
Int
uint8
,
int8
16
Uint
,
Int
uint16
,
int16
32
Uint
,
Int
,
IEEEFP
uint32
,
int32
,
single
64
IEEEFP
double
Table 3: Valid SampleFormat Values for BitsPerSample and Photometric Combinations
BitsPerSample Values
Photometric
Values
1
8
16
32
64
MinIsWhite
Uint
Uint/Int
Uint
Int
Uint
Int
IEEEFP
IEEEFP
MinIsBlack
Uint
Uint/Int
Uint
Int
Uint
Int
IEEEFP
IEEEFP
RGB
Uint
Uint
Uint
IEEEFP
IEEEFP
Pallette
Uint
Uint
Mask
Uint
Separated
Uint
Uint
Uint
IEEEFP
IEEEFP
YCbCr
Uint
Uint
Uint
IEEEFP
IEEEFP
CIELab
Uint
Uint
ICCLab
Uint
Uint
ITULab
Uint
Uint
5-19
Pdf no thumbnail - SDK control service:C# PDF Thumbnail Create SDK: Draw thumbnail images for PDF in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Support Thumbnail Generation with Various Options for Quick PDF Navigation
www.rasteredge.com
Pdf no thumbnail - SDK control service:VB.NET PDF Thumbnail Create SDK: Draw thumbnail images for PDF in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Support Thumbnail Generation with Various Options for Quick PDF Navigation
www.rasteredge.com
5
Images
Table 4: Valid SampleFormat Values for BitsPerSample and Compression Combinations
BitsPerSample Values
Compression
Values
1
8
16
32
64
None
Uint
Uint
Int
Uint
Int
Uint
Int
IEEEFP
IEEEFP
CCITTRLE
Uint
CCITTFax3
Uint
CCITTFax4
Uint
LZW
Uint
Uint
Int
Uint
Int
Uint
Int
IEEEFP
IEEEFP
JPEG
Uint
Int
CCITTRLEW
Uint
PackBits
Uint
Uint
Int
Uint
Int
Uint
Int
IEEEFP
IEEEFP
Deflate
Uint
Uint
Int
Uint
Int
Uint
Int
IEEEFP
IEEEFP
AdobeDeflate Uint
Uint
Int
Uint
Int
Uint
Int
IEEEFP
IEEEFP
Table 5: Valid SamplesPerPixel Values for Photometric Settings
Photometric Values
SamplesPerPixel1
MinIsWhite
1+
MinIsBlack
1+
RGB
3+
5-20
SDK control service:VB.NET Image: Program for Creating Thumbnail from Documents and
as PDF, TIFF, GIF, BMP, etc. It is easy to use this VB.NET thumbnail creation control to create thumbnail through simple VB.NET programming and no additional
www.rasteredge.com
SDK control service:C# Raster - Image Save Options in C#.NET
Tiff Edit. Image Thumbnail. Image Save. Advanced Save Options. Save VB.NET How-to, VB.NET PDF, VB.NET standard ColorProfile to images if there's no ColorProfile in
www.rasteredge.com
Exporting to Images
Table 5: Valid SamplesPerPixel Values for Photometric Settings
(Continued)
Photometric Values
SamplesPerPixel1
Pallette
1
Mask
1
Separated
1+
YCbCr
3
CIELab
3+
ICCLab
3+
ITULab
3+
1Whenyouspecifymorethantheexpectednumberofsamplesperpixel(n+),
you must set the
ExtraSamples
tag accordingly.
5-21
SDK control service:C# Raster - Image Compression in C#.NET
Undefined. The value is 0. It is not support compression. No. The value is 1. It represents no compression. Image Compression In C#.NET.
www.rasteredge.com
SDK control service:C# Image: Create Web Image Viewer in C#.NET Application
installed on Windows compatible server, no additional add document file navigation with thumbnail preview support; High fidelity viewing of TIFF, PDF, Word, Excel
www.rasteredge.com
5
Images
5-22
SDK control service:VB.NET Image: Image and Doc Windows, Web & Mobile Viewers of
for users to do image displaying, thumbnail creation and viewer, image Windows viewer needs no irrelevant application JPEG, PNG, BMP, GIF, TIFF, PDF, Word and
www.rasteredge.com
SDK control service:C# TIFF: C#.NET Code to Create Online TIFF Document Viewer
We still demonstrate how to create more web viewers on PDF and Word documents There's no need to add other dependencies to your web project, because they will
www.rasteredge.com
6
Scientific Data
• “Importing Common Data File Format (CDF) Files” on page 6-2
• “Exporting to Common Data File Format (CDF) Files” on page 6-10
• “Importing Network Common Data Form (NetCDF) Files and OPeNDAP
Data” on page 6-12
• “Exporting to Network Common Data Form (NetCDF) Files” on page 6-21
• “Importing Flexible Image Transport System (FITS) Files” on page 6-30
• “Importing Hierarchical Data Format (HDF5) Files” on page 6-32
• “Exporting to Hierarchical Data Format (HDF5) Files” on page 6-40
• “Importing Hierarchical Data Format (HDF4) Files” on page 6-52
• “Exporting to Hierarchical Data Format (HDF4) Files” on page 6-82
SDK control service:VB.NET Image: RasterEdge JBIG2 Codec Image Control for VB.NET
Even when you are using lossy image compression solution, no significant information will lose. "Do you have any add-on i can use to print PDF files with JBIG2
www.rasteredge.com
SDK control service:C# Image: Create C#.NET Windows Document Image Viewer | Online
C# Windows Document Image Viewer Features. No need for and viewing multiple document & image formats (PDF, MS Word If you right-click on the thumbnail, there is
www.rasteredge.com
6
Scientific Data
Importing Common Data File Format (CDF) Files
In this section...
“Overview” on page 6-2
“High-Level CDF Import Functions” on page 6-2
“Using the CDF Library Low-Level Functions to Import Data” on page 6-6
Overview
CDF was created by the National Space Science Data Center (NSSDC) to
provide a self-describing data storage and manipulation format that matches
the structure of scientific data and applications (i.e., statistical and numerical
methods, visualization, and management). For more information about this
format, see the CDF Web site.
MATLAB provides two ways to access CDF files: a set of high-level functions
and a package of low-level functions that provide direct access to the routines
in the CDF C API library. The high level functions provide a simpler interface
to accessing CDF files. However, if you require more control over the import
operation, such as data subsetting for large data sets, use the low-level
functions. The following sections provide more information.
• “High-Level CDF Import Functions” on page 6-2
• “Using the CDF Library Low-Level Functions to Import Data” on page 6-6
High-Level CDF Import Functions
MATLAB includes high-level functions that you can use to get information
about the contents of a Common Data Format (CDF) file and then read data
from the file. The following sections provide more information.
• “Getting Information about the Contents of CDF File” on page 6-3
• “Reading Data from a CDF File” on page 6-4
• “Speeding Up Read Operations” on page 6-4
• “Representing CDF Time Values” on page 6-6
6-2
SDK control service:C# Image: Tutorial for Document Viewing & Displaying in ASP.NET
in the viewer with a click on a thumbnail. Add No-Postback Navigation Controls to Viewer. Add two powerful & profession imaging controls, PDF document, tiff
www.rasteredge.com
SDK control service:VB.NET Image: VB.NET DLL for Image Basic Transforming in .NET
NET imaging toolkit is extremely easy to use with no special configuration are dedicated to provide powerful & profession imaging controls, PDF document, tiff
www.rasteredge.com
Importing Common Data File Format (CDF) Files
Getting Information about the Contents of CDF File
To get information about the contents of a CDF file, such as the names of
variables in the CDF file, use the
cdfinfo
function. The
cdfinfo
function
returns a structure containing general information about the file and detailed
information about the variables and attributes in the file.
In this example, the
Variables
field indicates the number of variables in the
file. Taking a closer look at the contents of this field, you can see that the first
variable,
Time
,is made up of 24 records containing CDF epoch data. The next
two variables,
Longitude
and
Latitude
,have only one associated record
containing
int8
data. For details about how to interpret the data returned
in the
Variables
field, see
cdfinfo
.
Note Because
cdfinfo
creates temporary files, make sure that your current
working directory is writable before attempting to use the function.
info = cdfinfo('example.cdf')
info =
Filename: 'example.cdf'
FileModDate: '19-May-2010 12:03:11'
FileSize: 1310
Format: 'CDF'
FormatVersion: '2.7.0'
FileSettings: [1x1 struct]
Subfiles: {}
Variables: {6x6 cell}
GlobalAttributes: [1x1 struct]
VariableAttributes: [1x1 struct]
vars = info.Variables
vars =
'Time'
[1x2 double]
[24]
'epoch'
'T/'
'Full'
'Longitude'
[1x2 double]
[ 1]
'int8'
'F/FT'
'Full'
'Latitude'
[1x2 double]
[ 1]
'int8'
'F/TF'
'Full'
6-3
6
Scientific Data
'Data'
[1x3 double]
[ 1]
'double'
'T/TTT'
'Full'
'multidimensional'
[1x4 double]
[ 1]
'uint8'
'T/TTTT'
'Full'
'Temperature'
[1x2 double]
[10]
'int16'
'T/TT'
'Full'
Reading Data from a CDF File
To read all of the data in the CDF file, use the
cdfread
function. The function
returns the data in a cell array. The columns of data correspond to the
variables; the rows correspond to the records associated with a variable.
data = cdfread('example.cdf');
whos data
Name
Size
Bytes
Class
Attributes
data
24x6
16512
cell
To read the data associated with one or more particular variables, use the
'Variable'
parameter. Specify the names of the variables as text strings in a
cell array. Variable names are case sensitive. The following example reads
the
Longitude
and
Latitude
variables from the file.
var_long_lat = cdfread('example.cdf','Variable',{'Longitude','Latitude'});
whos var_long_lat
Name
Size
Bytes
Class
Attributes
var_long_lat
1x2
128
cell
Speeding Up Read Operations
The
cdfread
function offers two ways to speed up read operations when
working with large data sets:
• Reducing the number of elements in the returned cell array
• Returning CDF epoch values as MATLAB serial date numbers rather than
as MATLAB
cdfepoch
objects
6-4
Importing Common Data File Format (CDF) Files
To reduce the number of elements in the returned cell array, specify the
'CombineRecords'
parameter. By default,
cdfread
creates a cell array with
aseparate element for every variable and every record in each variable,
padding the records dimension to create a rectangular cell array. For
example, reading all the data from the example file produces an output
cell array, 24-by-6, where the columns represent variables and the rows
represent the records for each variable. When you set the
'CombineRecords'
parameter to
true
,
cdfread
creates a separate element for each variable
but saves time by putting all the records associated with a variable in a
single cell array element. Thus, reading the data from the example file with
'CombineRecords'
set to
true
produces a 1-by-5 cell array, as shown below.
data_combined = cdfread('example.cdf','CombineRecords',true);
whos
Name
Size
Bytes
Class
Attributes
data
24x6
16512
cell
data_combined
1x6
2544
cell
When combining records, note that the dimensions of the data in the cell
change. For example, if a variable has 20 records, each of which is a scalar
value, the data in the cell array for the combined element contains a 20-by-1
vector of values. If each record is a 3-by-4 array, the cell array element
contains a 20-by-3-by-4 array. For combined data,
cdfread
adds a dimension
to the data, the first dimension, that is the index into the records.
Another way to speed up read operations is to read CDF epoch values as
MATLAB serial date numbers. By default,
cdfread
creates a MATLAB
cdfepoch
object for each CDF epoch value in the file. If you specify the
'ConvertEpochToDatenum'
parameter, setting it to
true
,
cdfread
returns
CDF epoch values as MATLAB serial date numbers. For more information
about working with MATLAB
cdfepoch
objects, see “Representing CDF Time
Values” on page 6-6.
data_datenums = cdfread('example.cdf','ConvertEpochToDatenum',true);
whos
Name
Size
Bytes
Class
Attributes
6-5
6
Scientific Data
data
24x6
16512
cell
data_combined
1x6
2544
cell
data_datenums
24x6
13536
cell
Representing CDF Time Values
CDF represents time differently than MATLAB. CDF represents date and
time as the number of milliseconds since 1-Jan-0000. This is called an epoch
in CDF terminology. MATLAB represents date and time as a serial date
number, which is the number of days since 0-Jan-0000. To represent CDF
dates, MATLAB uses an object called a CDF epoch object. To access the time
information in a CDF object, use the object’s
todatenum
method.
For example, this code extracts the date information from a CDF epoch object:
1
Extract the date information from the CDF epoch object returned in the cell
array
data
(see “Importing Common Data File Format (CDF) Files” on page
6-2). Use the
todatenum
method of the CDF epoch object to get the date
information, which is returned as a MATLAB serial date number
.
m_date = todatenum(data{1});
2
View the MATLAB serial date number as a string.
datestr(m_date)
ans =
01-Jan-2001
Using the CDF Library Low-Level Functions to Import
Data
To import (read) data from a Common Data Format (CDF) file, you can use
the MATLAB low-level CDF functions. The MATLAB functions correspond
to dozens of routines in the CDF C API library. For a complete list of all the
MATLAB low-level CDF functions, see
cdflib
.
This section does not attempt to describe all features of the CDF library
or explain basic CDF programming concepts. To use the MATLAB CDF
low-level functions effectively, you must be familiar with the CDF C interface.
Documentation about CDF, version 3.3.0, is available at the CDF Web site.
6-6
Documents you may be interested
Documents you may be interested