# Workaround for AIA data processing because of JSOC outage

**URL:** <https://community.openastronomy.org/t/workaround-for-aia-data-processing-because-of-jsoc-outage/1171>\
**Category:** SunPy\
**Tags:** sunpy, fits, question\
**Created:** [December 16, 2024, 11:41am UTC](https://community.openastronomy.org/t/workaround-for-aia-data-processing-because-of-jsoc-outage/1171 "2024-12-16T11:41:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ziyaan](https://avatars.discourse-cdn.com/v4/letter/z/a9adbd/32.png) [@Ziyaan](https://community.openastronomy.org/u/Ziyaan)\
**Post date:** [December 16, 2024, 11:41am UTC](https://community.openastronomy.org/t/workaround-for-aia-data-processing-because-of-jsoc-outage/1171/1 "2024-12-16T11:41:55Z")

</div>

JSOC servers were significantly impacted by flooding on 2024-11-26. Aiapy functions for updating pointing and retrieving degradation tables, which rely on these servers, now throw the following error:

```auto
    353 obj, end = self.scan_once(s, idx)
    354 except StopIteration as err:
--> 355 raise JSONDecodeError("Expecting value", s, err.value) from None
    356 return obj, end

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

```

Are there alternative methods to preprocess AIA images, without the use of JSOC servers, since it is not clear when they will be back online and I am running out of time for my project.

---

<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:** [December 16, 2024, 4:42pm UTC](https://community.openastronomy.org/t/workaround-for-aia-data-processing-because-of-jsoc-outage/1171/2 "2024-12-16T16:42:48Z")

</div>

Hello @Ziyaan,

I am in the process of adding offline support to many of the calibration methods in aiapy.  
Note that some of these will produce worse outcomes than the JSOC values.

I hope to get it out later this week.

---

<div class="post-metadata">

**Author:** ![Ziyaan](https://avatars.discourse-cdn.com/v4/letter/z/a9adbd/32.png) [@Ziyaan](https://community.openastronomy.org/u/Ziyaan)\
**Post date:** [December 20, 2024, 6:25pm UTC](https://community.openastronomy.org/t/workaround-for-aia-data-processing-because-of-jsoc-outage/1171/3 "2024-12-20T18:25:54Z")

</div>

That would be great, please update this thread when the update is out and info on how to use the functions in offline mode.  
Thank you so much.

---

<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:** [January 9, 2025, 12:08am UTC](https://community.openastronomy.org/t/workaround-for-aia-data-processing-because-of-jsoc-outage/1171/4 "2025-01-09T00:08:01Z")

</div>

Hello @Ziyaan,

Sorry for the late reply! I just released aiapy 0.10, so you will have to upgrade.

To work around the JSOC downtime, I had to break a bunch of code. Basically I separated the fetching of the data from the main calibration functions and created some utility functions to get the data required.

The changelog outline the changes: [Full Changelog — aiapy 0.10.0 documentation](https://aiapy.readthedocs.io/en/stable/whatsnew/changelog.html#id1)

For prepping level 1 to 1.5, the example has been updated. [Registering and aligning level 1 data — aiapy 0.10.0 documentation](https://aiapy.readthedocs.io/en/stable/generated/gallery/prepping_level_1_data.html) to showcase how it is handled with the new API.

The JSOC is kind of back, so most of the metadata calls now work as before but you still can not get any data at the moment. So it’s possible that aiapy 0.9 / your current code will just work again.

If you have any questions or have any problems, please let me know.

Cheers,  
Nabil
