# How to analyze .nc or .dcd trajectory files in GROMACS

**URL:** https://gromacs.bioexcel.eu/t/how-to-analyze-nc-or-dcd-trajectory-files-in-gromacs/11026
**Category:** User discussions
**Tags:** analysis-tools
**Created:** [January 13, 2025, 5:04pm UTC](https://gromacs.bioexcel.eu/t/how-to-analyze-nc-or-dcd-trajectory-files-in-gromacs/11026 "2025-01-13T17:04:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sankar](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@sankar](https://gromacs.bioexcel.eu/u/sankar)
#### Post date: [January 13, 2025, 5:04pm UTC](https://gromacs.bioexcel.eu/t/how-to-analyze-nc-or-dcd-trajectory-files-in-gromacs/11026/1 "2025-01-13T17:04:29Z")

</div>

Respected Sir/Ma’am,  
I am Sankar Maity, a Ph.D scholar at the National Institute of Technology Rourkela, India. I have .nc or .dcd trajectory files using AMBER and would like to perform further analysis (GROMACS-LS and the MDStress library enable the calculation of local stress fields from molecular dynamics simulations). Could anyone please suggest me on how to analyze my trajectory files (.nc or .dcd) using GROMACS?

Thank You  
Sankar Maity

---

<div class="post-metadata">

### Author: ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)
#### Post date: [January 14, 2025, 2:20pm UTC](https://gromacs.bioexcel.eu/t/how-to-analyze-nc-or-dcd-trajectory-files-in-gromacs/11026/2 "2025-01-14T14:20:09Z")

</div>

I would recommend using MDTraj: [MDTraj — MDTraj 1.9.8.dev0 documentation](https://www.mdtraj.org/1.9.8.dev0/index.html) to convert from .dcd to .xtc (or .trr). However, if you need a .tpr file for your analyses, it will not be as simple as that.

---

<div class="post-metadata">

### Author: ![sankar](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@sankar](https://gromacs.bioexcel.eu/u/sankar)
#### Post date: [January 15, 2025, 1:41pm UTC](https://gromacs.bioexcel.eu/t/how-to-analyze-nc-or-dcd-trajectory-files-in-gromacs/11026/3 "2025-01-15T13:41:16Z")

</div>

Respected sir,  
Thank you sir for your guidance, successfully converted my .dcd files to .xtc files by following the MDTraj process.

Thank You  
Sankar Maity
