Stream: general

Topic: GeoTIFF and GeoJSON


view this post on Zulip Alice DuVivier (May 07 2024 at 14:33):

Does anyone here have experience converting CESM netcdf data to the GeoTIFF or GeoJSON types of files? For a project where my NGO partner will be making a website they've requested these formats (specifically in the OGC:CRS84 grid projection). If anyone has experience with this or suggestions, please reach out. I'd used an online conversion tool unsuccessfully, but I've also used up my free trials there and I'd rather just have the conversion be part of my Jupyter Notebook workflow.

Thanks!

view this post on Zulip Katelyn FitzGerald (May 07 2024 at 15:09):

If I recall correctly, GeoJSON is used for vector data so may not make sense here. I know there are more geospatial savvy folks on here though - please chime in if this is incorrect!

As for netCDF to GeoTIFF, I'd look into GDAL for a command line tool (quick demo from NSIDC or something like rioxarray if you're already working with xarray.

This should also be something GIS software can handle e.g. QGIS or ArcGIS the NSF NCAR GIS Program might have some resources or suggestions here.

view this post on Zulip Alice DuVivier (May 07 2024 at 15:24):

Katelyn FitzGerald said:

If I recall correctly, GeoJSON is used for vector data so may not make sense here. I know there are more geospatial savvy folks on here though - please chime in if this is incorrect!

As for netCDF to GeoTIFF, I'd look into GDAL for a command line tool (quick demo from NSIDC or something like rioxarray if you're already working with xarray.

This should also be something GIS software can handle e.g. QGIS or ArcGIS the NSF NCAR GIS Program might have some resources or suggestions here.

Thanks, Katelyn. This is helpful! The way it was explained to me is that the maps where we could click to navigate would use GeoJSON. Then there would be heatmaps of climate data would use the GeoTIFF format. The GeoTIFF format makes more intuitive sense to me. But if someone in the GIS program (and is on this list) has insight that would be helpful. I did reach out to someone there and have not yet heard back.

view this post on Zulip Katelyn FitzGerald (May 07 2024 at 15:38):

Ah, that could make sense or I suppose you could use it to display grids / outlines.

GDAL should have some conversion tools and in Python I'd look at UXarray / Xarray to geopandas or something like that.

Hopefully the GIS program gets back to you as well! They're a great resource.

view this post on Zulip Thomas Martin (May 07 2024 at 18:09):

GeoPandas is where I would look if you really want a geoJSON. You set the CRS on output.

I would also ask them about a COG as well: https://www.cogeo.org/

view this post on Zulip Alice DuVivier (May 07 2024 at 20:14):

Thomas Martin said:

GeoPandas is where I would look if you really want a geoJSON. You set the CRS on output.

I would also ask them about a COG as well: https://www.cogeo.org/

Thanks, @Thomas Martin . I'll investigate that further. :)

view this post on Zulip Kevin Sampson (May 14 2024 at 18:45):

Hi Alice, I just saw this but I am in the GIS Program and I frequently make these kinds of geospatial data from model outputs. Happy to chat!

view this post on Zulip Alice DuVivier (May 14 2024 at 22:55):

@Kevin Sampson Thanks! I emailed Jenn about this and she's looking at one of my files I'm hoping to convert in the next few days. I'd be happy to get any advice you have as well. I'm not sure how much you and Jenn talk, so I don't want to ask you both the same questions. I am a total newbie at this an mainly want to figure out a workflow so that I can make the files myself since I will have several to make for the GeoTIFFs at least.

view this post on Zulip Kevin Sampson (May 15 2024 at 16:14):

@Alice DuVivier Do you have a sample file I could look at?

view this post on Zulip Alice DuVivier (May 15 2024 at 17:41):

I will email it to you. Thanks!


Last updated: May 16 2025 at 17:14 UTC