# LASCO C2 - FITs images

**URL:** <https://community.openastronomy.org/t/lasco-c2-fits-images/640>\
**Category:** SunPy\
**Tags:** sunpy, fits, question\
**Created:** [April 2, 2023, 2:44pm UTC](https://community.openastronomy.org/t/lasco-c2-fits-images/640 "2023-04-02T14:44:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_ESN](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@Luis\_ESN](https://community.openastronomy.org/u/Luis_ESN)\
**Post date:** [April 2, 2023, 2:44pm UTC](https://community.openastronomy.org/t/lasco-c2-fits-images/640/1 "2023-04-02T14:44:35Z")

</div>

I’m working on image processing in my graduate school and I’m interested in using images from the LASCO instrument.  
I’m interested in doing some techniques and algorithms, as per the documentation and example gallery, and then converting the images to .png or .jpeg, getting final results as 8-bit images (uint8).  
One of the simplest ways would be to divide all the pixels in the images that fit by the maximum value and then multiply by 255.  
But where do I find the maximum value of FITs images? Are the images really in Float32?

---

<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:** [April 3, 2023, 12:03am UTC](https://community.openastronomy.org/t/lasco-c2-fits-images/640/2 "2023-04-03T00:03:56Z")

</div>

Hello Luis\_ESN,

Without seeing some code or getting more information on your context, all I can suggest:

If you have a array, you can check the maximum either using `.max` or calling `numpy.max(array)`.

The same goes for the type, `array.dtype` to get the type.

If you have a FITS file, the data type might be stored in the header along with the data max.

Kind regards,  
Nabil
