josephhardinee / PyDSD

Python Library for working with disdrometer data.
GNU Lesser General Public License v2.1
45 stars 33 forks source link

Support for 2DS/HVPS instrument data #8

Closed aamatthews closed 9 years ago

aamatthews commented 9 years ago

This is now the 2DS only issue.

It would be great if a reader could be added to read in and process 2DS and HVPS .txt files, as these have similar measurements to disdrometers.

2DS: This is split into 2 files, one for Horizontal and one for Vertical, .txt file -Time is recorded in seconds since 00 UTC, dividing by 3600. puts it into hours. -The concentration column is the total concentration of drops at that particular time. -All columns where the header begins C: are the concentrations of drops in each bin, in #/L/um. -The spread of the bins is variable. I believe the data is also tab separated. The example shown I poorly converted to an excel spreadsheet to get a better image of the headers. 2ds_data_image

HVPS: Vertical only, .txt file Similar columns and locations to the 2DS data, but the bin sizes are different, as this instrument measures larger particles.

It would be nice if temperature could be set manually, as well as the time chosen to evaluate. Choosing the times to start and end evaluation would allow the user to choose only the time period where the drops were liquid.

josephhardinee commented 9 years ago

Can you attach one of the actual files as well please?(Or a link to an actual file)

aamatthews commented 9 years ago

https://www.dropbox.com/s/dkak6qezwemqlfu/2DS_20150205a_H_M1ice.txt.gz?dl=0 Here is the link to one of the 2DS Horizontal files. It says ice, but that was just the processing mode. There are times of just liquid drops present.

josephhardinee commented 9 years ago

Also can you split these into two different issues on here, this will make it a little easier for each PR to address one at a time.

aamatthews commented 9 years ago

Do you mean split by file type (2DS and HVPS separate), or by reader and choosing time/temperature?

aamatthews commented 9 years ago

Also, the final bin for the C: category is set by the file as 'inf', for binning purposes in the past, we have set this to be 4000 for 2DS.

josephhardinee commented 9 years ago

This is addressed in commit ab064fd. Closing.