lukegre / pyseaflux Goto Github PK
View Code? Open in Web Editor NEWCalculation of air-sea fluxes - for now only CO2
Home Page: https://seaflux.readthedocs.io
License: MIT License
Calculation of air-sea fluxes - for now only CO2
Home Page: https://seaflux.readthedocs.io
License: MIT License
We see SeaFlux as both a data product and an accompanying code base.
We thus need to be able to update the data product at least annually.
The following configuration will be followed:
The data pipeline will be created with the fetch-data
package
kw_scaled_params={
'wind_speed':ds['wind_speed_ms'],
'wind_grid_stdev':ds['wind_stdev_ms'],
'temp_C':ds['sst'],
'ice_frac':ds['ifrac'],
'scaling':16,
}
flux_bulk_params={
'temp_bulk_C':ds['sst'],
'salt_bulk':ds['sss'],
'pCO2_bulk_uatm':ds['spco2'],
'pCO2_air_uatm':(ds['xco2']*ds['mslp']),
'press_hPa':(ds['mslp']*1013.2501),
'wind_ms':ds['wind_speed_ms'],
# kw_scaled should be a function like other kw values
'kw_func':seaflux.gas_transfer_velocity.kw_scaled(**kw_scaled_params)
}
fgco2 = seaflux.flux_bulk(**flux_bulk_params)
Currently, each of the kw parameterisations has basic documentation (article + wind product).
More detail in the documentation would help the users understand when to use a particular parameterisation. Further, the method used to arrive at the estimate could be helpful.
Lastly, a dedicated page briefly outlining the theory of gas transfer velocity and when to use which product would be immensely useful. Perhaps a table showing the wind product used for a parameterisation.
The sphinx-autodoc generator is quite sensitive to doc string formatting.
This needs to be cleaned up accordingly.
This uses the numpydoc setting
https://developer.lsst.io/python/numpydoc.html#py-docstring-short-summary
Not sure if you're already aware of this, but I just came across another tool that could be used to validate/compare these conversions - https://github.com/dpierrot/fCO2_Calc
We currently use the square of the wind product parameterisation, as in Wanninkhof (1992). Several members of the community have commented that additional parameterisations should be scaled. This could include Nightingale et al. (2000), Ho et al. (2006), McGillis et al. (1999).
One of the problems with optimising these parameters is how to perform the optimisation when more than one parameter (alpha) needs to be scaled.
Documentation is currently sparse. So a bit of an overhaul required.
I've migrated the documentation to sphinx
which can also take Jupyter-notebooks.
The following sections that should be covered.
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.