Giter Site home page Giter Site logo

No CDF Epoch about pysatcdf HOT 4 CLOSED

pysat avatar pysat commented on June 11, 2024
No CDF Epoch

from pysatcdf.

Comments (4)

rstoneback avatar rstoneback commented on June 11, 2024

Hi Matt,

Thanks for checking out pysatCDF. My guess is the epoch variable is of type EPOCH16, which isn’t supported yet. I’ll get it fixed up.
Is the CDF file you are loading available publicly so I can check it out?

Cheers,
Russell

On Mar 11, 2016, at 6:06 AM, mattkjames7 [email protected] wrote:

Hi, I have been experimenting with pysatCDF, which can successfully read the data that I am trying to look at. The only problem I have is that there is no "epoch" entry in the cdf.data dict. There is definitely an epoch in the file as it is listed in the metadata, not to mention that I can get the epoch values using IDL (yuck!). Is there something that I am missing?
Cheers,
Matt.


Reply to this email directly or view it on GitHub.

from pysatcdf.

mattkjames7 avatar mattkjames7 commented on June 11, 2024

Hi Russell,
Thanks for the quick reply! The CDF files I am using are publicly available here.
Cheers,
Matt.

from pysatcdf.

rstoneback avatar rstoneback commented on June 11, 2024

Hi Matt,

I’ve pushed some code to the repo that should fix things up.

When re-running 'python setup.py install' if it doesn’t re-compile the Fortran clear out the build directory.

Cheers,
Russell

import pysatCDF
dd = pysatCDF.CDF('rbspa_efw-l3_20120919_v01.cdf')

dd.data['epoch']
Out[5]:
array(['2012-09-18T19:00:20.472515072-0500',
'2012-09-18T19:00:26.771920896-0500',
'2012-09-18T19:00:33.071325952-0500', ...,
'2012-09-19T18:58:34.048406016-0500',
'2012-09-19T18:58:41.560549888-0500',
'2012-09-19T18:58:49.072690944-0500'], dtype='datetime64[ns]')

On Mar 11, 2016, at 10:20 AM, mattkjames7 [email protected] wrote:

Hi Russell,
Thanks for the quick reply! The CDF files I am using are publicly available here.
Cheers,
Matt.


Reply to this email directly or view it on GitHub.

from pysatcdf.

mattkjames7 avatar mattkjames7 commented on June 11, 2024

Brilliant, thank you so much for that! It's a great help!

from pysatcdf.

Related Issues (20)

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.