geoschem / gcpy

Python toolkit for GEOS-Chem. Contains basic plotting scripts, plus the suite of GEOS-Chem benchmarking utilities.
https://gcpy.readthedocs.io
Other
50 stars 24 forks source link

Creating a .txt file using GCPy #195

Closed TylerElgiar closed 1 year ago

TylerElgiar commented 1 year ago

Type your question below:

I am curious if there is a way to create a .txt file containing mass concentrations of certain species using GCPy. I see on the "read the docs" site that there is a way to create a time series, but I am unable to find where I can only extract a .txt file to later use in excel.

yantosca commented 1 year ago

Thanks for writing @TylerElgiar. You might not need GCPy to do this but could try another data structure like Pandas dataframe. I think there might also be a csv package in Python but you'll have to look that up.

TylerElgiar commented 1 year ago

Okay, thanks for the quick response. I'll try one of these other ways. I just wanted to make sure there wasn't a quick and easy way to do this in GCPy, before going down another road.

Thanks, Tyler On Tuesday, January 24, 2023, 10:08:10 AM MST, Bob Yantosca @.***> wrote:

Thanks for writing @TylerElgiar. You might not need GCPy to do this but could try another data structure like Pandas dataframe. I think there might also be a csv package in Python but you'll have to look that up.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

yantosca commented 1 year ago

No problem @TylerElgiar. GCPy hasn't tried to duplicate other existing Python functionality. It's mostly used for GEOS-Chem benchmarking, with some user-facing plotting and utility codes.

I'll close out this issue now. Thanks!