peterkuma / cl2nc Goto Github PK
View Code? Open in Web Editor NEWConvert Vaisala CL51 and CL31 ceilometer dat files to NetCDF
License: MIT License
Convert Vaisala CL51 and CL31 ceilometer dat files to NetCDF
License: MIT License
Hi,
Having the following error for converting cl51 data.
`Traceback (most recent call last):
File "/home/sourav/anaconda3/bin/cl2nc", line 240, in read_input
d.update(line0(line))
File "/home/sourav/anaconda3/bin/cl2nc", line 51, in line0
if m is None: raise Exception('Invalid syntax for time format')
Exception: Invalid syntax for time format
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/sourav/anaconda3/bin/cl2nc", line 478, in
'check': args.check
File "/home/sourav/anaconda3/bin/cl2nc", line 275, in read_input
raise Exception('Error on line %d: %s: %s' % (line_number, e, line))
Exception: Error on line 4: Invalid syntax for time format: �CL010326�
`
Any suggestion?
Thanks in advance
Hi,
I have several CL31 files (one example attached here) where I have found the last timestamp has not been included in the netcdf.
Netcdf created with:
cl2nc cl2nc_issue_example.DAT cl2nc_issue_example.nc
From cl2nc_issue_example.DAT you can see the last timestamp in the file is 2021-03-21 01:59:56
However, after a quick inspection of the netcdf:
import netCDF4 as nc
import datetime as dt
nc_data = nc.Dataset('cl2nc_issue_example.nc')
netcdf_timestamps = [dt.datetime.fromtimestamp(i) for i in nc_data['time'][:]]
max(netcdf_timestamps).strftime('%Y-%m-%d %H:%M:%S')
>> '2021-03-21 01:59:42'
i.e. the second last timestamp in the file.
This is with cl2nc version 3.3.0 and python version 3.8.3
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.