Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-write convert_to_netCDF to deal with directories with more that one file type #67

Closed
tsherwen opened this issue Nov 9, 2016 · 3 comments
Assignees

Comments

@tsherwen
Copy link
Owner

tsherwen commented Nov 9, 2016

Currently convert_to_netCDF will not work on directories that contain a mixture of timestptamp files (ts*.bpch), ctm output (ctm.bpch or trac), HEMCO etc. This should be updated to process only the file type that convert_to_netCDF is called for and have a option to process all output.

@BenNewsome BenNewsome self-assigned this Nov 10, 2016
@BenNewsome
Copy link
Collaborator

I am not sure I follow.

Are you saying the convert_to_netCDF does not work if you have say 201202.bpch and a file called ctm.bpch in the same folder?

@tsherwen
Copy link
Owner Author

Yes. So I think using a glob.glob call to make lists of the difference file
types would be a good idea. I think default behavior should be to process
the file type called for (e.g. ctm.bpch), but an option should be there to
try and process all file types.

On 10 November 2016 at 13:27, Ben Newsome notifications@github.com wrote:

I am not sure I follow.

Are you saying the convert_to_netCDF does not work if you have say
201202.bpch and a file called ctm.bpch in the same folder?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#67 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEeGjEX8w4focVs4zGKpYfSdF_dxeFBIks5q8xu8gaJpZM4KtgJI
.

Dr Tomás Sherwen
Postdoctoral Research Associate

Wolfson Atmospheric Chemistry Laboratories (WACL)
Department of Chemistry, University of York
Heslington, York, YO10 5DD
Office phone (shared): +44(0)1904 324758
Homepage: https://www.york.ac.uk/chemistry/staff/resstaff/sherwent/
tomas.sherwen@york.ac.uk [image: tomas.sherwen]
http://orcid.org/0000-0002-3006-3876
https://scholar.google.co.uk/citations?user=e3SmNJoAAAAJ&hl

@BenNewsome
Copy link
Collaborator

BenNewsome commented Nov 10, 2016

Updated to allow filetype to be specified (So you can do ' *.ctm.bpch' or ' *.bpch')

Not tested properly, but it should work with whatever format you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants