snowex-hackweek / space-station Goto Github PK
View Code? Open in Web Editor NEWExaming how snowex obs correlate to stations
License: BSD 3-Clause "New" or "Revised" License
Examing how snowex obs correlate to stations
License: BSD 3-Clause "New" or "Revised" License
What we want, what we need to avoid.
Windroses, etc. Check out metloom package
as a developer I need to know what n # of met sites are closest to any given snow ex sites.
The function should take a lat/long of a snow ex site, a input geojson (mostly snotels, but any sites) and a n # of sites and return a geojson representation of the n # of snotels that are closest to that snow ex site. The calculation does not need to be exact but should be accurate enough to be trusted and with low computational overhead.
A snippet which may help taken from another project takes a input gdf and returns other sites within that gdf that are closest to a given site. Just need to modify it to use a lat and long as input rather than a reference to another site
def nearest_sites(df_meta, resp_site=None, pred_sites=None, num_sites=10):
try:
num_sites = int(num_sites)
except ValueError:
num_sites = 10
tx = df_meta[df_meta["triplet"] == resp_site]["latitude"]
ty = df_meta[df_meta["triplet"] == resp_site]["longitude"]
def calc_dist(row, tx=tx, ty=ty):
return (row["latitude"] - tx) ** 2 + (row["longitude"] - ty) ** 2
df_meta["proximity"] = df_meta.apply(calc_dist, axis=1)
df_meta.sort_values(by="proximity", inplace=True)
df_nearest = df_meta.head(num_sites + 1).copy()
triplets_in_use = tuple(set([i for i in (resp_site,) + pred_sites if i]))
df_in_use = df_meta[df_meta["triplet"].isin(triplets_in_use)]
df = pd.concat([df_nearest, df_in_use]).drop_duplicates(ignore_index=True)
return df
Need a shape file with pertinent site meta data for all SNOTELs and SnowEx Sites - create a gist (geojson) and export a binary .shp as zip. This can then be handed off to @arienzo to manipulate in arcGIS
A reminder to decide on how exactly we want to analyze our data
We need to determine the exact and accurate location of station data
We need mock objects of the data structure to allow plotting and analysis work to happen in tandem
As a developer I need a dataloader for both snowEx, AWDB, and metloom data (and any other sources that are identified). The methods or classes should take a site_id, date range and sensor/element type and return a datetime indexed dataframe with the data. Perhaps all data sources should be called from a single method and return all data sources in a single dataframe.
max distance from site should change depending on different parameters such as vegetative cover, elevation, aspect, etc...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.