IDEA
|
Hi Elizabeth, Could you please tell me what is the 4th column, where you had "w7", "w2"...? Also, what are the purposes of these "w"? Thank you so much
... View more
08-12-2020
06:34 PM
|
0
|
1
|
3967
|
POST
|
I found a keyword for this issue Moving Average. There is a post "Tool for a moving average over a time series" in 2015, mentioned this method. However, it was used to smooth the series by average them out. I don't want that. I just want to fill the missing data. Hopefully, someone can help me!
... View more
11-20-2019
01:01 PM
|
0
|
0
|
305
|
POST
|
Hi all, I downloaded the daily soil moisture product, AMSR2/GCOM-W1, from NASA. I attached here some of them, which I already converted and clipped them. Some of them contain too many holes or missing data. The missing data is so too big that FocalStatistics doesn't work well. Or this method is not an appropriate one. I want to use previous/post daily data to fill the missing data for the day in between. For example, if data on day 16th is missing, I want to use data on day 15th and day 17th to interpolate/calculate data day 16th. Could you please guide me to solve the issue? Thanks
... View more
11-19-2019
12:24 PM
|
0
|
1
|
347
|
POST
|
Hi, Let's try this code: Con("%pH_GapsToBeFillled%"==1, FocalStatistics("%pH_Global%", NbrRectangle(10,10, "CELL"), "MEAN",""), "%pH_Global%") I added a ("") at the end of FocalStatistics function to set "Not ignore NoData". Also, you may want to set your workplace by arcpy.workspace function. I hope this helps.
... View more
11-18-2019
02:05 PM
|
0
|
0
|
364
|
POST
|
Hi Louise Thank you for your response. While waiting for the best solution, I tried the code below. It works still now. I use it to convert from NetCDF files to rasters. import arcpy from arcpy import env from arcpy.sa import * Input_Temp_folder = "E:\Mekong\DATA\JMP_Deeplearning_data\Mekong_temp\Temp_2017" Out_Temp_folder_Max ="E:\Mekong\DATA\JMP_Deeplearning_data\Mekong_temp\Temp_2017\Max" Out_Temp_folder_Min ="E:\Mekong\DATA\JMP_Deeplearning_data\Mekong_temp\Temp_2017\Min" arcpy.env.workspace = Input_Temp_folder arcpy.env.overwriteOutput = True arcpy.env.scratchWorkspace = Out_Temp_folder_Max # Create scratch workspace arcpy.env.scratchWorkspace = Out_Temp_folder_Min # create Scratch workspace variableTemp1 = "T2MMAX" variableTemp2="T2MMIN" XDimension = "lon" YDimension = "lat" time = "time" NetCDFfiles = arcpy.ListFiles("*.nc4.nc") print NetCDFfiles for filename in NetCDFfiles: print ("Processing: " + filename) day = filename[27:35]# extract date in the filenames outRasterLayer_Temp_Max = variableTemp1 + "_" + day # create a time series for names outRasterLayer_Temp_Min = variableTemp2 + "_" + day # create a time series for names InNetCDTemp = arcpy.env.workspace + "/" + filename # get a file arcpy.MakeNetCDFRasterLayer_md(InNetCDTemp, variableTemp1, XDimension, YDimension, outRasterLayer_Temp_Max,time) arcpy.MakeNetCDFRasterLayer_md(InNetCDTemp, variableTemp2, XDimension, YDimension, outRasterLayer_Temp_Min,time) outRasterTemp_Folder = Out_Temp_folder_Min arcpy.SplitRaster_management (outRasterLayer_Temp_Max,Out_Temp_folder_Max,outRasterLayer_Temp_Max,"POLYGON_FEATURES","TIFF","NEAREST","","","","DEGREES","","","Mekong_Basin","","","") arcpy.SplitRaster_management (outRasterLayer_Temp_Min,Out_Temp_folder_Min,outRasterLayer_Temp_Min,"POLYGON_FEATURES","TIFF","NEAREST","","","","DEGREES","","","Mekong_Basin","","","")
... View more
10-16-2019
01:37 PM
|
0
|
0
|
3363
|
POST
|
Hi Pavan, I met this issue 2 months ago. I called to ESRI technical service. It was straightforward; they only need to update my ID (delete an old one). I hope it helps. Best
... View more
10-01-2019
11:06 AM
|
0
|
0
|
2159
|
POST
|
Dear community, Could you please to instruct me to write an ArcPy or Python code to convert multiple NetCDF files to rasters? I failed to use Iterator/ModelBuilder. I found a code to convert 1 NetCDF to a raster using MakeNetCDFRasterLayer function. However, I don't know how to write a loop to read through all NetCDF files. I attached here 3 NetCDF files as an example for my dataset. All comments are appreciated. Thank you so much. # Import system modules import arcpy # Set local variables inNetCDFFile = "C:/data/netcdf/rainfall.nc" variable = "pptx" XDimension = "lon" YDimension = "lat" outRasterLayer = "rainfall" bandDimmension = "" dimensionValues = "" valueSelectionMethod = "" cellRegistration = "" # Execute MakeNetCDFRasterLayer arcpy.MakeNetCDFRasterLayer_md(inNetCDFFile, variable, XDimension, YDimension, outRasterLayer, bandDimmension, dimensionValues, valueSelectionMethod, cellRegistration)
... View more
09-30-2019
10:01 PM
|
0
|
0
|
307
|
POST
|
Hi, Can you try SAMPLE tool? It may be useful. How Sample works—Help | ArcGIS Desktop
... View more
09-30-2019
09:47 PM
|
0
|
0
|
184
|
POST
|
Thank you for your suggestions. They are very useful. Besides, I also found a tool SAMPLE which can extract value from rasters (single/multi bands) into a grid (fishnet). Again, thank you so much
... View more
09-30-2019
09:45 PM
|
0
|
1
|
3363
|
POST
|
Hi Pavan Yadav, I appreciate your suggestion. It is very helpful. I got another issue. I want to convert multiple NetCDF files to rasters using ArcPy or Python. Here is the code for a NetCDF file that I learned from ESRI. Can you help me to edit it to read convert multiple file? Thanks Import system modules import arcpy Set local variables inNetCDFFile = "C:/data/netcdf/rainfall.nc" variable = "pptx" XDimension = "lon" YDimension = "lat" outRasterLayer = "rainfall" bandDimmension = "" dimensionValues = "" valueSelectionMethod = "" cellRegistration = "" Execute MakeNetCDFRasterLayer arcpy.MakeNetCDFRasterLayer_md(inNetCDFFile, variable, XDimension, YDimension, outRasterLayer, bandDimmension, dimensionValues, valueSelectionMethod, cellRegistration)
... View more
09-30-2019
09:41 PM
|
0
|
1
|
3363
|
POST
|
Hi Community, I am working with a project where I have to extract 3650 rasters. It will take forever to get it done manually. I am thinking about using ArcPy or Modelbuilder to do it automatically. Can you help me with this? Thank you so much Gia Nguyen
... View more
09-20-2019
08:23 AM
|
0
|
7
|
4110
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|