file_type ="NETCDF_NCCF" for gen_ens_prod? #1519
-
Hello, I am trying to use gen_ens_prod to analyze a set of ensemble netcdf files. I know from plot_data_plane that met does not recognize these files unless I add file_type=NETCDF_NCCF to the field string. However, there isn't an option to pass a field string to gen_ens_prod, and adding file_type to the field entry in my config file leaves me with the same issue of Met2dDataFileFactory::new_met_2d_data_file() -> created new Met2dDataFile object of type "FileType_None". How do I tell gen_ens_prod that my file is netcdf? My configuration file is: and my command is: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Hi @benjamin-cash, you cannot specify the file type per field, but you can specify it for all ensemble input.
|
Beta Was this translation helpful? Give feedback.
-
@benjamin-cash, thanks for posting that sample file. As I understand it, you'd like to compute the average value for all time step between weeks 3 and 4. I pulled down the sample file and ran the following command. I see that this file contains a whopping 141 hourly timesteps with a reference time of "2012-01-15 00:00:00" and 6-hourly forecast hours out to 840 hours. Week 3 - 4 would include forecast hours 504 to 672. Here's the big downside... you'll need to specify each timestep separately in the pcp_combine command and 1 week would correspond to 28 of them! By way of example, I'll list the command for the mean of 8 timesteps. But I'm sure you'll get the point.
And then plot it:
Obviously listing each timestep separately is unwieldy. If we need to support this type of processing, we could consider enhancing the MET NetCDF library logic to support time ranges. Something like this: Note this command DOES NOT work:
|
Beta Was this translation helpful? Give feedback.
Hi @benjamin-cash, you cannot specify the file type per field, but you can specify it for all ensemble input.
Moving
file_type = NETCDF_NCCF;
out of the field array so that it is on the same level as ens_thresh and vld_thresh should give you the results you are expecting.