Skip to content

Single in_data file for DetectNode and NodeFileEditor  #82

Description

@NihatCubukcu

Hi
Kind of related to #40 and #76, according to the paper in here, we should be able to use the same input file (even if it has extra fields) as
DetectNodes --in_data_list files.txt --out_file_list OutputFiles.txt --timefilter "6hr" --mergedist 6.0 --searchbymin mean_sea_level_pressure --closedcontourcmd "mean_sea_level_pressure,200.0,5.5,
0;_DIFF(geopotential(300hPa),geopotential(500hPa)),-58.8,6.5,1.0" --outputcmd "mean_sea_level_pressure,min,0;_DIV(geopotential_at_surface,9.81),max,0;_VECMAG(VAR_10U,VAR_10V),max,2" --latname lat --lonname lon --regional
StitchNodes --in_list OutputFiles.txt --out Tracks.csv --out_file_format "csv" --in_fmt "lon,lat,slp,zs,wind" --range 8.0 --mintime "12h" --maxgap "12h" --threshold "wind,>=,5.0,2;lat,<=,50.0,2;la
t,>=,-50.0,2;zs,<=,150.0,4"
NodeFileEditor --in_data_list files.txt --in_nodefile OutputFiles.txt --in_nodefile_type "SN" --in_fmt "lon,lat,slp,zs,wind" --out_nodefile rmax.txt --out_fmt "lon,lat,rsize,rprof" --timefilter "6hr" --calculate "rprof=radial_wind_profile (VAR_10U,VAR_10V,159,0.125);rsize=lastwhere(rprof,>,8)" --latname lat --lonname lon --regional

Here files.txt is used both in DetectNodes and NodeFileEditor and its content is :

mean_sea_level_pressure.nc;VAR_10U.nc;VAR_10V.ncgeopotential_at_surface.nc;geopotential.nc;total_precipitation.nc

if this is used, DetectNodes and StitchNodes run just fine. But NodeFileEditor gives "Variable "time" has invalid type in file "mean_sea_level_pressure.nc".

Upon going through NodeFileEditor.cpp code, I decided to to create a separate input file with time dimension as "int64" instead of "datetime64". I rerun NodeFileEditor with the new input file but this time I get
missing "calendar" attribute

I feel like there is an argument missing in my call that prevents me from using the same input file. Any help would be greatly appreciated. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions