Activity for Jake T

  • Jake T Jake T posted a comment on discussion Help

    So I was able to achieve what I was hoping to do with the code below. Wanted to share in case anyone has a similar issue in the future. Thank you for all of your help Charlie. for yyyy in {1991..2018}; do # Loop over years for moy in {1..12}; do # Loop over months mm=$( printf "%02d" ${moy} ) # Change to 2-digit format ncatted -t -a _FillValue,,o,d,9.9692099683868690e+36 -a _FillValue,,o,f,9.9692099683868690e+36 seastate_${yyyy}${mm}.nc Rseastate_${yyyy}${mm}.nc done done

  • Jake T Jake T posted a comment on discussion Help

    my files are in the form seastate_199108.nc...seastate201812.nc So something like: for yyyy in {1991..2018}; do # Loop over years for moy in {1..12}; do # Loop over months mm=$( printf "%02d" ${moy} ) # Change to 2-digit format # Average specific month yyyy-mm ncra -O -d time,"${yyyy}-${mm}-01","${yyyy}-${mm}-31" \ in.nc in_${yyyy}${mm}.nc done done The above is from the guide. Can I replace the ncra with: ncatted -t -a _FillValue,,o,d,9.9692099683868690e+36 -a _FillValue,,o,f,9.9692099683868690e+36...

  • Jake T Jake T modified a comment on discussion Help

    Would it be possible to use the following to add the fillvalue to all of my input files? ncatted -t -a FillValue,,o,d,9.9692099683868690e+36 in*.nc Can I use the wildcard to insert the FillValue in all my files?

  • Jake T Jake T modified a comment on discussion Help

    Would it be possible to use the following to add the fillvalue to all of my input files? ncatted -t -a FillValue,,o,d,9.9692099683868690e+36 in*.nc

  • Jake T Jake T posted a comment on discussion Help

    Would it be possible to use the following to add the fillvalue to all of my input files? ncatted -t -a FillValue,,o,d,9.9692099683868690e+36 in.nc

  • Jake T Jake T posted a comment on discussion Help

    That was successful. Thank you very much. Hopefully I can figure out a way to insert fill values more quickly than editing every file one by one. Any suggestions by chance?

  • Jake T Jake T posted a comment on discussion Help

    ncks -m seastate_201811.nc netcdf seastate_201811 { dimensions: lat = 160 ; lon = 360 ; nv = 2 ; time = UNLIMITED ; // (1 currently) variables: int crs ; crs:semi_major_axis = 6371000. ; crs:grid_mapping_name = "latitude_longitude" ; crs:inverse_flattening = 0. ; double lat(lat) ; lat:long_name = "latitude" ; lat:standard_name = "latitude" ; lat:authority = "CF-1.7" ; lat:units = "degrees_north" ; lat:bounds = "lat_bnds" ; double lat_bnds(lat,nv) ; double lon(lon) ; lon:long_name = "longitude" ;...

  • Jake T Jake T posted a comment on discussion Help

    I checked to see if my data was packed using ncks -m myfile.nc for both single, concatenated, and averaged files and none of my variables appear to be packed. I used control + f in the terminal and couldn't find scale_factor or add_offset. Is there anything else that would indicate that my data is packed?

  • Jake T Jake T modified a comment on discussion Help

    I'm still looking into how to find out if my variables are packed or not. I think the FillValue of my variable may be impacting the plotting of my ncra file in QGIS. When I plot my ncra file in QGIS, I have better data coverage compared to my ncecat file (data is plotted across more of the ocean surface) but the upper bound of my variable is 9.93891e+36. The default FillValue for my variable is 9.9692e+36. The guide states that "NCO averagers (ncra, nces, ncwa) do not count any element with the value...

  • Jake T Jake T posted a comment on discussion Help

    I'm still looking into how to find out if my variables are packed or not. I think the FillValue of my variable may be impacting the plotting of my ncra file in QGIS. When I plot my ncra file in QGIS, I have better data coverage compared to my ncecat file (data is plotted across more of the ocean surface) but the upper bound of my variable is 9.93891e+36. The default fill value for my variable is 9.9692e+36. The guide states that "NCO averagers (ncra, nces, ncwa) do not count any element with the...

  • Jake T Jake T posted a comment on discussion Help

    Hi Charlie, thank you for your reply. I am new to working with netCDF files. After reviewing the user guide section on unpacking variables I am still unclear on a few things. When I am unpacking, can I unpack every netCDF file and store the results in a single file? Is it possible to both concatenate all 329 files and unpack them with a single line? For example: ncpdq -P all_xst in_*.nc out.nc #using the wildcard to unpack all files and store in single new file Or should I use ncecat and then unpack...

  • Jake T Jake T posted a comment on discussion Help

    I'm trying to merge some CDF files but get the following warning message: (variable) uses the non-standard attribute name "cell_method" instead of "cell_methods", the correct attribute name. The CAM3 and CLM3 models (and others?) have this problem. Expect "double attributes" in output. What sort of issues does this create and is there a way to resolve it? Should I use ‘--no_cell_methods’? I am trying to find the mean of a single variable within 329 netCDF files and plot the the result in QGIS. Each...

1
MongoDB Logo MongoDB