HDF5DotNet : 値の読み込み2013年02月09日 21:05

数値型の読み込み方法について

読み込みでは、"H5D"クラスにある、"read<>"のジェネリックメソッドを使用する。
同じクラスにある"write<>"と同じ引数"H5DataSetId"と"H5TypeId"が必要なので、取得する必要がある。もう一つの引数は"H5Array<>"を指定する。

まずは"H5D"クラスにある"open"メソッドを使用する。引数はfileOrGroupId("H5FileOrGroupId"クラス)とdataSetName("string"クラス)。戻り値は"H5DataSetId"。要はこのメソッドで"H5DataSetId"を取り出す。ただし、グループ内に指定の引数指定のdataSetNameがない場合は"Exception"をthrowするので注意。
H5DataSetId dataSetID = H5D.open( fileID,"TestDataSet" );
"H5TypeId”クラスの取得については、上記で取得した"H5DataSetId"を使用して取得できる。"H5D"クラス内の、"getType"メソッドを使用。引数は上記で取得した"H5DataSetId"クラスを指定する。
H5DataTypeId dataTypeID = H5D.getType( dataSetID );
あとは"H5Array<>"を準備する。ジェネリックなので型を指定する。インスタンス作成時の引数はジェネリックで指定した型の配列を入れる。この中にデータの中身が入れられる。
int[] intArray = new int[]{0};
H5Array<int> array =
new
 H5Array<int>( myArray );
仕上げに、"H5D"クラスの"read<>"ジェネリックメソッドを実行してデータを取り出す。
H5D.read<int>( dataSetID , dataTypeID , array  );
int returnValue = intArray[0];
使用後は、"close"メソッドが使用できるものは閉じて終了。
以下、サンプル
H5FileId fileID = H5F.open( "C:\\HDFSampleFile.hdf5"H5F.OpenMode.ACC_RDWR );
H5DataSetId dataSetID = H5D.open( fileID,"TestDataSet" );
H5DataTypeId dataTypeId = H5D.getType( dataSetID );
int[] intArray = new int[] { 0 };
H5Array<int> array = new H5Array<int>( intArray );
H5D.read<int>( dataSetID, dataTypeId, array );
int returnValue = intArray[ 0 ];
H5D.close( dataSetID );
H5T.close( dataTypeId );
H5F.close( fileID );

コメント

_ Barbera ― 2013年12月30日 00:00

A book of First Class stamps http://www.word-bank.com/famvir/ famciclovir 500 mg Kenya is a wonderful and beautiful country with people who are friendly and

_ Sophia ― 2013年12月30日 00:00

A company car http://www.wollhandwerk.at/zestoretic/ zestoretic 20 June 2008 3.2.14 Variable 5.1” Request Format

_ Mariah ― 2013年12月30日 00:00

I'll text you later http://casarusia.com/diflucan/ diflucan otc Simultaneous determination of primaquine and carboxyprimaquine in plasma

_ Jeremiah ― 2013年12月30日 00:00

We'll need to take up references http://casarusia.com/diflucan/ how much does diflucan cost Rubella ± Vaccination of one dose of rubella vaccine.

_ Josiah ― 2013年12月30日 00:00

Very interesting tale http://casarusia.com/crestor/ purchase rosuvastatin online help with E-Value is also available through the Office of Experiential Education.

_ Jenna ― 2013年12月30日 00:00

Go travelling http://www.kitsunesuki.com/cipralex/ cipralex magyaroldalak Refer to section 2.14 on page 2.14.1 for additional information.

_ Elijah ― 2013年12月30日 00:00

Lost credit card http://www.leaoengenharia.com/mirapex/ mirapex 0.25 Note: Any other value from 0

_ Janni ― 2013年12月30日 00:52

Other amount http://www.wataganpark.com.au/inderal/ propranolol 60 mg er cap Crystal Therapy, Orthomolecular Medicine, pranic Healing, Radionics, Therapeutic Humor,

_ Marissa ― 2013年12月30日 00:52

I want to make a withdrawal http://www.csrsafety.com/tadalis/ tadalis online M. Identify and report medication errors and adverse events to appropriate individuals

_ Grace ― 2013年12月30日 00:52

I came here to study http://www.hotelcile.me/tinidazole/ metronidazole or tinidazole program requirements and available resources. Students will choose from a list of

_ Seth ― 2013年12月30日 00:52

I work for a publishers http://k-hotels.com/yasmin/ order yasmin online Goal 2: Describe and Participate in the Sites Medication Use and Distr ibution System(s)

_ Owen ― 2013年12月30日 00:52

A law firm http://www.hotelcile.me/endep/ endep 50mg line information. If a student has unfavorable information on the background check, this

_ Aubrey ― 2013年12月30日 00:52

A Second Class stamp http://www.fieldworkfuture.com/index.php/crestor/ purchase rosuvastatin online Students will continue to explore the concepts of professionalism and shared accountabilities for

_ Aiden ― 2013年12月30日 00:52

I'll call back later http://www.mamaloca.net/thorazine/ chlorpromazine mg720 Coinsurance (NY Product Supply Code) will be returned in the Amount of

_ William ― 2013年12月30日 00:52

We went to university together http://elliottworkgroup.com/serevent/ buy salmeterol online only diet drink available (sometimes) and costs a bit more. We ask that you record each drink

_ bobber ― 2013年12月30日 01:45

I went to http://www.kitsunesuki.com/tofranil/ buy cheap imipramine belongs to the student.

_ coco888 ― 2013年12月30日 01:45

I'm interested in this position http://www.inspiralia.com/proventil/ albuterol with ipratropium Approval Number fields match a previous paid claim and one of the following conditions

_ Snoopy ― 2013年12月30日 01:45

I'm doing an internship http://www.rh-partners.com/nitroglycerin/ nitroglycerin sublingual tablet 1.5 Assist the patient with

_ Brady ― 2013年12月30日 01:45

There's a three month trial period http://www.rh-partners.com/nitroglycerin/ nitroglycerin buy and several other American universities have been partnered with the

_ Isaac ― 2013年12月30日 01:45

Stolen credit card http://www.kirnberger.com/ventolin/ ventolin hfa 90 mcg inhaler gsk compromised. Disposable (single use) gloves are not to be washed or decontaminated for re-

_ Aidan ― 2013年12月30日 01:45

Do you have any exams coming up? http://casarusia.com/ibtopicsrofen/ ibuprofen 400 mg tablet The Post-Clerkship Meeting Day is mandatory for all PY4 students and will be scheduled by

_ Ariana ― 2013年12月30日 01:45

I'd like to cancel this standing order http://www.edlaw.org/erythromycin/ erythromycin buy uk students with the wide range of practice experience opportunities across the state and to provide

_ Julian ― 2013年12月30日 01:45

I'm on work experience http://www.edlaw.org/erythromycin/ erythromycin price in the philippines foreigner, as a westerner. People might not guess that you are American; it is

_ Sara ― 2013年12月30日 01:46

What's the last date I can post this to to arrive in time for Christmas? http://www.rh-partners.com/lamisil/ lamisil buy online HAVE RESTRICTIONS Monthly Maximums

_ nogood87 ― 2013年12月30日 02:38

This site is crazy :) http://k-hotels.com/glucophage/ glucophage xr 500mg 2. You may confront the student with your suspicion and ask him/her to self-report. Regardless of the students response, you are

_ Aaron ― 2013年12月30日 02:38

An estate agents http://www.kirnberger.com/seroquel/ buy seroquel online cheap ± This approval must occur 8 weeks prior

_ Dghonson ― 2013年12月30日 02:39

Which university are you at? http://www.pacopena.com/topamax/ 50mg topamax weight loss SPHCY 484* April APPE 4.0 DPPE Faculty

_ Amber ― 2013年12月30日 02:39

How do you spell that? http://www.huddlestontax.com/tetracycline/ tygacil tetracycline resistant bacteria effort in the US designed to meet selected needs in Kenya. Through this effort, Moi

_ Aubrey ― 2013年12月30日 02:39

Have you got any qualifications? http://nationalemsacademy.com/zenegra/ zenegra 100 Accurately label and dispense medication.

_ Dominic ― 2013年12月30日 03:32

How many days will it take for the cheque to clear? http://www.doubledtrailers.com/atrovent/ purchase atrovent online medication being lost, damaged/destroyed, or stolen.

_ Mackenzie ― 2013年12月30日 03:32

Could you transfer $1000 from my current account to my deposit account? http://www.csrsafety.com/keflex/ antibiotics keflex Beclomethasone inhaler 100mcg/dose 2-4 puffs bd prn

_ Kevin ― 2013年12月30日 03:32

I hate shopping http://nationalemsacademy.com/macrobid/ macrobid generic preceptor that article is relevant to their institution. Actively engage in a

_ Kyle ― 2013年12月30日 03:32

Is this a temporary or permanent position? http://www.earsc.org/yasmin/ yasmin 3 mg submitted to the eMedNY contractor via paper, or electronic batch.

_ Mason ― 2013年12月30日 03:32

A financial advisor http://www.rh-partners.com/eriacta/ ranbaxy eriacta 100 sizes, shapes, and markings on oral solids. For oral liquids and injectables, show patients the

_ Noah ― 2013年12月30日 04:26

this post is fantastic http://www.polleyclinic.com/albenza/ albendazole (albenza) or mebendazole (vermox) over the counter some of these individuals have sought to relocate elsewhere in the region, and others may

_ Michelle ― 2013年12月30日 04:26

Could I have an application form? http://www.polleyclinic.com/albenza/ mebendazole albendazole over counter Never participates in Rarely participates in inquisitive. Usually participates in

_ Robert ― 2013年12月30日 04:27

I'm doing a masters in law http://www.cancerlifecenter.org/proscar/ best place buy proscar online provide regular feedback with guidance on self improvement. Tools for successful

_ Bailey ― 2013年12月30日 04:27

Could you tell me the number for ? http://www.edlaw.org/tadacip/ tadacip 20 mg india should assure that adequate time is allocated to each objective area and that minimum hour

_ Eli ― 2013年12月30日 04:27

Can you put it on the scales, please? http://elliottworkgroup.com/desyrel/ trazodone street price displayed, this can also be used to move

_ Charles ― 2013年12月30日 04:27

this is be cool 8) http://www.gordonswine.com/anafranil/ 25 mg clomipramine packages for shipment in compliance with NRC and Department of Transportation (DOT)

_ Blake ― 2013年12月30日 05:21

I'm a housewife http://www.mentalhealthhelp.com/bimatoprost/ bimatoprost online 6. Adequately oriented me to the site, resources, personnel Enter 1 ± 5 Score - - - - >

_ Timothy ― 2013年12月30日 05:21

Will I be paid weekly or monthly? http://www.mentalhealthhelp.com/bimatoprost/ order bimatoprost online lunch each Thursday to discuss any issues, positive or negative, or just to visit. Other foreign residents and students

_ Wyatt ― 2013年12月30日 05:21

i'm fine good work http://www.hotelcile.me/naprosyn/ naprosyn price professional societies, pharmaceutical industry corporate headquarters or manufacturing

_ Josiah ― 2013年12月30日 05:21

I'll call back later http://casarusia.com/vpxl/ order vpxl display a positive attitude in

_ Kayla ― 2013年12月30日 05:21

I'm interested in this position http://www.word-bank.com/zaditor/ ketotifen tablets Provide additional information with dispensed medication to include, instructions

_ Jason ― 2013年12月30日 05:21

Do you need a work permit? http://www.edlaw.org/ventolin/ order albuterol inhaler 5.0 DUR/PPS RESPONSE SEGMENT (Rev. 10/08)

_ Sebastian ― 2013年12月30日 05:21

Thanks for calling http://www.csrsafety.com/prevacid/ coupon for prevacid be returned in the response.

_ Makayla ― 2013年12月30日 05:21

The manager http://k-hotels.com/flonase/ otc flonase failing patients, and Kenya will begin to isolate a growing reservoir of resistant

_ Michael ― 2013年12月30日 06:15

How do you know each other? http://www.mentalhealthhelp.com/levlen/ what is levonorgestrel contractor. In order to receive payment for services rendered, all pharmacies must submit

_ Landon ― 2013年12月30日 06:15

Yes, I play the guitar http://www.doubledtrailers.com/periactin/ periactin buy online property with respect. Rarely listens Ocassionally listens Usually listens Always listens

※コメントの受付件数を超えているため、この記事にコメントすることができません。

トラックバック

このエントリのトラックバックURL: http://memo-memo-and-memo.asablo.jp/blog/2013/02/09/6716449/tb

_ ルイヴィトン 財布 - 2013年07月10日 20:17

HDF5DotNet : 値の読み込み: プログラムなど個人的メモ

_ www.87wg.com - 2013年08月29日 13:24

lunettes oakley pas cher

_ black desert help - 2015年04月10日 02:34

The youre really talented .

_ safest wow gold - 2015年04月10日 21:01

Really enjoy all of these safest wow gold....Amazing product, teriffic save

_ cheap wow gold - 2015年04月20日 16:07

All of the cheap wow gold will be cool, although i used the them in the rain after as well as saying colour lost because of modest vivid white stockings.

_ buy BNS gold - 2016年04月24日 08:23

Leave me alone !

_ u4fifa - 2016年05月30日 02:04

How come you are working here?

_ albion online silver - 2016年06月25日 13:29

That makes two of us.

_ UPAlbion.com - 2016年06月26日 20:07

If I have the guts to quit my job .

_ u4fifa - 2016年07月06日 07:40

it's very useful for me searching on this website!

_ u4fifa - 2016年07月08日 00:42

You bet !

_ buy fifa 17 points - 2016年07月16日 22:07

I'll fix it!

_ fifa 17 xbox 360 coins - 2016年07月29日 18:49

I thought I should give it a shot!

_ cheap fifa 17 coins - 2016年08月06日 08:45

I don't know what you are saying

_ FIFA17 XBOX 360 800k coins - 2016年08月24日 12:50

look great today.

_ fifa 17 coins - 2016年09月06日 09:52

You always love it.