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

Load function for weather stations #39

Open
Balinus opened this issue Jun 1, 2018 · 5 comments
Open

Load function for weather stations #39

Balinus opened this issue Jun 1, 2018 · 5 comments
Assignees
Milestone

Comments

@Balinus
Copy link
Member

Balinus commented Jun 1, 2018

We need a function that will load weather stations data.

The problem is that there is no standard for such data.

Objectives

  • Canadian weather stations
  • NCEI weather stations (see NCEI package)
  • A hardcoded way to import csv data (columns is station, rows are time)
@Zeitsperre
Copy link
Collaborator

Zeitsperre commented Jun 1, 2018

I've done a fair amount of this (badly) in python. There might be a way to adapt some of my work in https://github.com/Zeitsperre/canada-climate-python to perform this.

While this work didn't use pandas, I'm wondering if an implementation of it or something similar to it exists for Julia. Environement Canada station data is less-than-optimally formatted, so a portion of my code simply deals with workarounds that pandas might be better suited for. I'll start looking into this Monday.

@Balinus
Copy link
Member Author

Balinus commented Jun 1, 2018

DataFrames.jl and Pandas.jl could be a solution, but would add other dependencies. The other option would be to continue with AxisArrays.jl which can index Categorical axis (station number for example).

@Balinus
Copy link
Member Author

Balinus commented Oct 4, 2019

@houton199 Any code that could be used here?

@Zeitsperre
Copy link
Collaborator

@Balinus

I've retackled this issue in a few places, converting either ECCC flat files or CSVs to NetCDF with "loose" CF conventions. The code is the work of several people (@sbiner, @RondeauG) and is currently being integrated into Ouranosinc/miranda. See https://github.com/Ouranosinc/miranda/tree/master/miranda/eccc for some examples of how we're dealing with hourly flat files. Feel free to take inspiration or raise issues or suggest edits if you see something.

@Balinus
Copy link
Member Author

Balinus commented Oct 7, 2019

Thanks! Will have a look.

@Zeitsperre Zeitsperre removed their assignment Jan 5, 2021
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