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

Adding Irwin SP #111

Open
micahjohnson150 opened this issue Jun 26, 2024 · 2 comments
Open

Adding Irwin SP #111

micahjohnson150 opened this issue Jun 26, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@micahjohnson150
Copy link
Contributor

Creating this to continue a convo with Joe.

Would be cool to add in the csv data from the Irwin Study plot to be used from metloom.

There doesn't sound like a publicly available API or link but we could still make a class to read the csv that is often emailed around when updated. We could also add a variables class to map variables. Here is what I am picturing.

from metloom.pointdata import IrwinPointData 
from metloom.variables import IrwinVariables

pnt = IrwinPointData(csv=file)
df = pnt.get_daily_data(start, end, [IrwinVariables.SNOWDEPTH])

The variables are a straightforward mapping of their names to a more useful or readable name. e.g.

in variables.py

class IrwinVariables(VariableBase):
    SNOWDEPTH = InstrumentDescription("Sno_Height_M", "SNOWDEPTH")

While this effort wouldnt solve much in the way of getting the data, it would help standardize the use of individual energy balance sites that all seem to do things a scosh different.

@micahjohnson150 micahjohnson150 added the enhancement New feature or request label Jun 26, 2024
@micahjohnson150 micahjohnson150 self-assigned this Jun 26, 2024
@jomey
Copy link

jomey commented Jun 26, 2024

Just checked what I remember being the 'raw' file and it was an Excel sheet, which I then exported as CSV. The site has Temperature and the four component data in this format:

TIMESTAMP, RECORD, Batt_volt_Min, PTemp, Incoming) Solar_Wm2_1_Avg, Incoming_NIR_Wm2_2_Avg, Outgoing_Solar_Wm2_3_Avg, Outoging_NIR_Wm2_4_Avg

Sample row:

4/27/2019 18:00, 0, 13.61, 9.5, 556.1829, 232.8276, 361.8972, 112.1594

I manually added some spaces here after the comma for readability

@micahjohnson150
Copy link
Contributor Author

Sweet pretty simple. The advantage will be variable mapping which is still nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants