chunguangliu的个人博客分享 http://blog.sciencenet.cn/u/chunguangliu

博文

DataTypes in the Memory of IDL and Matlab

已有 1664 次阅读 2017-3-23 16:38 |个人分类:Data i/o to Memory|系统分类:科研笔记| code, file


IDL help 中 size 函数对 IDL 数据类型的解释,file:///D:/Program Files/Exelis/IDL83/help/online_help/IDL/idl.htm#Reference Material/S/SIZE.htm?Highlight=size

type code

type name

data type

0

undefined

undefined

1

byte

byte

2

int

integer

3

long

longword integer

4

float

floating point

5

double

double-precision floating

6

complex

complex floating

7

string

string

8

struct

structure

9

dcomplex

double-precision complex

10

pointer

pointer

11

objref

object reference

12

uint

unsigned integer

13

ulong

unsigned longword integer

14

long64

64-bit integer

15

ulong64

unsigned 64-bit integer


IDL Data Types

http://www.harrisgeospatial.com/docs/IDL_Data_Types.html



ENVI Header Files

http://www.harrisgeospatial.com/docs/enviheaderfiles.html




MATLAB 数据类型(fread 版)http://cn.mathworks.com/help/matlab/ref/fread.html

                        multibandread 版  http://cn.mathworks.com/help/matlab/ref/multibandread.html

and  in the 'Format' — Format of mapped region of the memmapfile function, it is declared unambiguously that  You can use any of the following data types when you specify a Format value:

  • 'int8'

  • 'int16'

  • 'int32'

  • 'int64'

  • 'uint8'

  • 'uint16'

  • 'uint32'

  • 'uint64'

  • 'single'

  • 'double'


multibandread 函数是用自己能读的格式,去读存在二进制中的 specific_DataType/ByteOrder/bandInterleaved_data 的——所以 MATLAB 应该涵盖某种 二进制存储的 DataType 方可读进去。


cell array 的操作函数




https://blog.sciencenet.cn/blog-1006391-1041199.html


收藏 IP: 159.226.117.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-26 12:55

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部