# \[별첨] 파일 생성 및 입출력 (70%)

본 챕터에서는 각 라이브러리들을 이용한 기본적 파일 읽기, 생성, 쓰기, 변환, 정보 출력 등에 대하여 살펴 보겠습니다.

당연한 내용들이라 부가 설명을 쓰기도 어색하네요.

## 1. 읽기

PCD파일을 읽어 메모리 상에 저장 합니다.

## 2. 생성

랜덤 함수나 배열 생성 방법을 사용하여 임의 point cloud를 생성 합니다.

## 3. 쓰기

메모리 상에 저장된 Point cloud를 PCD파일 형태로 저장 합니다.

## 4. 변환

Python의 경우 numpy 형태로 변화하여 학습 알고리즘 라이브러리(ex. sklearn)에 적용 가능합니다. 이를 위하여 PCD를 Numpy로 변환 합니다.

## 5. 정보 출력

생성 및 읽어들은 Point cloud의 포인트수, 파일크기, 파일타입 정보 등을 출력 합니다.

* [PyPCD I/O 쥬피터](https://github.com/adioshun/gitBook_Tutorial_PCL/blob/master/Beginner/Part01-Chapter01-pyPCD.ipynb)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pcl.gitbook.io/tutorial/part-1/part01-chapter01.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
