usda-ars-ussl / fluxpart

Python module for partitioning eddy covariance flux measurements.
Other
31 stars 13 forks source link

TOB1 format? #2

Closed rochaadolpho closed 6 years ago

rochaadolpho commented 6 years ago

How to use fluxpart with high frequency files in TOB1 format?

thank you.

thskaggs commented 6 years ago

Version 0.1.0 can't work directly with a TOB1 file. You have to read the file outside of fluxpart, and then send the data in chunks to the flux partitioning function.

Version 0.2.0-beta, which should be available for download by the end of the week, is able to work directly with the TOB1 file.

rochaadolpho commented 6 years ago

Thank you for your help.

rochaadolpho commented 6 years ago

I'm trying to run the model with 1 day data (TOA5 format) obtained at 20Hz frequency and in files at 30min intervals. However, the template is returning me the following message:

C:\Users\Adolpho\Anaconda3\envs\fluxpart-env\lib\site-packages\fluxpart\hfdata.py:131: FutureWarning: Numpy has detected that you may be viewing or writing to an array returned by selecting multiple fields in a structured array. This code may break in numpy 1.13 because this will return a view instead of a copy -- see release notes for details. mask = np.isnan(data[var_names].view(float).reshape(-1, 7)).any(axis=1)

How to solve?

rochaadolpho commented 6 years ago

how to proceed if in the file some records have the 'NAN' or -9999 name?

How to solve?

In my data the partition is usually only physically valid in the early hours of the day, at other times the model has Fqe <0. or without solution Is there anything to correct?