Coder Social home page Coder Social logo

fwx's Introduction

FWX data file format (v0.5) - 2019-08-20

Differences from v0.4 - 2003-09-30
 - Minor version bump from 4 to 5
 - Addition of Solar radiation field

FWX's data file is a coma separated list of values read from the weather
station.  The fields are:

Major version nubmer - integer
Currently 0

Minor version number - integer
Currently 5

Time stamp in seconds past the epoch - integer
The epoch is midnight (UTC) of the 1st of January of 1970.  This value
can be converted to a readable format with the -r option to date, eg:
    $ date -r 1064905402
    Tue Sep 30 00:03:22 PDT 2003
    $

Barometric pressure measured (in inches of mercury) - float3

Instantaneous wind speed (in miles/hour) - integer

Wind direction (in degrees (0 - 360)) - integer

Average wind speed (over the last 10 minutes) - integer

Indoor temperature (wherever the station is located, in degrees F) - float1

Outdoor temperature (in degrees F) - float1

Dewpoint (outdoors, in degrees F) - float1

Indoor relative humidity (in %) - integer

Outdoor relative humidity (in %) - integer

Instantaneous rain rate (in/hour) - float2

Cumulative rain for this day (in) - float2

Cumulative rain for this month (in) - float2

Cumulative rain for this year (in) - float2

Solar radiation (w/m3) - integer

float1 means a floating point value with one significant digit to the
right of the decimal point

float2 means a floating point value with two significant digits to the
right of the decimal point

float3 means a floating point value with three significant digits to the
right of the decimal point

Note that dewpoint is a calculated value based on temperature and relative
humidity.  See the routine wxcalcdewpoint() in fwx.c.

These are trivial to read with a shell script, sh, ksh, & bash can use
something like:

while IFS="," read vermaj vermin time barom windspeed winddir avgwind tempin tempout dewpoint humin humout rainrate rainday rainmonth rainyear solar junk; do
   # some processing here
done < <logfile>

fwx's People

Contributors

michaelgalassi avatar

fwx's Issues

complete CWOP data

Calculate r (rainfall in the last hour) and p (rainfall in the last 24 hours) for CWOP.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.