-
Notifications
You must be signed in to change notification settings - Fork 179
IFPSConvention #1240
Comments
I have one sample file in our test datasets directory that is 40 MB. I've zipped the file and attached it to this issue. Having looked at the metadata in the file, there's not really much to go off of, which is why the public static boolean isMine( NetcdfFile ncfile) {
Variable v = ncfile.findVariable("latitude");
return (null != ncfile.findDimension("DIM_0")) && (null != ncfile.findVariable("longitude"))
&& (null != v) && (null != ncfile.findAttValueIgnoreCase(v, "projectionType", null));
} do not inspire a lot of confidence in being able to identify the convention being used in the file. Of the four, the :creationTime = 1110842162; // int
:creationTimeString = "Mon Mar 14 23:16:02 2005";
:fileFormatVersion = "20010816";
:startProcTime = "19700101_0000";
:endProcTime = "20371231_2359"; Maybe the |
@lesserwhirls, Global metadata in the sample "good" and "bad" files I was provided are the same as yours. Including the same value for the Use of the But yeah, I have my concerns that there doesn't seem to be anything else in the file that waves its hand and says, "I could be an IFPS file." Sample files I was provided are both 170 MB. Large, although not as bad as the 3.4 GB 😮 file someone else sent my way today. |
I think calling it a "convention" is a bit of a stretch. Our own API docs say: "IFPS Convention Allows Local NWS forecast office generated forecast datasets to be brought into IDV." I can't find this data anywhere, so I'm guess they're some kind of an ad hoc dump out of another data store. For future google searching, IPFS stands for: "interactive forecast preparation system". |
The AWIPS Graphical Forecast Editor (GFE) produces these grids. Looks like ifpnetCDF.py will tell us quite a bit, especially this if argDict['krunch']:
setattr(file, "fileFormatVersion", "20030117")
else:
setattr(file, "fileFormatVersion", "20010816") I bet looking for a match on one of those two specific values of It looks like this comment before the ### Special case, if dimension of zero, use a different name. It'd be nice to know if Raython would add a global attribute to their file, something like:
(the term "conventions" being used loosely), to allow for better identification of the file. What do you think the chances are of that, @mjames-upc? Is that something we could push for with a reasonable chance of success? Would making a PR help (it's only one line)? Something tells me going for full CF compliance would be a non-starter for AWIPS, but adding a global attribute seems more than reasonable. |
I think this is addressed for now (PR #1247) while options are being weighed for a better solution upstream when the products are generated. |
Yes, @lesserwhirls, I think this will have to do. Even if NWS does sometime start adding more useful metadata, there are going to be plenty of old datasets floating around without it. |
Anyone around familiar with the IFPS convention for NWS data?
An NWS user was trying to figure out why Panoply was displaying "virtual" time coordinates for one dataset, but not another. The difference turned out to be that the dataset with the missing variables did not include a DIM_0 dimension, apparently because it didn't need one.
The problem is that when NJ's
IFPSConvention
is queried as to whether it claims a dataset, one of the 4 conditions it tests is the presence of DIM_0.So I'm wondering if removing that condition from
IFPSConvention.isItMine()
would be a good idea, or if it would cause other trouble, perhaps with datasets created using some other condition.The class appears to have been contributed by someone at NWS, so perhaps asking here won't receive any especially knowledgeable answers.
The text was updated successfully, but these errors were encountered: