Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small inconsistency in csv output #110

Open
brancomat opened this issue Jan 22, 2024 · 1 comment
Open

small inconsistency in csv output #110

brancomat opened this issue Jan 22, 2024 · 1 comment
Assignees
Labels

Comments

@brancomat
Copy link
Member

Starting from a grib file I'm creating a csv output for zonal averages with this command:

vg6d_getpoint --trans-type=polyinter --sub-type=average --coord-format=shp --coord-file=${macroaree} --output-format=native ${grib} - | v7d_transform --input-format=native --output-format=csv --csv-header=1 --csv-loop=time,timerange,level,ana,network,var --csv-column=time,timerange,level,ana,network,var,value - ${grib%%grib}macro.csv"

The resulting csv output starts this way:

Date,Time range,P1,P2,Level1,L1,Level2,L2,Longitude,Latitude,Report,Variable,Value
,,,,,,,,12.05236,44.02745,generic,B01192,1
2024-01-23 00:00:00,1,86400,86400,1,,,,12.05236,44.02745,generic,B13205,0.175292976E-01
2024-01-23 00:00:00,1,86400,86400,1,,,,12.22835,44.11616,generic,B01192,2
2024-01-23 00:00:00,1,86400,86400,1,,,,12.22835,44.11616,generic,B13205,0.00000000
2024-01-23 00:00:00,1,86400,86400,1,,,,11.32422,44.36250,generic,B01192,3
2024-01-23 00:00:00,1,86400,86400,1,,,,11.32422,44.36250,generic,B13205,0.00000000

In short the first occurence of B01192 is missing a number of fields. While I'm aware it's not strictly necessary since it's basically an attribute of the subsequent B123205 I was wondering if this behaviour is to be considered normal or something that can (or should) be fixed.

@dcesari
Copy link
Member

dcesari commented Jan 22, 2024

The reason for which date and timerange are missing is that B01192 is a constant station datum, so it makes sense, but I agree that it should be alway the same, not just the first time, it's probably a half-bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants