GithubHelp home page GithubHelp logo

alexneises / nexrad.js Goto Github PK

View Code? Open in Web Editor NEW
9.0 6.0 0.0 69.8 MB

Progress for this repo is moving to the Nexview organization.

Home Page: https://github.com/Nexview

License: MIT License

CoffeeScript 98.64% HTML 1.36%
nexrad radar radar-processing wsr-88d weather noaa nws graphic-alphanumeric-data symbology-data binary-decoding

nexrad.js's Introduction

nexrad.js v1.1.1

A JavaScript processor for WSR-88D NEXRAD radar data.

To install, run npm install; bower install.

Start the server by renaming config.default.json to config.json and running npm start.

v1.0.0 has been deprecated and will be removed in v2.0.0.

Nexrad

Description Data

Returns all processed description blocks

POST /v1.1/nexrad/description

Parameters

Name Type Description
file Binary NEXRAD-specific binary data file

Success Response

Success Response:

HTTP/1.1 200 OK
{
    "description": {
        "divider": -1,
        "latitude": 35.333,
        "tabularoffset": "0"
    }
}

Error Response

Error Response:

HTTP/1.1 4xx
{
    "status": "4xx",
    "error": "Error description"
}

Graphic Alphanumeric Data

Returns all processed graphic alphanumeric blocks

POST /v1.1/nexrad/graphic_alpha

Parameters

Name Type Description
file Binary NEXRAD-specific binary data file

Success Response

Success Response:

HTTP/1.1 200 OK
{
    "graphic_alpha": {
        "divider": 27,
        "blockid": "15846",
        "pages": {
            "1": {
                "data": {
                    "messages": {
                        "1": {
                            "text_color": "0",
                            "pos_i": 0,
                            "message": " CIR STMID  10    M0 992    Y1 439    U0  12    M0 402    N1 824    A1          "
                        }
                    }
                },
                "vectors": {
                    "1": {
                        "pos_i_begin": 4,
                        "pos_j_begin": 0,
                        "pos_j_end": 0
                    },
                    "color": "3"
                }
            },
            "number": "1",
            "length": "574"
        }
    }
}

Error Response

Error Response:

HTTP/1.1 4xx
{
    "status": "4xx",
    "error": "Error description"
}

Header Data

Returns all processed header blocks

POST /v1.1/nexrad/headers

Parameters

Name Type Description
file Binary NEXRAD-specific binary data file

Success Response

Success Response:

HTTP/1.1 200 OK
{
    "headers": {
        "code": "27",
        "date": "2012-06-19T17:00:00.000Z",
        "numberOfBlocks": "3"
    }
}

Error Response

Error Response:

HTTP/1.1 4xx
{
    "status": "4xx",
    "error": "Error description"
}

All Radial Data

Returns all processed radial blocks

POST /v1.1/nexrad/radial

Parameters

Name Type Description
file Binary NEXRAD-specific binary data file

Success Response

Success Response:

HTTP/1.1 200 OK
{
    "headers": {
        "code": "27",
        "date": "2012-06-19T17:00:00.000Z",
        "numberOfBlocks": "3"
    },
    "description": {
        "divider": -1,
        "latitude": 35.333,
        "tabularoffset": "0"
    },
    "symbology": {
        "divider": "65535",
        "blockid": "1",
        "radial": {
            "0": {
                "colorValues": [
                    "0",
                    "0",
                    "0"
                ],
                "numOfRLE": "19",
                "angledelta": 0.9,
                "startangle": 136.1
            }
        }
    }
}

Error Response

Error Response:

HTTP/1.1 4xx
{
    "status": "4xx",
    "error": "Error description"
}

Symbology Data (Raster)

Returns all processed symbology blocks

POST /v1.1/nexrad/symbology

Parameters

Name Type Description
file Binary NEXRAD-specific binary data file

Success Response

Success Response:

HTTP/1.1 200 OK
{
    "symbology": {
        "divider": "65535",
        "blockid": "1",
        "row": {
            "1": {
                "data": [
                    "14",
                    "14",
                    "6"
                ],
                "bytes": "12591"
            }
        }
    }
}

Error Response

Error Response:

HTTP/1.1 4xx
{
    "status": "4xx",
    "error": "Error description"
}

Symbology Data (Radial)

Returns all processed symbology blocks

POST /v1.1/nexrad/symbology/radial

Parameters

Name Type Description
file Binary NEXRAD-specific binary data file

Success Response

Success Response:

HTTP/1.1 200 OK
{
    "symbology": {
        "divider": "65535",
        "blockid": "1",
        "radial": {
            "0": {
                "colorValues": [
                    "0",
                    "0",
                    "0"
                ],
                "numOfRLE": "19",
                "angledelta": 0.9,
                "startangle": 136.1
            }
        }
    }
}

Error Response

Error Response:

HTTP/1.1 4xx
{
    "status": "4xx",
    "error": "Error description"
}

Radial

All Data (Deprecated)

Returns all processed data

POST /v1/nexrad/radial

Parameters

Name Type Description
file Binary NEXRAD-specific binary data file

Success Response

Success Response:

HTTP/1.1 200 OK
{
    "headers": {
        "code": "27",
        "date": "2012-06-19T17:00:00.000Z",
        "numberOfBlocks": "3"
    },
    "description": {
        "divider": -1,
        "latitude": 35.333,
        "tabularoffset": "0"
    },
    "symbology": {
        "divider": "65535",
        "blockid": "1",
        "radial": {
            "0": {
                "colorValues": [
                    "0",
                    "0",
                    "0"
                ],
                "numOfRLE": "19",
                "angledelta": 0.9,
                "startangle": 136.1
            }
        }
    },
    "graphic_alpha": {
        "divider": 27,
        "blockid": "15846",
        "pages": {
            "1": {
                "data": {
                    "messages": {
                        "1": {
                            "text_color": "0",
                            "pos_i": 0,
                            "message": " CIR STMID  10    M0 992    Y1 439    U0  12    M0 402    N1 824    A1          "
                        }
                    }
                },
                "vectors": {
                    "1": {
                        "pos_i_begin": 4,
                        "pos_j_begin": 0,
                        "pos_j_end": 0
                    },
                    "color": "3"
                }
            },
            "number": "1",
            "length": "574"
        }
    }
}

Error Response

Error Response:

HTTP/1.1 4xx
{
    "status": "4xx",
    "error": "Error description"
}

Description Data (Deprecated)

Returns all processed description blocks

POST /v1/nexrad/radial/description

Parameters

Name Type Description
file Binary NEXRAD-specific binary data file

Success Response

Success Response:

HTTP/1.1 200 OK
{
    "description": {
        "divider": -1,
        "latitude": 35.333,
        "tabularoffset": "0"
    }
}

Error Response

Error Response:

HTTP/1.1 4xx
{
    "status": "4xx",
    "error": "Error description"
}

Graphic Alphanumeric Data (Deprecated)

Returns all processed graphic alphanumeric blocks

POST /v1/nexrad/radial/graphic_alpha

Parameters

Name Type Description
file Binary NEXRAD-specific binary data file

Success Response

Success Response:

HTTP/1.1 200 OK
{
    "graphic_alpha": {
        "divider": 27,
        "blockid": "15846",
        "pages": {
            "1": {
                "data": {
                    "messages": {
                        "1": {
                            "text_color": "0",
                            "pos_i": 0,
                            "message": " CIR STMID  10    M0 992    Y1 439    U0  12    M0 402    N1 824    A1          "
                        }
                    }
                },
                "vectors": {
                    "1": {
                        "pos_i_begin": 4,
                        "pos_j_begin": 0,
                        "pos_j_end": 0
                    },
                    "color": "3"
                }
            },
            "number": "1",
            "length": "574"
        }
    }
}

Error Response

Error Response:

HTTP/1.1 4xx
{
    "status": "4xx",
    "error": "Error description"
}

Header Data (Deprecated)

Returns all processed header blocks

POST /v1/nexrad/radial/headers

Parameters

Name Type Description
file Binary NEXRAD-specific binary data file

Success Response

Success Response:

HTTP/1.1 200 OK
{
    "headers": {
        "code": "27",
        "date": "2012-06-19T17:00:00.000Z",
        "numberOfBlocks": "3"
    }
}

Error Response

Error Response:

HTTP/1.1 4xx
{
    "status": "4xx",
    "error": "Error description"
}

Symbology Data (Deprecated)

Returns all processed symbology blocks

POST /v1/nexrad/radial/symbology

Parameters

Name Type Description
file Binary NEXRAD-specific binary data file

Success Response

Success Response:

HTTP/1.1 200 OK
{
    "symbology": {
        "divider": "65535",
        "blockid": "1",
        "radial": {
            "0": {
                "colorValues": [
                    "0",
                    "0",
                    "0"
                ],
                "numOfRLE": "19",
                "angledelta": 0.9,
                "startangle": 136.1
            }
        }
    }
}

Error Response

Error Response:

HTTP/1.1 4xx
{
    "status": "4xx",
    "error": "Error description"
}

nexrad.js's People

Contributors

alexneises avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nexrad.js's Issues

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.