# Fetching daily OMNI dataset from sunpy

**URL:** https://community.openastronomy.org/t/fetching-daily-omni-dataset-from-sunpy/614
**Category:** SunPy
**Tags:** question, sunpy
**Created:** [March 20, 2023, 11:57am UTC](https://community.openastronomy.org/t/fetching-daily-omni-dataset-from-sunpy/614 "2023-03-20T11:57:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Simone.M](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@Simone.M](https://community.openastronomy.org/u/Simone.M)
#### Post date: [March 20, 2023, 11:57am UTC](https://community.openastronomy.org/t/fetching-daily-omni-dataset-from-sunpy/614/1 "2023-03-20T11:57:05Z")

</div>

I have a problem fetching data from the OMNI dataset with Fido. In particular, I would like to access daily data ( in the ex. given from 2016/3/4’ to '2016/3/6), however Fido.search only finds the monthly data. I attach the code in the following. Thanks in advance !

import numpy as np  
import matplotlib.pyplot as plt  
from [sunpy.net](http://sunpy.net) import Fido  
from [sunpy.net](http://sunpy.net) import attrs as a  
from sunpy.timeseries import TimeSeries as ts

trange = a.Time(‘2016/3/4’, ‘2016/3/6’)  
print(trange)  
dataset = a.cdaweb.Dataset(‘OMNI\_HRO2\_1MIN’)  
result = Fido.search(trange, dataset)  
print(result)

---

<div class="post-metadata">

### Author: ![nabobalis](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/nabobalis/32/14_2.png) [@nabobalis](https://community.openastronomy.org/u/nabobalis)
#### Post date: [March 20, 2023, 3:44pm UTC](https://community.openastronomy.org/t/fetching-daily-omni-dataset-from-sunpy/614/2 "2023-03-20T15:44:47Z")

</div>

Hello,

I am unclear if this is a bug in how `sunpy` does the search or it just how the CDAWEB API works. That will need investigating (I will ask someone who is familiar with this data source).

It is not really ideal but in the meantime, you can download the month and then crop the data after it has been read into timeseries.

---

<div class="post-metadata">

### Author: ![jangieseler](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/jangieseler/32/89_2.png) [@jangieseler](https://community.openastronomy.org/u/jangieseler)
#### Post date: [March 27, 2023, 9:14am UTC](https://community.openastronomy.org/t/fetching-daily-omni-dataset-from-sunpy/614/3 "2023-03-27T09:14:23Z")

</div>

I would say this is the expected behavior, as the OMNI 1min data are provided as monthly files, e.g. [Index of /pub/data/omni/omni\_cdaweb/hro2\_1min/2016](https://spdf.gsfc.nasa.gov/pub/data/omni/omni_cdaweb/hro2_1min/2016/)
