Hello all – thought I’d ping the group at this point to see if there are any further ideas or if others have converted FCI data to NetCDF.
Thanks much,
Steve
From:
Steven Albers <steve....@spire.com>
Date: Tuesday, April 9, 2024 at 4:03 PM
To: pyt...@googlegroups.com <pyt...@googlegroups.com>
Subject: Re: [pytroll] Re: Reading MTG FCI brightness temperature / reflectance data
Thanks much Andrea (and Martin) for your advice! Thus far I’m attempting a simple conversion to NetCDF with these two lines, though it gives some error messages. There might be an issue with the NetCDF aspects
of things. I’ll attach the script and its output in case it helps. The idea would be a simple example to read in an MTG channel and write it out as full disk data in NetCDF format.
scn.load(['ir_105'])
scn.save_datasets(writer="cf")
Take care,
Steve
From:
pyt...@googlegroups.com <pyt...@googlegroups.com> on behalf of Andrea Meraner <andrea....@hotmail.it>
Date: Thursday, April 4, 2024 at 2:12 AM
To: pytroll <pyt...@googlegroups.com>
Subject: [pytroll] Re: Reading MTG FCI brightness temperature / reflectance data
You don't often get email from andrea....@hotmail.it. Learn why this is important |
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you have verified the sender’s email address and know the content is safe.
--
You received this message because you are subscribed to the Google Groups "pytroll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
pytroll+u...@googlegroups.com.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/pytroll/23925827-be2e-42eb-ac5a-4a03b50483ffn%40googlegroups.com.
Hello Andrea and all,
Thanks much for your comment and interest in this example. My latest attempt imports ‘hdf5plugin’ and I get a message at the bottom saying:
“RuntimeError: NetCDF: Filter error: undefined filter encountered”
Is there another filter i should install for MTG data? I’ll attach the script and output log via a zip file.
Thanks,
Steve
--
You received this message because you are subscribed to a topic in the Google Groups "pytroll" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/pytroll/IReJh5kjm5g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
pytroll+u...@googlegroups.com.
To view this discussion, visit
https://groups.google.com/d/msgid/pytroll/a9613ee8-1efc-4b78-9aee-d393d355ea31n%40googlegroups.com.
Hello Andrea,
Thanks much for the suggestions. I reran the script with the latest satpy version 53. Also in the attached zip file we can see I have netCDF4 and numpy versions that should be compatabe in the log file top
part. The NetCDF file is included in the zip file as just the header info is written to it so far.
INFO:satpy.writers.cf_writer:Saving datasets to NetCDF4/CF.
NumPy version: 1.24.2
netCDF4 version: 1.6.2
I still get the same error message with the NetCDF writer (and compression) at the bottom of the log file.
RuntimeError: NetCDF: Filter error: undefined filter encountered
I wonder if anyone can show a working script that writes MTG/FCI data in NetCDF by any chance?
Take care,
Steve
To view this discussion, visit https://groups.google.com/d/msgid/pytroll/e447363b-b04a-4674-95c9-3b9962a6648en%40googlegroups.com.
Hello Andrea,
Interesting details and suggestions. The conda environment setup for this does now work! Attached is a look at the result using ‘ncview’.
Thanks very much for your help.
Steve
To view this discussion, visit https://groups.google.com/d/msgid/pytroll/bf310c65-891f-41fc-9d24-4ade03d7e00en%40googlegroups.com.
Hello Andrea – Indeed I switched to the conda build as you were suggesting and that worked successfully.
Take care,
Steve
To view this discussion, visit https://groups.google.com/d/msgid/pytroll/76344bd0-10bb-4456-a360-3bce48da822an%40googlegroups.com.