Giter Site home page Giter Site logo

rucool / hfradarpy Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 10.0 140.15 MB

Toolbox to read in High Frequency Radar (HFR) files written in the Codar Tabular Format (CTF). Easily read CODAR Ocean Sensors SeaSonde and HELZEL Messtechnik GmbH WERA radial files.

License: MIT License

Python 100.00%

hfradarpy's People

Contributors

kwilcox avatar lnazzaro avatar najascutellatus avatar teresaupdyke avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hfradarpy's Issues

error writing an empty Radial file

I can read in a radial file that has no radials but cannot output an empty radial file using hfradarpy.Radials.to_ruv(). An empty radial file as the header metadata but no radials in an LLUV Table (see attached file --
RDLi_HATY_2020_10_08_2100.txt) and the Table looks like this.

%TableType: LLUV RDL3
%TableStart:
%%
%%
%TableEnd:
%%

I might be doing something wrong in qccodar do_merge(), but by reporting the issue here I hope that you might know how to address it. I'll be looking at it too since it is holding up reprocessing at UNC.

BOLD where the error occurs

Unexpected error in formatting one of these columns: LOND LATD ESPC ETMP BEAR HEAD
Traceback (most recent call last):
File "/Users/codar/miniconda3/envs/qccodar/bin/qccodar", line 8, in
sys.exit(main())
File "/Users/codar/miniconda3/envs/qccodar/lib/python3.7/site-packages/qccodar/app.py", line 225, in main
manual(datadir, pattern,configfile)
File "/Users/codar/miniconda3/envs/qccodar/lib/python3.7/site-packages/qccodar/app.py", line 86, in manual
ofn = do_merge(datadir, fn, pattern, qccodar_values)
File "/Users/codar/miniconda3/envs/qccodar/lib/python3.7/site-packages/qccodar/codarutils.py", line 562, in do_merge
write_output(r, ofn)
File "/Users/codar/miniconda3/envs/qccodar/lib/python3.7/site-packages/qccodar/codarutils.py", line 23, in write_output
r.to_ruv(ofn, validate=False, overwrite=True)
File "/Users/codar/miniconda3/envs/qccodar/lib/python3.7/site-packages/hfradarpy/radials.py", line 1163, in to_ruv
self.data.columns = self._tables[1]["_TableHeader"][0]

File "/Users/codar/miniconda3/envs/qccodar/lib/python3.7/site-packages/pandas/core/generic.py", line 5500, in setattr
return object.setattr(self, name, value)
File "pandas/_libs/properties.pyx", line 70, in pandas._libs.properties.AxisProperty.set
File "/Users/codar/miniconda3/envs/qccodar/lib/python3.7/site-packages/pandas/core/generic.py", line 766, in _set_axis
self._mgr.set_axis(axis, labels)
File "/Users/codar/miniconda3/envs/qccodar/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 216, in set_axis
self._validate_set_axis(axis, new_labels)
File "/Users/codar/miniconda3/envs/qccodar/lib/python3.7/site-packages/pandas/core/internals/base.py", line 58, in _validate_set_axis
f"Length mismatch: Expected axis has {old_len} elements, new "
ValueError: Length mismatch: Expected axis has 0 elements, new values have 1 elements

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.