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

Pandas-based NLDN reader #4

Open
deeplycloudy opened this issue Feb 18, 2019 · 1 comment
Open

Pandas-based NLDN reader #4

deeplycloudy opened this issue Feb 18, 2019 · 1 comment

Comments

@deeplycloudy
Copy link
Owner

Related to #2, here's a NLDN reader:

def read_nldn(format='stroke_ICCG'):
    """ Draft function for reading NLDN data with Pandas"""
    import pandas as pd
    if format='stroke_ICCG':
        col_names = ['datepart', 'timepart', 'lat', 'lon', 
                     'peak_current', 'ICCG']
    nldn = pd.read_csv('../NLDN_stroke_and_cloud_dN4KG.txt', sep='\s+', 
                        header=None, parse_dates={'time':[0,1]},
                        names=col_names)
    return nldn
@deeplycloudy
Copy link
Owner Author

And here's one for the combined/merged NLDN+GLD360 data available to select members of the GLM validation team.

import pandas as pd
nldn_file = '/archive/GLM/gld360/gld360enldnns_20181113_13Z.raw'
nldn = pd.read_csv(nldn_file, sep='\s+', header=None,
                   parse_dates={'time':[0,1]}, names=['datepart', 'timepart', 'lat', 'lon', 
                                                      'peak_current', 'current_unit',
                                                      'multiplicity', 'majorax', 'minorax',
                                                      'axratio', 'angle', 'chi2', 'number',
                                                      'ICCG'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant